English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

program that calculates and displays the average scores for a college course.

I need a prototype that does the following. I dont understand how not to prompt the user?

Without prompting the user, read in (alternately) a student ID and test score from standard input. Do this repeatedly until the end of file marker is encountered. You may assume that there will be no more than 100 students.

2007-12-01 14:35:37 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Not prompting the user means you don't have to print anything out -- your program will just expect that the input will first be an id number, then a score, id number, score, etc.

This makes it easy for you to just throw the code into a loop

2007-12-01 14:39:45 · answer #1 · answered by mdigitale 7 · 0 0

this may mean reading from file since there is the end of file marker mentioned

2007-12-01 15:13:09 · answer #2 · answered by colo 3 · 0 0

fedest.com, questions and answers