Question: MUST BE IN PYTHON Exercise #1: Design and implement a program (name it SumValue) that reads three integers (say X, Y, and Z) and prints
MUST BE IN PYTHON
Exercise #1: Design and implement a program (name it SumValue) that reads three integers (say X, Y, and Z) and prints out their values on separate lines with proper labels, followed by their average with proper label. Comment your code properly. Format the outputs following the sample runs below.
Sample run 1:
X = 3
Y = 2
Z = 4
Average = 3.0
Sample run 1:
X = 7
Y = 8
Z = 10
Average = 8.333333333333334
Sample run 1:
X = 7
Y = -3
Z = -5
Average = -0.3333333333333333
Exercise #2: Design and implement a programming (name it SimpleMath) that reads two floating-point numbers (say R and T) and prints out their values, sum, difference, and product on separate lines with proper labels. Comment your code properly and format the outputs following these sample runs.
Sample run 1:
R = 4.0 T = 20.0 R + T = 24.0 R - T = 16.0 R * T = 80.0
Sample run 2:
R = 20.0 T = 10.0 R + T = 30.0 R - T = -10.0 R * T = 200.0
Sample run 3:
R = -20.0 T = -10.0 R + T = -30.0 R - T = 10.0 R * T = 200.0
Exercise #3: Design and implement a program (name it Coins) that determines the values of coins in a jar. The program prints out the total dollars and cents in the jar. The program prompts the user to enter the number of coins (quarters, dimes, nickels, and pennies). Print out the number of coins entered for each coin type on separate lines followed by the total amount of money in the jar as dollars and cents as shown below.
Sample run 1:
Enter number of quarters: 2 Enter number of dimes: 2 Enter number of nickles: 2 Enter number of pennies: 2 You entered 2 quarters You entered 2 dimes You entered 2 nickles You entered 2 pennies Your total is 0 Dollars and 82 Cents.
Sample run 2:
Enter number of quarters: 3 Enter number of dimes: 0 Enter number of nickles: 0 Enter number of pennies: 3 You entered 3 quarters You entered 0 dimes You entered 0 nickles You entered 3 pennies Your total is 0 Dollars and 78 Cents.
Sample run 3:
Enter number of quarters: 2 Enter number of dimes: 3 Enter number of nickles: 4 Enter number of pennies: 5 You entered 2 quarters You entered 3 dimes You entered 4 nickles You entered 5 pennies Your total is 1 Dollars and 5 Cents.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
