help with the code ------------------------------------------------------------+++++

 Write a program that accepts at least 8 integer test scores from the user and
stores them in an array. The app should display how many of the scores were lower than 70.
Input validation: Do not accept scores less than 0 or greater than 100.
Example:
Enter numbers: 71 80 66 65 50 100 91 49
Lower than 70: 4

People on the forum usually don't write code for others. Please try writing the code yourself. When you get stuck for 30 minutes, post what you have and ask a question.

Some thoughts on the assignment:
- You don't actually need to store the numbers in an array to do what you've posted. Read a number, if it's less than 70 then increment a counter. Now you can throw that number away and read the next number.

- Do the program in stages. Start with a program that reads numbers and prints them out. Modify it to count the number that are less than 70 and just print out that count. Then modify it to complain if an input number is outside the acceptable range. Then modify it to count the total number of input numbers, and complain if the total is less than 8.
Topic archived. No new replies allowed.