Question: Design programs in Python to complete the following two tasks. Program 1 . Write a program that asks the user for the number of males
Design programs in Python to complete the following two tasks.
Program 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 males and females in the class. The percentage of male should be and it should be displayed as And the percentage of female should be calculated and displayed as
Program Ingredient Adjuster Program:A cookie recipe calls for the following ingredients:
cups of sugar
cup of butter
cups of flour
The recipe produces cookies with these amounts of the ingredients. Design a program that asks user how many cookies he or she wants to make, and then displays the number of cups of each ingredient needed for the specifiednumber of cookies.
For example, if user wants to make cookies, the user needs cups of sugar, cups of butter, and cups of flour.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
