Question: Based on the percent gender program. Create a GUI interface calculator. i need the code and screenshot, for the GUI calculator based on this program
Hef main): #Get the input values from the user males input("Enter the number of males: females input("Enter the number of females: ") #Convert total to float total int(males) int(females) tet #Calculate percentage males-percent = int(males) / float(total) * 100 females percent int(females)/ float (total) 100 #Print the results print("Total Strength: str(total)) print("Male Percentage: str(males_percent)) print("Female Percentage: strCfemalespercent)) main_" if -_name main)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
