Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c++ Write a program that prompts'a uer for their grades, finds the average and prints out a letter grade From main, the program calls

In c++ image text in transcribed
Write a program that prompts'a uer for their grades, finds the average and prints out a letter grade From main, the program calls a function called GetGrades that will prompt the user for the number of grades they want to input, and read in those grades from the keyboard. GetGrades will find the sum of those grades and pass the sum and number of grades to another function called FindAverage FindAverage will find the average of the grades and return this average to GetGrades. . GetGrades will return this average to main The main function will then determine the letter grade that corresponds to the average and print out the average and letter grade .90-100 A 80-89 B 70-79 C . 60-69 D .0-59 F Note: All arguments in this Lab must be passed by Value. GetGrades and FindAverage functions must return their result to the calling function. Output Runs: Runl-30, 50, 90, 100 Run2 85, 89, 90, 95, 78, 99 Run3- 85, 95

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 Concepts

Authors: David M Kroenke, David J Auer

6th Edition

ISBN: 0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

How are state balanced-budget requirements procyclical?

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago