Question

Design pseudocode and flowchart from following: Trainers at Tom’s Athletic Club are encouraged to enroll new...

Design pseudocode and flowchart from following:

Trainers at Tom’s Athletic Club are encouraged to enroll new members. Write an application that allows Tom to enter the names of each of his 25 trainers and the number of new members each trainer has enrolled this year. Output is the number of trainers who have enrolled 0 to 5 members, 6 to 12 members, 13 to 20 members, and more than 20 members.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution methodology: The given problem will have below steps in solution:

1. Loop to read Trainer names in trainer[25] array of string type

2. Loop to read the corresponding number of members for each trainer under member[25] array

3. Loop to traverse all member array elemnets

3.1 if member value is between 0 to 5, increment a counter.

3.2 if member value is between 0 to 5, increment a counter.

3.3 if member value is between 0 to 5, increment a counter.

3.4 Otherwise increment other value counter.

4. Print the counted values.

Pseudocode: Procedure to manage the trainer and corresponding members

Start

Set upto5, btw_6_12, btw_13_20, above20 to 0;

Repeat for i = 0 to <25

                                Read the name of trainer and store at trainer[i]

End for

Repeat for j = 0 to < 25

                Read the number of members per trainer and store at member[j]

End for

Repeat for k = 0 to <25

                Check value at member[k]

                                If(member[k] >=0 and member[k] <=5)

                                                Increment Upto5 by 1

                                Else If(member[k] >=6 and member[k] <=12)

                                                Increment btw_6_12 by 1

                                Else If(member[k] >=13 and member[k] <=20)

                                                Increment btw_13_20 by 1

                                Else

                                                Increment above20 by 1

                                End if

End for

Print value of Upto5 which is the count of trainer having 0 to 5 members

Print value of btw_6_12 which is the count of trainer having 6 to 12 members

Print value of btw_13_20 which is the count of trainer having 13 to 20 members

Print value of above20 which is the count of trainer having more than 20 members

End program

Flowchart: Flow chart for the above pseudocode as per the given problem is drawn as below:

Add a comment
Know the answer?
Add Answer to:
Design pseudocode and flowchart from following: Trainers at Tom’s Athletic Club are encouraged to enroll new...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Use program control statements in the following exercises: Question 1 . Write pseudocode for the following:...

    Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...

  • What are the major areas of change from the old design to the new design? What...

    What are the major areas of change from the old design to the new design? What do you think the major concerns will be of employees and managers in the new design? Use the star model to identify the transitions at each point of the star. Case Study 4: Reorganizing the Finance Department: Managing Change and Transitions Read the finance department case and consider the challenges you might anticipate during this reorganization. Develop a transition plan that addresses the following...

  • Help Please on JAVA Project: Validating the input is where I need help. Thank you Requirements...

    Help Please on JAVA Project: Validating the input is where I need help. Thank you Requirements description: Assume you work part-time at a sandwich store. As the only employee who knows java programming, you help to write a sandwich ordering application for the store. The following is a brief requirement description with some sample output. 1. Selecting bread When the program starts, it first shows a list/menu of sandwich breads and their prices, then asks a user to select a...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an...

    Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an order at a fast-food burger joint. This class will be used in Part B, when we work with a list of orders. As vou work through this part and Part B, draw a UML diagram of each class in using the UML drawing tool 1) Create a new Lab5TestProject project in Netbeans, right-click on the lab5testproject package and select New>Java Class 2) Call your...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • Summary should briefly analyze the central problems and issues of the case and provide some analysis...

    Summary should briefly analyze the central problems and issues of the case and provide some analysis and suggestions. Thank you. Lean Initiatives and Growth at Orlando Metering Company It was late August 2002 and Ed Cucinelli, vice president of Orlando Metering Company (OMC), sat in his office on a late Saturday morning. He had come in to prepare for some strategic planning meetings that were scheduled for the upcoming week. As he noticed the uncommon silence in the building, Ed...

  • Q1 Which of the following are included and which are excluded in calculating this year's GDP....

    Q1 Which of the following are included and which are excluded in calculating this year's GDP. Explain in each instance. a. A monthly scholarship cheque received by an economics student b. The purchase of an almost new tractor by farmer Kojo C. The cashing in of a savings bond d. An increase in business inventories e. Tim Horton's purchases a corner grocery store f. Fearless Qweenie Kong, a stuntwoman, purchases a life insurance policy for a billion dollars ($) g....

  • First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below...

    First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below Include each of the following in your answer (if applicable – explain in a paragraph) Research problem: what do you want to solve using Delphi? Sample: who will participate and why? (answer in 5 -10 sentences) Round one questionnaire: include 5 hypothetical questions you would like to ask Discuss: what are possible outcomes of the findings from your study? Hint: this is the conclusion....

  • I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter T...

    I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter Two, “Keys to Successful IT Governance,” from Roger Kroft and Guy Scalzi’s book entitled, IT Governance in Hospitals and Health Systems, please refer to the following assignment instructions below. This chapter consists of interviews with executives identifying mistakes that are made when governing healthcare information technology (IT). The chapter is broken down into subheadings listing areas of importance to understand...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT