Algorith for Final Lab Exam

.docx

School

American Military University *

*We aren’t endorsed by this school

Course

240

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

1

Uploaded by student1673

Report
Algorith for Final Lab Exam 1. Declare struct 2. Declare function prototypes 3. Declare struct variable 4. Declare array 5. Declare variables 6. Declare input stream variable 7. Open input stream file 8. Print name and titles to the screen 9. Read the first line of name and the corresponding points from the input file and calculate the total 10. Read the second line of name and the corresponding points from the input file and calculate the total. Set the worstApp name and worstSum 11. Use a while loop to read data from the input file a. Read name from the input file b. Assign the read input file to the array c. Read each points from input file d. Calculate the total of all points using the formula e. Display the read input to the screen f. If the total is greater than the value of sum, then assign the value of this total to the variable bestSum and the corresponding name to the string variable bestApp g. Update loop control variable h. If the loop control variable is equal to 5, break from the while loop i. Call the printBestApp function to output the bestApp and the total points received j. Call the printWorstApp function to output the worstApp and the total points received
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help