Program that calculates and prints average of several grades

Assignment Help C/C++ Programming
Reference no: EM13811140

Write a C program that calculates and prints the average of several grades entered by the user. The program should first prompt the user to enter the number of grades to process (at least 2 grades must be entered by user!). It should then prompt the user for each grade. As each grade is entered, the program should ensure that the grades entered are in the grade range of zero to 100. If the grade is not in that range, an error message should be displayed (as shown below), and the user should be re-prompted for a grade. Any bad grades entered should not be included in the average calculation. Once all values are entered, the program should calculate and print the average of all of the positive values entered, rounded to the nearest whole number. At the end display a message for the appropriate letter grade as in our course in the 'How you will be graded' section in the 'Syllabus' section of the notes. This program will feature the if statement as well as programming techniques for data validation. I call it a trap loop. It traps the user into entering valid data.

Reference no: EM13811140

Questions Cloud

Explain shintoism and zoroastrianism : Shintoism and Zoroastrianism
Formal and informal commuinication methods : Describe both the formal and informal commuinication methods within the organization. Address whether or not the organization uses effective communication techniwues.
Show the items by zone or location within the store : There is other information. Some people shop on a budget so they need the price and the sale price. Use an array or vector to hold the list of items. The display should show the items by zone or location within the store. (Display the output by loc..
Analyze the cost estimating relationship method : Analyze the differences between the Cost Estimating Relationship (CER) method and the Engineered Cost Estimate method and which approach to Life-Cycle Costing (LCC) approach would be best for the business.
Program that calculates and prints average of several grades : Write a C program that calculates and prints the average of several grades entered by the user. The program should first prompt the user to enter the number of grades to process (at least 2 grades must be entered by user!)
Elements required for successful implementation : The elements required for successful implementation of the JIT/Lean philosophy include reducing setup times, performing preventive maintenance, and achieving high quality (zero defects).
What were the consequences of the climate impact : What were the consequences of the climate impact in terms of damage to the society (people, property, and so on).
Describe correlations and regression analyses : Describe correlations and regression analyses
Items in meeting organizational objectives : Describe the importance of the three items in meeting organizational objectives. Include at least one source other than the textbook.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd