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

  Write a c++ program that would take two 3x3 matrix

Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition,

  Create class has three pieces of information as data members

Create a class called Date in C++ that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int).

  Allow single play a simple two dice game of chance against

Write a program that allows a single Player (the user) to play a simple two dice game of chance against

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

  Write a program to calculate the area of a circle

Write a program to calculate the area of a circle. The program should use two procedures. The first procedure will print out the program heading and ask the user to enter the radius. The second procedure should calculate the area. The area of the cir..

  You are asked to write a simple driver program

In this assignment in c, you are asked to write a simple driver program and set of functions (maybe in a library) that can be performed on a binary search tree. Your program should allow user to insert/delete integer values into the binary search ..

  Reportingmark a string of 2 to 4 upper case

Declare a structure named: Car containing: reportingMark a string of 2 to 4 upper case characters carNumber an int kind could be box tank flat or other loaded a bool destination a string with a destination or the word NONE Note: A destination is r..

  Write a program using one while loop

Write a program using one while loop that will read in a sequence of integers guaranteed to be within the inclusive range of 0 through 99,999 from the user

  To use a sentinel loop so once the value of -99 i

modify this program to use a sentinal loop so once the value of -99 is entered after getting the pay and hours the program should end.

  Program to compute surface area of sphere using function

Write down a program in C++ to compute surface area of sphere using a function. As sample run, write down the surface areas of spheres with radii.

  Write in c++ another overloaded operator

Write in C++ another overloaded operator to go in the program that has Treasury. Overload the forward slash /  so that in the main program, you can declare sale to be of type Treasury, and commission to be of type Treasury, and commispctage to be of ..

  Write a function named dietoss that simulates the tossing

Write a function named dieToss that simulates the tossing of two dice. When you call the function, it should generate two random numbers ranged in 1 to 6 and return the sum of the die's numbers. In the mail program, ask user how many times the dice s..

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