Question: 1. create a C++ program having 3 functions: (1) functionA calculates the total score of a student taking CSC001. The course includes: - two quizzes
1. create a C++ program having 3 functions:
(1) functionA calculates the total score of a student taking CSC001.
The course includes:
- two quizzes - the full score of each quiz is 10 points, and the weight is 5%.
- two assignments - the full score of each assignment is 100 points, and the weight is 10%.
- a midterm exam - the full score is 50, and the weight is 10%.
- a final exam - the full score is 100, and the weight is 40%.
- a project - the full score is 25, and the weight is 25%.
- The score of each coursework is passed to the functionA by one function parameter.
That is, functionA has 7 parameters representing the score of various coursework.
- After the total score is calculated, functionB is called by functionA that will calculate and return the letter grade (represented by, such as A, B, C, D or F).
- Finally, functionA will print the total score and letter score.
(2) functionB has one parameter and will return a value when it is done. When functionB is called, based on the total grade from step
(1), function B calculates and returns the letter grade to functionA.
The rules are listed below:
- A 90% - 100%
- B 80% - 89%
- C 70% - 79%
- D 60% - 69%
- F 0% - 59%
(3) call functionA in the main method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
