1 answer

Write a program that asks the user to input the number of males and females registered...

Question:

Write a program that asks the user to input the number of males and females registered in a class (Max 30 members in the class). The program should display the percentage of males and females in the class.

Python programming question


Answers

males = int(input("Enter number of males in class: ")) females = int(input("Enter number of females in class: "))  print("Percentage of males in class is", (males * 100) / (males + females)) print("Percentage of females in class is", (females * 100) / (males + females)) 
.

Similar Solved Questions

1 answer
The following data is provided for Garcon Company and Pepper Company Beginning finished goods inventory Beginning...
The following data is provided for Garcon Company and Pepper Company Beginning finished goods inventory Beginning work in process inventory Beginning raw materials inventory (direct materials) Rental cost on factory equipment Direct labor Ending finished goods inventory Ending work in process invent...
1 answer
If light takes 8 minutes to reach Earth from the sun and 5.3 hours to reach Pluto, what is the approximate distance from the sun to Pluto?
If light takes 8 minutes to reach Earth from the sun and 5.3 hours to reach Pluto, what is the approximate distance from the sun to Pluto?...
1 answer
. Minnie Mouse Company had the following transactions during 2020. Sales of $9,000 on account Collected...
. Minnie Mouse Company had the following transactions during 2020. Sales of $9,000 on account Collected $4,000 for services to be performed in 2021 Paid $2,650 cash in salaries Purchased airline tickets for $350 in December for a trip to take place in 2021 . . What is Minnie Mouse's 2020 net inc...
1 answer
Find the characteristic equation of A, the eigenvalues of A, and a basis for the eigenspace...
Find the characteristic equation of A, the eigenvalues of A, and a basis for the eigenspace corresponding to each eigenvalue. A = Find the characteristic equation of A, the eigenvalues of A, and a basis for the eigenspace corresponding to each eigenvalue. -7 16 0 1 1 005 (a) the characteristic equa...
1 answer
What are the welfare of using coupons to price discriminate? (Consumer, producer, social) What can the...
What are the welfare of using coupons to price discriminate? (Consumer, producer, social) What can the government do to regulate the use of coupons?...
1 answer
Why might the molecular clock run faster for some lineages and not others? What hypothesis would...
Why might the molecular clock run faster for some lineages and not others? What hypothesis would be consistent with an observed pattern of faster molecular evolution? Or slower molecular evolution?...
1 answer
. Hydrogen can be extracted from natural gas according to the reaction CHa(g)+CO2 (8)2 2co(g)+2H2le)L Ko...
. Hydrogen can be extracted from natural gas according to the reaction CHa(g)+CO2 (8)2 2co(g)+2H2le)L Ko 4.4x102 at 825K). An 85.0L reaction container initially contains 22.3 kg of CHa and 55.4 kg of COz at 825 K Assuming ideal gas behavior, calculate the mass of Hz (in g) present in the reaction mi...
1 answer
A pendulum that is 5 m long is released 12 m above the floor and makes...
A pendulum that is 5 m long is released 12 m above the floor and makes a 30 degree angle (see diagram). the pendulum starts at rest. when it reaches its lowest point, the string is cut and the ball of pendulum becomes a projectile how far away from point B (directly below where sting attached to r...
1 answer
What change in temperature results when 2500 Joules of heat is applied to a 7.00 gram...
What change in temperature results when 2500 Joules of heat is applied to a 7.00 gram bar of gold? Specific heat is 0.129 J/g degree Celsius Calculate the heat transferred from a 5.5 g iron nail that is cooled from 37.0 degrees Celsius to 25.0 degrees Celsius? The specific heat of iron is 0.450 J/g ...
1 answer
Prove that the limit does not exist: lim (x,y,z)--> (0,0,0) (xy +yz) / (x2+y2+z2)
Prove that the limit does not exist: lim (x,y,z)--> (0,0,0) (xy +yz) / (x2+y2+z2)...
1 answer
(1 point) Once checked in at the ticket kiosk, the amount of time it takes a...
(1 point) Once checked in at the ticket kiosk, the amount of time it takes a airline passenger at the Calgary International Airport to clear security is a random variable that can be modeled by the Exponential distribution with a = 35.1 minutes. A statistician is randomly select n = 40 airline passe...
1 answer
Who are the main stockholders( e.g. shareholders,employees,media,government,andother privet or public org,etc in the socity? for amazon...
who are the main stockholders( e.g. shareholders,employees,media,government,andother privet or public org,etc in the socity? for amazon company and with refrences if it found i mean who are the main stockholders for amazon company?...
1 answer
Please Answer the questions I got wrong(#5,#8,#10). Comprehenslve Accounting Cycle Revlew 11-02 (Part Level Submisslon) Karen...
Please Answer the questions I got wrong(#5,#8,#10). Comprehenslve Accounting Cycle Revlew 11-02 (Part Level Submisslon) Karen Noonan opened Shamrock Cleaning Services Inc. on February 1, 2022. During February, the following transactions were completed: Issued 4,200 shares of Shamrock Cleaning ...
1 answer
You have recently been appointed as an audit assistant for MKZ Auditing LLC, a popular auditing...
You have recently been appointed as an audit assistant for MKZ Auditing LLC, a popular auditing firm based in Al Ain. Your line manager spoke to you two weeks ago to inform you that you have been assigned with another senior auditing staff to undertake a visit and audit a client called SMC Hotels LL...
1 answer
Question 6 of 2 Question 6 0.5 points You own an ice cream store whose target...
Question 6 of 2 Question 6 0.5 points You own an ice cream store whose target market is neighborhood kids who want a place to hang out with their friends after school and on weekend evening Avideo arcade opens up across the street. This is an example of which of Porter's five forces? Bargaining ...