Create a program using python pseudo code

You are a manager of a Wally's Training Gym and you encourage your trainers to enroll new members. Input is the trainer's last name and the number of new enrollees. Output is the number of trainers who have enrolled members in each of three categories: 0-5 new members, 6-10 new members, and 11 to 15 new members. Write an application that allows the user to enter 15 names and the number of new members they have enrolled into an array. Output is to display the number of trainers who are in each category. Use good programming techniques that you have learned throughout the course. Use appropriate variable names, use an array to store the names and number of new enrollees, and use prompts for the input and labels with the display.

Answers

Answer 1

The program uses a loop and conditional statements.

Loops are used for iterations, while conditional statements are used to implement conditions

The program in Python, where comments are used to explain each line is as follows:

#This creates a list for the trainer's last names

lastName = []

#This creates a list for the members enrolled by each trainer

membersEnrolled = []

#The next three lines initialize counter variables to 0

count0to5 = 0

count6to10 = 0

count11to15 = 0

#The following loop is repeated 15 times

for i in range(15):

   #This prompts the user for the trainer's last name

   name = input("Trainer's last name: ")

   #This prompts the user for the members' enrolled

   member = int(input("Members Enrolled: "))

   #This appends the last name to the list

   lastName.append(name)

   #This appends the members enrolled to the list

   membersEnrolled.append(member)

   #This counts the number of members enrolled in each group

   if member >=0 and member<=5:

       count0to5+=1

   elif member >=6 and member<=10:

       count6to10+=1

   elif member >=11 and member<=15:

       count11to15+=1

#The next three lines print the counter variables

print(count0to5,"enrolled 0 to 5 members")

print(count6to10,"enrolled 6 to 10 members")

print(count11to15,"enrolled 11 to 15 members")

Read more about similar programs at:

https://brainly.com/question/13246781


Related Questions

Hi! ❤️ , im looking for some help here. ill give brainliest if able to.

Answers

Answer:

I think the answer is 2

Explanation:

since your trying to search for the temperature in a specific area in New York

Need help with c++ coding
Simple program MUST USE two one-dimensional arrays. One to store last name and one to store grades.

Please help I’m so lost. I don’t understand arrays at all.

Answers

Answer:

h8 3h73oodn4

Explanation:


Steve Jobs


Born
Feburary 24, 1955


Death
October 5, 20122


Steven Paul Jobs was an American inventor, designer and entrepreneur who was the co-founder, chief executive and chairman of
Apple Computer.

Apple's revolutionary products, which include the



  • iPod

  • iPhone

  • iPad


Apple Computer


In 1976, when Jobs was just 21, he and Wozniak started Apple Computer in the Jobs’ family garage. They funded their entrepreneurial
venture by Jobs selling his Volkswagen bus and Wozniak selling his beloved scientific calculator. Jobs and Wozniak are credited with
revolutionizing the computer industry with Apple by democratizing the technology and making machines smaller, cheaper, intuitive and
accessible to everyday consumers.


Wozniak conceived of a series of user-friendly personal computers, and — with Jobs in charge of marketing — Apple initially marketed
the computers for $666.66 each. The Apple I earned the corporation around $774,000. Three years after the release of Apple's second
model, the Apple II, the company's sales increased by 700 percent to $139 million.


In 1980, Apple Computer became a publicly-traded company, with a market value of $1.2 billion by the end of its very first day of
trading. Jobs looked to marketing expert John Sculley of Pepsi-Cola to take over the role of CEO for Apple.


The next several products from Apple suffered significant design flaws, however, resulting in recalls and consumer disappointment.
IBM suddenly surpassed Apple in sales, and Apple had to compete with an IBM/PC-dominated business world.


In 1984, Apple released the Macintosh, marketing the computer as a piece of a counterculture lifestyle: romantic, youthful,
creative. But despite positive sales and performance superior to IBM's PCs, the Macintosh was still not IBM-compatible.


Sculley believed Jobs was hurting Apple, and the company's executives began to phase him out. Not actually having had an
official title with the company he co-founded, Jobs was pushed into a more marginalized position and thus left Apple in 1985.


Answers

Answer:

what Is your question it is not clearly stated

Other Questions
Those clouds promise snow; we might get another snow day off from schoolwat type of sentence is this?? Two functions f and g are defined on the set R, of real numbers by f : x 2x 3 andx g : x 1 3x . Find the inverse of the function f and the domain of gof. What was the whisper campaign and how did Washington respond to it? With the help of contextual clues and the word bank, complete the paragraphs with words you learned in the lesson.dimanchelundi Samedi week-endjeudi Mardi Semaine Journee mercredi vendredi A polygon undergoes a combined transformation of T3.2) (Ro, 90). The vertex (5,2) of the polygon maps to what final image?(-4,8)B.(-2,5)(1,7)D(5.-3) 50 point question Solve quick i will give branliest A circle is divided into equal parts. An angle turns through one of the parts, asshown below. Which equation shows a way to find the measure of the angle? quien cant el himno nacional en la pelea del canelo Simplify the scale 5mm: 1 meter , writing your answer in ratio form. quadratic equation 4 Who is depicted in the image below? President Franklin D. Roosevelt felt that creating jobs was a better fix to the hardships of the Depression than government handouts of money.FalseTrue In 2011, piracy was an enormous problem off the coast of __________.A.NigeriaB.KenyaC.SomaliaD.Sudan Brainliest if correct Briefly describe 2 reasons why the USA followed a policy of IMPERIALISM? (expanded around the world) Identify the reasons why the just world hypothesis helps us feel like the world is a saner, safer place. Kiley went 5.7 km/h north and then went 5.8 km/h west. From start to finish, she went 8.1 km/h northwest.Which best describes her numbers? What is the 'stute fishs motivation? to keep the whale full and happy to teach the whale a life lesson to escape being eaten by the whale to ask the whale for protection. Hi! , im looking for some help here. ill give brainliest if able to. What is function of phylloclade