someone told me that you guys could help me with my assignment and i just signed
ID: 668884 • Letter: S
Question
someone told me that you guys could help me with my assignment and i just signed up.
i need to code this program in C++.
The program will calculate the grade point average for a student. The student will provide the letter grades for 10 courses. The program will read the 10 grades and convert the letter grade to a numeric value according to the table given below:
Then, the program will calculate the GPA taking into account the following number of credits for each course
The program will ask the student to enter the grades as follows:
Grade for MATH101:
Grade for ENG100:
Grade for BIO250:
Grade for ITM100:
Grade for CIS250:
Grade for HIST101:
Grade for CALC100:
Grade for SCI201:
Grade for SOC110:
Grade for PHY100:
The program will use two arrays: one to store the 10 numeric grades and another one to store the number of credits for each course as given on the table above. Make sure to maintain the same order.
The program will calculate the weighted average or GPA by multiplying each grade by its respective number of credits, adding all the products and dividing the total by the number of credits.
The program output will be:
You GPA is: X.XX
The program must be fully documented with comments including a description, the date and your name at the beginning of the code.
You must submit a .cpp file. Word or text documents will automatically receive a grade of zero.
This assignment is due by noon on Thursday, September 17th EDT
Letter Value A 4 B 3.5 C 3 D 2.5 F 0Explanation / Answer
student.h #include "course.h" #ifndef STUDENT_H #define STUDENT_H class Student { public: //Constructors Student(){ studentName = "blank"; departmentName = "undeclared"; score = 0; averageScore = 0; gpa = 0; credits = 0; }; Student(string); //mutators void setName(string); void setScores(double); void setCredits(double creds){ credits += creds; } void setDepartmentName(string name){ departmentName = name; } //Accessors double getScore(){ return score; } double getCredits(){ return credits; } //Print void printStudent(){ coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.