Question: C++ QUESTION /*This program calculates a students course average using randomly generated grades. You will need to edit the program where 'FIXME' is noted as
C++ QUESTION
/*This program calculates a students course average using randomly generated grades.
You will need to edit the program where 'FIXME' is noted as well as make some additions to complete the program.
The course weights are based on the actual values from the course syllabus.
*/
#include
using namespace std;
int main() {
const double PARTICIPATION_MAX = 100.0;
const double ASSIGNMENTS_MAX =100.0;
const double HOMEWORK_CHALLENGES_MAX =100.0;
const double LABS_QUIZ_MAX = 100.0;
const double EXAM1_MAX = 100.0;
const double EXAM2_MAX = 100.0;
const double EXAM3_MAX = 100.0;
const double FINAL_EXAM_MAX = 100.0;
const double PROJECT_MAX = 100.0;
const double PARTICIPATION = .10;
const double ASSIGNMENTS = .10; //FIXME
const double HOMEWORK_CHALLENGES = .10; //FIXME
const double LABS_QUIZ = .15; //FIXME
const double EXAM1 = .10; //FIXME
const double EXAM2 = .10; //FIXME
const double EXAM3 = .10; //FIXME
const double FINAL_EXAM = 0; //FIXME
const double PROJECT = 0; //FIXME
// Have the user input their first and last name as a single input
/* Use a random number generator to calculate a score for each of the categories in the syllabus.
Each category can have a score in the range of 0 - 100, except exams 1-3 which can only be from 50 - 100.
Use a seed of 7 for your random number generator.
*/
/* Calculate the overall course grade & convert it to the appropriate letter grade */
coursePercentage = ((homeworkScore / HOMEWORK_MAX) * HOMEWORK_WEIGHT) // FIXME for all of the syllabus components
+ 0.0 // FIXME for midterm
+ 0.0; // FIXME for final
coursePercentage = coursePercentage * 100; // Convert fraction to %
cout << endl << "Your course percentage (FIXME): ";
cout << coursePercentage << endl;
// Output the users name, their grade for each individual category, and overall grade(number and letter) in the course.
return 0;
}
The grading scale for this course is
3 tests 30%
Final test 15%
In Class Participation 10%
Homework & Challenges* 10%
Labs & Quizzes 15%
Project 20%
A 90-100
B 80-89
C 70-79
D 60-69
F <-60
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
