Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using visual studio please. Write a C++ program that takes a list of students grades for a given course (a grade is a positive integer

image text in transcribed

using visual studio please.

Write a C++ program that takes a list of students grades for a given course (a grade is a positive integer between 0 and 100), entered by the user through the keyboard. The program continues to read grades until the user enters -1 indicating the end of the list. When the end of the list is encountered, the program computes the course's average grade. The program divides the average grade by 10, then rounds the result of the division down using the floor function from "cmath" (the final rounded value will be a number between 0 and 10). The program will then use a switch statement to print out the equivalent Letter average grade and the performance statement of the class according to the following: if average = 9 or 10 print "Average Grade is A. Excellent Performance" if average = 8 print "Average Grade is B. Very Good Performance" if average = 7 print "Average Grade is C. Good Performance" if average = 6 print "Average Grade is D. Average Performance" otherwise print "Average Grade is F. Not Good Performance" Use a "switch-case" statement to output the proper average grade and class performance description

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

Understand why succession management is important.

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago