Question: Write a program that asks the user for the number of males and the number of females registered in a class. Theprogram should display the
Write a program that asks the user for the number of males and the number of females registered in a class. Theprogram should display the percentage of males and females in the class.Eg Suppose there are males and females in a class. There are students in the class.The percentage of males can be calculated as: : or use format function with The percentage of females can be calculated as : or use format function with
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
