Finds the average and prints out a letter grade

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

Question: C++:

Currently working on trying to get my C++ program working and could really use an example to check it against.

WITHOUT USING ARRAYS!

Here's what I know at the moment:

1. I know that I'm creating a C++ program which prompts a user for their grades, finds the average and prints out a letter grade.

2. I know that the program does usesa function called GetGrades, which it calls, 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.

3. I know that FindAverage will find the average of the grades and return this average to GetGrades.

4. I know that GetGrades will return this average to main.

5. I know that 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

6. I know that All arguments in this program must be passed by Value. GetGrades and FindAverage functions must return their result to the calling function.

7. I plan to test this using the following output runs:

Run1 - 30, 50, 90, 100.

Run2 - 85, 89, 90, 95, 78, 99.

Run3 - 85, 95.

Reference no: EM132432233

Questions Cloud

Major Social Forces at Work Assignment : Major Social Forces at Work Assignment help and solutions:- Describe at least three of the major social forces that impact work organizations
Develop a program that calculates final score : Develop a program that calculates final score and average score for a student from his/her (1)class participation, (2) test, (3) assignment
Explore applicable concepts within abstract algebra : Examine set theory and functions applicable to software engineering and Investigate solutions to problem situations using the application of Boolean algebra.
Calculate the amount of bond discount or premium : The bonds which were issued at 105, pay interest on January 1 and June 1. Use this information to calculate the amount of bond discount or premium
Finds the average and prints out a letter grade : I know that I'm creating a C++ program which prompts a user for their grades, finds the average and prints out a letter grade.
Personal Reflection Assignment : Personal Reflection Assignment help and solutions:-Were there interpretations of experience that felt were inappropriate
Preparing an informal memo : Preparing an informal memo to explain to Mr. Skaros why his production cost report showed only 2,000 equivalent units in ending inventory
Suppose an age is stored in the int variable age : Suppose an age is stored in the int variable age. Please write the correct C++ instruction to determine if age is less than 13 or greater than or equal to 20?
Global Comparative analysis Assignment : Global Comparative analysis Assignment help and solutions: - Discuss the Global Comparative analysis on China and the United States

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Provide an accessed function to the objects of class

Develop a class in C++ which models a person and include some following criteria:

  Problem regarding the command-line parameter

Your program will deal with three input files: a text file to check (the "user file"), a dictionary file containing correct spellings, and a settings file. The words in the user file will be spell-checked, and any resulting corrections written bac..

  Program to decode a secret message

Write a program that decodes a message that was encoded using a random key. These keys work similar to a magic decoder wheel (where 'A' encodes to 'F', 'B' encodes to 'G', 'C' encodes to 'H', etc)except there is a random mapping from one letter to..

  Determines whether to accept an object.

Modify the implementation of the DataSet class in Section to use both a Measurer and a Filter object. Only objects that the filter accepts should be processed.

  Question 1the figure given is an example of select onea

question 1the figure given is an example of select onea. class adapter pattern b. observer pattern c. composite

  C++ essay & coding

Create codes for the following problem/s. Compile, test run, and edit them if necessary. Include your original .cpp and related file(s) (if any) in a single folder. Compress (zip) the folder and submit the single zipped folder.

  What is the output of the following c++ statements

What is the output of the following C++ statements? See attached file for full problem description.

  Write c program to find the distance travel

Write C program to find the distance travelled at regular intervals of time given the values of 'u' and 'a'. The program should provide the flexibility to the user to select his own time intervals and repeat the calculations for different values of '..

  Program that will input any four float values

You need to prepare a program to print the given output - write a program that will input any four float values where the four variables are declared in the 'main' function and perform

  Base process which communicate with child processes

Write a program which has a "base process" which communicates with child processes acting as "bombers" that it creates.

  Consider two classes: foo and bar

Consider two classes: Foo and Bar, where Foo is a sender, and Bar the receiver.Foo allocates 3-1 megabyte chunks of memory. The first chunk is filled with the value 0xA5, the next chunk with value 0xB5 and the third - 0xC5.

  Differences and fundamental operations of a stack

Describe the difference, with examples, between static and dynamic data structures. Draw a visual representation of a linked-list data structure showing how object references are stored and node objects are linked to each other.

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