Question: Basic Pseudocode (No particular language) You are given input that contains the names of the sports in the Olympic and the number of athlete that

Basic Pseudocode (No particular language)

You are given input that contains the names of the sports in the Olympic and the number of athlete that play in each sport. You are asked to design a program using pseudocode to print the sport names, number of athletes in each department and total number of athletes for all sports. You should store the sport names into an array named Sport and store in a second array named Athletes the number of athletes in each department. A sentinel value of XXXXXX (can be a 99999) will be used for the sport name to signal the end of file.

You are to develop separate modules for each processing step listed below:

Input sport names into an array named Sports and the number of athlete into an array named Athletes.

Print the sport names and athletes in each sport.

Calculate and print the total number of athletes in all sports.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!