Write a program which contains the following:
a. Class student with the following data members:
Student ID
First Name
Last Name
Course Name
First Exam Grade(25%)
Second Exam Grade(25%)
5 Assignments’ Grades(Supposing each one out of 10)
Final Exam Grade(40%)
b. Set functions to fill the previous data members with the information entered by the user.
Name your functions: SetFirstName, SetLastName, SetCourseName, and so on.
c. Get functions to return the information stored in the data members to be displayed in the main function.
Name your functions: GetFirstName, GetLastName, GetCourseName, and so on.
d. Function main which will:
Contain an Array of class Student.
Prompt the user to enter the required information.
Call set functions to fill the data members.
Call get functions, then display the values returned by the functions.
#pragma once
#include<string>
#include<iostream>
using namespace std;
write the program, and come back when you get some errors so we can help. You deserve to fail if you're coming to this forum expecting us to do your homework for you.
Um, what? Besides the variable name, it was fine before...
SamuelAdams wrote:
Learn to indent your code
When you paste code in the forums without code tags indentation is lost due to HTML processing by your browser and/or message processing done by the forum itself.