Develop a program that calculates the total score and the average score for Quiz and classwork completed in this class. Syllabus Quiz, (2) Chapter 1 Quiz, (3) Chapter 2 Quiz, (4) Programming Classwork1, and (5) Programming Classwork2. The student should enter the name and scores received ranging from 0 to 100 for each grading item. The total score is the sum of all grading items. The average score is the average of all grading items. Name your file FirstInitialLastName_CW_4_Part1.cpp
Develop a program that calculates the total score and the average score for Quiz and classwork completed in this class.
- Syllabus Quiz, (2) Chapter 1 Quiz, (3) Chapter 2 Quiz, (4)
Programming Classwork1, and (5) Programming Classwork2.
The student should enter the name and scores received ranging from 0 to 100 for each grading item.
The total score is the sum of all grading items.
The average score is the average of all grading items.
Name your file FirstInitialLastName_CW_4_Part1.cpp
Submit:
- A flow chart and pseudo-code in your Word document.
- C++ file (source code): FirstInitialLastName_CW_3.cpp
- Screenshot of output in Word Document - use your name, CRN, a semester in the file name, and in the Word document.
Example output:
***********************************
Enter the Student's name: John Smith
Enter Syllabus Quiz Score ranging from 0 to 100: 89
Enter Chapter 1 Quiz ranging from 0 to 100: 87
Enter Chapter 2 Quiz ranging from 0 to 100: 67
Enter Programming Classwork1 ranging from 0 to 100: 99
Enter Programming Classwork2 ranging from 0 to 100: 80
John Smith: Final Score: 422 Average Score: 84.4
Here is a C++ code for the program:
#include <iostream>
#include <string>
using namespace std;
int main() {
string name;
int syllabus_quiz, chapter_1_quiz, chapter_2_quiz, programming_classwork1, programming_classwork2;
int total_score, average_score;
cout << "Enter the Student's name: ";
cin >> name;
cout << "Enter Syllabus Quiz Score ranging from 0 to 100: ";
cin >> syllabus_quiz;
cout << "Enter Chapter 1 Quiz ranging from 0 to 100: ";
cin >> chapter_1_quiz;
cout << "Enter Chapter 2 Quiz ranging from 0 to 100: ";
cin >> chapter_2_quiz;
cout << "Enter Programming Classwork1 ranging from 0 to 100: ";
cin >> programming_classwork1;
cout << "Enter Programming Classwork2 ranging from 0 to 100: ";
cin >> programming_classwork2;
total_score = syllabus_quiz + chapter_1_quiz + chapter_2_quiz + programming_classwork1 + programming_classwork2;
average_score = total_score / 5.0;
cout << name << ": Final Score: " << total_score << " Average Score: " << average_score << endl;
return 0;
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps