Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(8 Marks) 2. UFC gym asked you to create a python program to do the following requirements. Write a python program using while loop with

image text in transcribed
(8 Marks) 2. UFC gym asked you to create a python program to do the following requirements. Write a python program using while loop with if statement to do the following: a. Ask the user to input number of members. b. Use while loop i, input the gender, joiningFee, training Fee and extraFees for each member. ii. Gender can be male or female only iii. Calculate the TotalFees of each member. iv. Count the number of females with TotalFees more than 100. c. Display the count of females as given in the sample output Note: TotalFees - joining Fee + training Fee + extraFees SETE Page 3 of 4 Sample Output Enter the number of members: 3 Enter Member's Gender: female Enter Joining Fee: 10 Enter Training Fee: 50 Enter Extra Fees: 60 Enter Member's Gender: nale Enter Joining Fee: 10 Enter Training Fee: 30 Enter Extra Fees: 20 Enter Member's Gender: female Enter Joining Fee: 40 Enter Training Fee: 40 Enter Extra Fees: 50 Number of Female Registered with fees greater than 100: 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions