Question: (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
(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
Get step-by-step solutions from verified subject matter experts
