Answered step by step
Verified Expert Solution
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
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 descriptionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started