Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#Input the number of males and females registred for the class male = int(input(enter number of males registered for the class:)) female =int(input(enter number of

#Input the number of males and females registred for the class male = int(input("enter number of males registered for the class:")) female =int(input("enter number of females registered for the class:"))

#calculate the total strength of class and converting it to the float type Total = float(male+female) print("Total members in the class:", Total)

#calculate the percentage mperc = (male/Total)*100 x = format(mperc, '.2f') fperc = (female/Total)*100 y = format(fperc , '.2f')

#display the results print("The percentage of males in the class:" ,x) print("The percentage of females in the class:" , y)

Based on your Percent Gender Program create a GUI interface calculator and use graphics.py object. and called it Percentgendercalc.py

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago