Write a program that displays the names of students in a certain class, one by one, and

Question:

Write a program that displays the names of students in a certain class, one by one, and allows the user to enter a test score for the student displayed. The students’ names and scores are contained in one-dimensional arrays called Names and Scores, respectively. Assume that both arrays have already been declared and that the Names array contains N entries.

The window for this program is shown in Figure 11.25. When the program starts, the first student’s name is displayed in the upper text box. The user types the test score for that student in the lower text box and clicks the "Enter" button. This action assigns this value to the first element of the Scores array, displays the next name in the upper text box, and empties the lower text box so that the next score can be entered. When all the students’ scores have been entered (and assigned to corresponding elements in Scores), the window closes automatically and the program terminates.

Enter Test Scores Student name: Test score: Enter

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: