This is for C++ only, and I will be using visual studio as a compiler. You can use dummy variables that I will change later Write a class named Student that has member variables for the following data: First name, middle name, last name Address, city, state, and ZIP code Email address Student ID# Major The Student class should have a constructor t

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 5PE: Using classes, design an online address book to keep track of the names, addresses, phone numbers,...
icon
Related questions
Question

This is for C++ only, and I will be using visual studio as a compiler.

You can use dummy variables that I will change later

Write a class named Student that has member variables for the following data:

  • First name, middle name, last name

  • Address, city, state, and ZIP code

  • Email address

  • Student ID#

  • Major

The Student class should have a constructor that accepts an argument for each member variable and include accessors and mutators for each member variable.

Next, write a class named Course that represents a course the student will take. The Course class should have member variables for the following data:

  • Course ID number

  • Name of the course

  • Name of the instructor

  • Grade earned

  • Number of units

The Course class should have a constructor that accepts an argument for each member variable. The Course class should also have accessor and mutator functions for each member variable.

write a program that creates an instance of the Student class, initialized with sample data. Then, create three or four instances of the Course class, initialized with the data corresponding to your courses this semester (you can use your current grades or the grade you are aiming for).

The program should display the student's information, information about all courses, and compute the total units for this semester as well as the semester GPA.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,