I need help with a grade calculator!

I am trying to figure out how to make a grade calculator but i am having alot of trouble with it, and the teacher has been no help.

The instructions he gave were:

Edit, compile and execute a computer program that will accept an undetermined number of test grades (positive integers) as input. The program should output the highest score, the lowest score, and the average of the remaining scores after the lowest score is dropped. The average must be rounded to thousandths. Each data set will terminate when a negative score is entered.

Optional: Assign a letter grade to the test average based on a grading scale of your choosing.

If you could please help me out, I would be so appreciated. Thank you!!!!

Comments

  • Well feel the advise I'll give you might be longer than just giving you the solution in code. But lets try...

    What you need to do is allocate you inputs to an array. With the array you can you a for list to determine the highest and lowest value as well as the average. If statements to determine what the highest value as well as the lowest. for average I would add all the number together and divide by the count.

    Then to put a Grade letter I would actually have a second arrayed record set with the values you choose and then use a while do to determine within what range the average will fall.

    If you want more help feel free to contact me personally.


    Darkwing Duck aka DWduck signing off :)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion