Question: 3. 4. Ten students were asked to rate the quality of the food in the student cafeteria on a scale of 1 to 3 (1

3. 4. Ten students were asked to rate the quality of the food in the student cafeteria on a scale of 1 to 3 (1 means poor, 2 means average, 3 means good). Write a program to read the responses of the 10 students into an array and summarize the frequency of the rating. An example is shown below. Enter the 10 responses: 1 3 2 3 213212 Rating Frequency 1 2 3 3 4 Use a single-subscripted array to solve the following problem. Read in 10 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Provide for the "worst case" in which all 10 numbers are different. Use the smallest possible array to solve this problem.

Step by Step Solution

3.36 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python program that accomplishes the task def readresponses responses printEnter the 10 re... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!