The program calls a function called getgrades

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

  • Write a program that prompts a user for their grades, finds the average and prints out a letter grade.
  • The program calls a function called GetGrades that will read in grades from the keyboard, the number of grades should also be input by the user.
  • 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 of that average based on a 10-point scale and print out this grade.
  • 90-100 A
  • 80-89 B
  • 70-79 C
  • 60-69 D
  • 0-59 F

 

Reference no: EM13168519

Questions Cloud

What is the mass of a block of graphite : A block of Iron has a mass of 483 g. What is the mass of a block of Graphite that has the same volume as the block of Iron?
The block of statements below the line of stars : The block of statements below the line of stars is where I need help correcting. The true line that needs to be corrected is p = add((getX(k),getY(r))), it needs to give points of the path using the block of information. I have somthing which I kn..
What would be the total revenue at the breakeven point : What are the expected benefits of the implementation of an effective system of internal controls for an organization and what would be the total revenue at the breakeven point?
Explain what mass of co2 and h20 would be produced during : What mass of CO2 and H20 would be produced during the combustion analysis of 0.1674 g of the cobalamin?
The program calls a function called getgrades : The program calls a function called GetGrades that will read in grades from the keyboard, the number of grades should also be input by the user.
Write a program that calculates net pay : Write a program that calculates Net Pay. It should do this by calling a function called CalNetPay that calculates and returns Net Pay when given the hours worked and the hourly pay rate. The main function should pass the hours worked and pay rate ..
The relation between passwords and key size : the relation between passwords and key size. For this purpose we consider a cryptosystem where the user enters a key in the form of a password
Write a program that will call a function : Write a program that will call a function called writeDataToFile to prompt a user for their first name, last name and zip code, and print this information to a file called "UserData.txt". The main function should prompt the user for the same infor..
The main function should prompt the user : The main function should prompt the user for the 2 numbers, call the function to display the correct label, then calculate and display the sum of the numbers. Call the function to display the correct label, then calculate and display the differenc..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Draw the heap

Eric Rowe Starting with an empty minheap, draw the heap after each the completion of the following operations  and repeat for a maxheap (replace removeMin() with removeMax()). Upload your drawings here. Hand drawn is fine:

  Machine that i would like to know

Let's say I have a machine that I would like to know, on average, how much it runs throughout a given day through a percentage value. Every 30 seconds, I will have a device to record the current temperature of the machine. If the machine increases..

  Program to store lists of names and ages in parallel arrays

Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names.

  A used car dealership maintains an inventory

Submit the completed program (all 4 parts) including all class definitions/implementations in a single .cpp source file (i.e., do not construct separate files for class headers and implementation).

  Bare in mind this is a program

Bare in mind this is a program with the audience being lawncare and landscaping people. So the events will generally be to know how often a client wants their lawn mowed.

  Struct definition to represent the data of a person''s bank

Define a struct definition to represent the data of a person's bank account. There will be one string for the name, and two doubles for balance and interest rate. Declare two variables of this new type in the main function. Modify the values of each ..

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Value referenced by the pointer.

Add 10 to the value referenced by pointer switch.Add 4 to the address stored in pointer switch.Subtract 5 from the value referenced by the pointer.

  A list of toppings should be shown on the screen as a menu

Write a menu-driven C++ program that allows a user to select from the following items: Pizza, Cheeseburger, and Hot Dog. Pizza should be represented by the integer value 1. Cheeseburger should be represented by the integer value 2.

  Write a program that declares three one dimensional

Write a program that declares three one dimensional arrays named miles, gallons, and mpg . Each array should be declared in main( ) and should be capable of holding ten double

  This function should accept a two-dimensional

getLowestInRow. This function should accept a two-dimensional array as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the lowest value in the specif..

  Write program function prompt user for number of elements

Write a C++ program main function which will prompt the user for the number of elements called N desired for an array which has the capacity to store 50 elements.

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