Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS22A < < < < < < < < < < < < < < < <

CIS22A<<<<<<<<<<<<<<<<

ProjectStatistics

Here is what your program will do: first it welcomes the user and displays the purpose of the program. It then prompts the user to enter the name of an input file (such as scores.txt). Assume the file contains the scores of the final exams; each score is preceded by a 5 characters student id. Create the input file: copy and paste the following data into a new text file named scores.txt DH232 89 DR123 100 AJ222 98 SW111 45 12AB1 82 516BC 99 2ABCD 100 333XY 92 TY4XZ 45 AC234 78 9QWE9 45 JP200 89 AK323 100 The program should read the contents of the file into two arrays, determine what needs to be determined, and displays the following results: The lowest score in the array followed by the ids of the students with that score The highest score in the array followed by the ids of the students with that score The total number of students in the array The class average Finally, the program should write to another file the scores below the average, and the corresponding ids. The program prompts the user to enter the name of an output file Design: Your program should include several functions in addition to main() // NOTE: You must write documentation for each function! Pseudocode: // see next page Pseudo-code: 1. Display welcome & info about the program 2. Create 2 arrays in main (assume the maximum class size is 45) 3. Read data from file into two arrays and also count the number of students in the input file. 4. Find the lowest score 5. Find the highest score 6. Display the lowest score followed by the ids of the students with that score 7. Display the highest score followed by the ids of the students with that score 8. Write to another file the scores below the average, and the corresponding ids. The program prompts the user to enter the name of an output file 9. Display an end of the program messag

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

CIS22A Answered: 1 week ago

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago