Average

View previous topic View next topic Go down

avatar
JOEYJAM
Member
Member
Forum Posts : 1
Member Since : 2013-07-07
View user profile

PostJOEYJAM on 7/7/2013, 6:41 am

how do I Create an assignment that defines and uses at least three functions to figure the average score from several entered test scores. Your script should also figure out the highest and lowest score entered. More details: Your script should use a loop to allow the user to enter an arbitrary number of scores. You should provide a "sentinel value" that the user can enter to signify that he or she has finished entering scores (an example sentinel value for this exercise might be -1 or x). Your loop should accumulate the scores and keep track of the number of scores entered (in order to figure the average). These values, as well as the highest and lowest scores, should be displayed at the end of processing.

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum