13] Use UML notations to describe the following classes and their relationships. Define relevant private data, and the public methods for each class. a) Define a class Person that defines a generic person. b) Define a class Card that define a generic card c) Define a derived class from Person that describes a typical Student. d) Define a derived class from Card that describes a typical Student Card e) Define a derived class from Card that describes a typical Credit Card f) A Students can own (Has-A ) one Student Card and one Credit Card.
[15] Use C++ to implement your definitions in question 2) for the classes person, student, card, student card, credit card, and test them with a main() program. a. .h header file that defines all the classes in question. b. .cpp file that implements all the classes in question. c. .cpp driver program with a main() function that uses and tests these classes. d. Effectively use the following C++ features for implementing class relationships: ▪ IS-A (inheritance) ▪ HAS-A (Composition / Aggregation) ▪ Polymorphism
in c++ please
UML CLASS DIAGRAM gives an overview of a software system by displaying classes, attributes, operations, and their relationships. This Diagram includes the class name, attributes, and operation in separate designated compartments.
Class Diagram defines the types of objects in the system and the different types of relationships that exist among them. It gives a high-level view of an application. This modeling method can run with almost all Object-Oriented Methods. A class can refer to another class. A class can have its objects or may inherit from other classes.
Class Diagram helps construct the code for the software application development
In below class diagrams
1st row represents class
2nd row represents attributes
3rd row represents methods
" + " indicates public
" - " indicates private
" # " indicates protected
| Person |
|
+name:string +age:int +dob:varchar +address:varchar -mobilenumber:int |
|
+hobbies() -weakness() #jobstatus() |
second
| card |
|
+ cardholdername : String - cardtype: String - cardpin: int |
|
# Cardholderdetails() - Carddetails() - Accountbalance() |


As per HomeworkLib policy i'm ansering only few questions....Please post another one as separate question....
Hope this helps....!

As per HomeworkLib policy i'm ansering only few questions....Please post another one as separate question....
Hope this helps....!
13] Use UML notations to describe the following classes and their relationships. Define relevant private data,...
1) This exercise is about Inheritance (IS-A) Relationship. A) First, draw the UML diagram for class Student and class ComputerSystemsStudent which are described below. Make sure to show all the members (member variables and member functions) of the classes on your UML diagram. Save your UML diagram and also export it as a PNG. B) Second, write a program that contains the following parts. Write each class interface and implementation, in a different .h and .cpp file, respectively. a) Create...
UML Class Diagram with Inheritance
Objectives
Use UML
Correctly indicate inheritance
Demonstrate permissions
Understand inheritance relationships
Labwork
Please read all of the directions carefully.
You will create a UML class diagram reflecting the class hierarchy
for a fictional program that manages university personnel as
constructed according to the graph displayed below. You will need
to think about the attributes and behaviors that are unique to each
class, and also those attributes and behaviors that are common
amongst the subclasses and...
Please do Realization, Directed Association,
Reflexive Association, and Multiplicity........
To define 4 different object relationships with proper syntax
with no compilation error.
Select 4 different types of object relationship out of 8 listed
(in the picture below)
For each of the 4 relationships you may create any tow objects
and these classes can be use for different relationships.
The class of objects can be reused in other relationship. That
brings the max count, not min, of classes required is eight...
I got a homework question, I can't figure out how to do it. The program needs to be in C++ 11 using namespace std; The student class defines the strings studentName and studenSSN as protected data members. A constructor has arguments that initialize the data. The class StudentAthlete is derived from the student class and has a private data member studentSport, which describes the sport the student plays. Both classes have a member function, identity(). The base class student outputs...
Code the following Program in C++ Define a class named Payment that contains a member variable of type float that stores the amount of the payment and appropriate accessor and mutator methods. Also create a member function named paymentDetails that outputs an English sentence that describes the amount of the payment. Next define a class named CashPayment that is derived from Payment. This class should redefine the paymentDetails function to indicate that the payment is in cash. Include appropriate constructor(s)....
Please provide the code for the last part(client side
program).
yes i have all the class implementations.
``` person.h
#ifndef PERSON_H
#define PERSON_H
#include <string>
using namespace std;
class person
{
public:
person();
string getname() const;
string getadd() const;
string getemail() const;
string getphno() const;
string toString() const;
private:
string name;
string add;
string email;
string phno;
};
```person.cpp
#include "person.h"
person::person()
{
name = "XYZ";
add="IIT ";
email="%%%%";
phno="!!!!!";
}
string person::getname() const
{
return name;
}
string person::getadd()...
Objectives:
1. Classes and Data Abstraction?2. User-defined classes?3.
Implementation of a class in separate files
Part 1:
In this assignment, you are asked:
Stage1:?Design and implement a
class named memberType
with the following requirements:
An object of memberType holds the following
information: • Person’s first name (string)?• Person’s last name
(string)?• Member identification number (int)
• Number of books purchased (int)?• Amount of money spent
(double)?The class memberType has member functions that
perform operations on objects of memberType. For the...
According to the given UML class diagram and classes, complete the missing part of the given program by using polymorphism in the main method. In the main method there are: 3 question instances, 1 arraylist for multiple choice answers, 1 arraylist for fill in the blanks answers created. Add those objects to a collection and process the collection. During processing: display the correctAnswer for each question. add the answer to the correct collection: selectionAnswers/textAnswers Specify where the polymorphic behaviours are...
C++ Program classes READ THE FOLLOWING CAREFULLY TO GET FULL VALUE FROM THE PRACTICE. IF NOT COMFORTABLE WITH CLASSES, I WOULD START WITH DEFINING THE CLASS WITH ONE constructor AND GO FROM THERE Use the following to calculate a GPA (the following is for calculation information only): A = 4.00 grade points per credit hour A- = 3.70 grade points per credit hour B+ = 3.33 grade points per credit hour B = 3.00 grade points per credit hour B-...
Purpose: Demonstrate the ability to create and manipulate classes, data members, and member functions. This assignment also aims at creating a C++ project to handle multiple files (one header file and two .cpp files) at the same time. Remember to follow documentation and variable name guidelines. Create a C++ project to implement a simplified banking system. Your bank is small, so it can have a maximum of 100 accounts. Use an array of pointers to objects for this. However, your...