Question: B-E ab 6: atol.cs.rntsuedu/iabs/1170/HTML-python/Lab6.PE1.html write a complete python program including minimal comments file name, your name, and problem description solves the following problem in the

 B-E ab 6: atol.cs.rntsuedu/iabs/1170/HTML-python/Lab6.PE1.html write a complete python program including minimal

B-E ab 6: atol.cs.rntsuedu/iabs/1170/HTML-python/Lab6.PE1.html write a complete python program including minimal comments file name, your name, and problem description solves the following problem in the main function: that . Problem Specification: Write a program that asks the user for the number of males and the number of females registered in a class using two separate inputs (Enter number of males:", "Enter number of females:"). The program should display the percentage of males and females (round to the nearest whole number) in the following format: Percent males : 35% Percent females: 65% Use string formatting. sample run #1: Enter number of males: 150 Enter number of females: 250 Percent males: 38% Percent females: 62% sample run #2 : Enter number of males: 75 Enter number of females: 25 Percent males: 75% percent females : 25% Sample run #3: Enter number of males: Enter number of females: 35 Percent males: es Percent fenales: 1ee Sample run #4 : Enter number of males: 1560 Enter number of fenales: e percent males: 100% Percent females: x. Notes: You should use the format function and use % format specifier. Keep in mind if multiple arguments are passed to the print function, they are automatically separated by a space when they are displayed on the screen. To solve the above problem in the main function: 1. At the top of the program, you should have a function heading of main as following: def main)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!