I am taking a Programming Essentials course and I need a little help with this week's assignment:
Now, I have the array data structure and loop just fine, but I am having problems with the rest of it. There are two things I can't seem to figure out:
1. How to get my program to accept anywhere between 1 and 5 test scores instead of requiring the user to input 5 test scores.
2. How to average the scores based on the number of scores input, instead of treating it like 5 scores were input every single time.
Our class uses RAPTOR flowcharts to program, by the way.
I would have posted this in the Computer forum, but hardly anyone posts there anymore and time is a factor so I need a quick response. I am also not asking you guys to do this for me, I just need a nudge in the right direction.
Design a grade average program that will produce the numerical grade average of test scores input by a user.
Your program design should contain the following:
You must use an Array as your data structure to store the input grades
You must use a Looping structure to initialize the elements of your array to clear out system garbage.
The user may input up to 5 test scores. Hint: This does not mean each user will input 5 scores. 3 scores may be entered for calculation.
You must use a Looping structure to traverse the elements of your array to produce your calculation
Now, I have the array data structure and loop just fine, but I am having problems with the rest of it. There are two things I can't seem to figure out:
1. How to get my program to accept anywhere between 1 and 5 test scores instead of requiring the user to input 5 test scores.
2. How to average the scores based on the number of scores input, instead of treating it like 5 scores were input every single time.
Our class uses RAPTOR flowcharts to program, by the way.
I would have posted this in the Computer forum, but hardly anyone posts there anymore and time is a factor so I need a quick response. I am also not asking you guys to do this for me, I just need a nudge in the right direction.