Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Male and Female Percentages (python begginers) Write a program that asks the user for the number of males and the number of females registered in
Male and Female Percentages (python begginers)
Write a program that asks the user for the number of males and the number of females registered in a class. The program should display the percentage of males and females in the class. Hint: Suppose there are 8 males and 12 females in a class. There are 20 students in the class. The percentage of males can be calculated as 8 20 = 0.4, or 40%. The percentage of females can be calculated as 12 20 = 0.6, or 60%.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started