By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,672 Members | 1,644 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,672 IT Pros & Developers. It's quick & easy.

Homework help...

P: 16
I need some homework help with an assignment due wed. I need to make a program where in this program calculates the average of a set of test scores.
The program will ask the user how many scores there will be.
The user will be prompted to enter score 1, score 2, etc.
After the scores are entered the computer will print the total number of points, the average score, and the number of scores. The program will ask the user if he/she wants to go again. If so, the program will start over with a new screen.
If the user enters a negative number for the number of scores the computer should aks the user to reenter the number of scores until a positive number of scores (or zero) is entered.
If the user enters zero for the number of scores the computer should say that the sum, average, and number of scores is zero.
The scores will all be integers, and may be positive, negative or zero.
The average may have a decimal part
i must use for loop, ++, and +=.

I have a good idea what to do but i still need some help with the whole thing. I would display the code that i have now, but the file is at school...please help!
Nov 20 '06 #1
Share this Question
Share on Google+
1 Reply

P: 254
give us what you have done for the coding, then we see what we can do or fix.

i mean seniors in this forum, not me, hehe. i'm a totally newbie.

i reply this because you cannot say out your assignment title and expect people to give you the coding.

you have to do it by learnig basic and try search any online tutorial that can help you.

here is the link i used, C++ Tutorial

good luck
Nicky Eng
Nov 20 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.