Calculate and print the number of athletes and sport name


Pseudocode please.

1. 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.

2. You are given two arrays the first array contains the sports at a sporting event and the second array contains the number of athletes playing in each sport.

Use the arrays to design modules using pseudocode that will:

  • Calculate and print the number of athletes and sport name for all sports with less than 25 athletes.
  • Calculate and print the average number of athletes in all of the sports.
  • Print the number of athletes and sport name for the first sport with less than 25 athletes

Solution Preview :

Prepared by a verified Expert
Business Management: Calculate and print the number of athletes and sport name
Reference No:- TGS02753000

Now Priced at $25 (50% Discount)

Recommended (98%)

Rated (4.3/5)