Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

C++ Exercise #1: Simple usage of repetition (while) loops with switch statement Write a program that reads in grades A o The program first reads

image text in transcribed C++
Exercise #1: Simple usage of repetition (while) loops with switch statement Write a program that reads in grades A o The program first reads the number of gr grade on a separate line. The program also counts the number of invalid entries. If the number of grades is less than or equal to zero then the program prints an error message and stops r a, B or b, Cor c, D or d, or F, or f and then prints out the total for each grade. ades to be added then reads each grade and finally prints the total of each Sample input/ output: nput the number of grades 9 nput a grade: e Input a grade : y nput a grade: D input a grade : A Input a grade: a nput a grade: 1 Input a grade: F nput a grade: b Input a grade : C The number of As is: 2 The number of Bs is: 1 The number of Cs is: 1 The number of Ds is: The number of Fs is: 1 1 The number of invalid input is: 3

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_2

Step: 3

blur-text-image_3

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students explore these related Databases questions

Question

What is meant by a Sharpe-optimal portfolio?

Answered: 3 weeks ago