I'm working on this assignment where I have to write a program that allows the user to enter eight judges' scores and then outputs the points received by the contestant. Each contestant's score is calculated by dropping the lowest and highest scores and then adding the remaining scores. The points should be between 1 and 10, 1 being the lowest and 10 being the highest. Since we're on the array chapter, I have to use an array for this.
Right now, I defined the array and I'm able to get the input (values), but I don't think it's right. How exactly can I prompt the user and store the input I get into the array and continue with the next steps?
Question
GCS
Hey there,
I'm working on this assignment where I have to write a program that allows the user to enter eight judges' scores and then outputs the points received by the contestant. Each contestant's score is calculated by dropping the lowest and highest scores and then adding the remaining scores. The points should be between 1 and 10, 1 being the lowest and 10 being the highest. Since we're on the array chapter, I have to use an array for this.
Right now, I defined the array and I'm able to get the input (values), but I don't think it's right. How exactly can I prompt the user and store the input I get into the array and continue with the next steps?
Many thanks! :]
Link to comment
Share on other sites
12 answers to this question
Recommended Posts