Write a c program that determines the minimum grade

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

Programming Assignment

Write a C program that determines the minimum grade, maximum grade, and class average of an exam. Your program should first prompt for how many grades, then each of the grades. Your program should first test that the number of grades to process is between 0 and 10.

If number is not valid, your program should issue an error message as shown below, and re-prompt for the number of grades.

Your program should then test that each grade entered is valid (i.e., between 0 and 100).

If the grade entered is not valid, the program should issue an error message as shown below, and re-prompt for a correct grade.

Once all grades are entered, your program should calculate the minimum grade, maximum grade, and class average for that exam. It will then print the grades listed (sorted) in ascending order.

Note: There will be a 10 point deduction if your program does not sort the grades.

Your program should store all the grades entered in integer array: grades[10].

The dialog with the user must look exactly like:

Welcome to the Grade Calculator Enter the number of grades to process (0 - 10):

20 *** Invalid number of grades entered. ***

Enter the number of grades to process (0 - 10): 5

Enter grade for student #1: 80

Enter grade for student #2: 90

Enter grade for student #3: 172

*** Invalid grade entered. Please enter 0 - 100.

*** Enter grade for student #3: 100

Enter grade for student #4: 85

Enter grade for student #5: 97

The minimum grade is 80

The maximum grade is 100

The class average is 90.4

The 5 grades entered are: 80, 85, 90, 97, 100

Thank you for using the Grade Calculator

Note: The blue text represents the "input" into your program. That is, what the user types in at the prompt. It is shown for clarity only here.

Your input will not be blue. (Do not even attempt to try!). Once the user enters a valid number of grades to process, the program should run as described above. If the user chooses to enter 0 as the number of grades, the program should simply end as shown here:

Welcome to the Grade Calculator

Enter the number of grades to process (0 - 10): 0

Thank you for using the Grade Calculator

Important: Do not use the qsort() function from the Standard C Library, it is a 10 point deduction.

Reference no: EM132107441

Questions Cloud

Ipo in terms of marketing : What has happened to the facebook since the IPO in terms of marketing, production, and other operations?
Write a program for one dimensional matrix multiplication : This programming assignment is to do one dimensional matrix multiplication. The array size should be allocated using a #define constant as shown below.
Marketing strategy in response to there competitors : How can a company's marketing team ensure they identify newly emerging competitors quickly so the team can plan and execute an effective marketing strategy
What is the role of governments in placing restrictions : What is the role of governments in placing restrictions on company branding such as their laws to force cigarette companies to introduce plain packaging?
Write a c program that determines the minimum grade : Write a C program that determines the minimum grade, maximum grade, and class average of an exam.
Why is it important to listen to feedback : Feedback is one of the most effective tools used in many areas of business, including marketing.
Understand and have as part of the marketing plan : What is relationship marketing and why is it important to understand and have as part of the marketing plan?
What is relationship marketing : What is relationship marketing and why is it important to understand and have as part of the marketing plan?
Break down the 4p in a everyday situation : Can you break down the 4P's in A EVERYDAY SITUATION A work place or a company IN YOUR MIND? Are they effective; why or why not PLEASE?

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