Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are tasked to write a C++ program to calculate the average for a given student based on the following information, each student has 3

You are tasked to write a C++ program to calculate the average for a given student based on the following information, each student has 3 test scores (60% of the grade), one quiz (10% of the grade) and a score for programming assignments (30% of the grade). Prompt user for their name and scores, then calculate the average and print the results nicely formatted. Make sure to name you file main.cpp, otherwise you can't upload it.

image text in transcribed

Your program must include a comment block containing an ID block.

Output Sample:

image text in transcribed

The following algorithm is given to help you develop the c++ program A) Input 1) Prompt user for Full name including any middle initials 2) Prompt user for 3 test scores (Valid score must be between 0-100) 3) Prompt user for programming assignment score (Valid score must be between 0-100.0) 4) Prompt user for quiz score (Valid score must be between 0-100) 5) Set weight for test to 60\% 6) Set weight for programming assignments to 30\% 7) Set weight for Quiz to 10% B) Process 1) Test_Avg = (TestScore1 + TestScore2 + TestScore3 ) / 3 2) Average = Test_Avg * Test_Weight + QuizScore * Quiz_Weight + AssignmentScore * Assignment_Weight C) Output Format Requirements: Display the results in nice format, all labels and values lined up and all real numbers should only show 2 digits after the decimal point. Be as creative as you can be to make the output look good. The output should be formatted similar to lab 2 output. 1) Print student Name 2) Print 3 test scores with descriptive labels 3) Print test average of the tests with a descriptive label 4) Print quiz score with a descriptive label 5) Print programming score with a descriptive label 6) Print (final) average with a descriptive label Welcome to Your Average Grade Calculator Please enter your full name, including middle initials if have one: Nancy Brown Please enter three (3) positive whole numbers (0-100) as test scores: 1008078 Please enter one real positive score (decimal 0-100) as a programming assignment score: 96.5 Please enter one (1) whole positive number between 0 \& 100 for a quiz score: 100 your output Must have the same wording as below: Hello Nancy Brown, here is your report

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions