Create a class called Student with four (4) private member variables, name (string), quiz, midterm, final (all double type);  Include all necessary member functions for this class (at least 1 constructor and 1 default constructor, 1 get function, and 1 grading function – see #5);  Declare three (3) objects of Student type (individual or array);  Read from the keyboard three (3) sets of values of name, quiz, midterm, final and assign them to each object; Using the object’s member function to calculate the grade for each student (grade = quiz * 0.2 + midterm * 0.4 + final * 0.4)  Display on the screen only the name of each student and the grade.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 7SA: Assume the definition of class foodType as given in Exercise 6. Answer the following questions? (1,...
icon
Related questions
Question

Create a class called Student with four (4) private member variables, name (string), quiz, midterm, final (all double type); 

Include all necessary member functions for this class (at least 1 constructor and 1 default constructor, 1 get function, and 1 grading function – see #5); 

Declare three (3) objects of Student type (individual or array); 

Read from the keyboard three (3) sets of values of name, quiz, midterm, final and assign them to each object;

Using the object’s member function to calculate the grade for each student (grade = quiz * 0.2 + midterm * 0.4 + final * 0.4) 

Display on the screen only the name of each student and the grade. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Class
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,