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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 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

Classwork Requirements:
1. Develop a program that calculates the total score and the average score for quizzes and
classworks completed in this class.
Syllabus Quiz
• Chapter 1 Quiz
Chapter 2 Quiz
Programming Classwork1
• Programming Classwork2
2. The program should prompt the user for full name (one single prompt). You should prompt.
read and store full name (first and last) in ONE single prompt.
3. The program should prompt the user for scores received ranging from 0 to 100 for each
grading item (each in a separate prompt)
4. The program should display full name, final score and average score in the format shown
in the provided sample output.
a. The total score is the sum of all grading items. It should be represented as a whole
number.
b. The average score is the average of all grading items. It should be represented as a
decimal number with two decimal digits.
Transcribed Image Text:Classwork Requirements: 1. Develop a program that calculates the total score and the average score for quizzes and classworks completed in this class. Syllabus Quiz • Chapter 1 Quiz Chapter 2 Quiz Programming Classwork1 • Programming Classwork2 2. The program should prompt the user for full name (one single prompt). You should prompt. read and store full name (first and last) in ONE single prompt. 3. The program should prompt the user for scores received ranging from 0 to 100 for each grading item (each in a separate prompt) 4. The program should display full name, final score and average score in the format shown in the provided sample output. a. The total score is the sum of all grading items. It should be represented as a whole number. b. The average score is the average of all grading items. It should be represented as a decimal number with two decimal digits.
Expert Solution
Step 1

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

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education