Question: Write a program, ch 2 _ p 1 . py , that gets a float from the user using the input ( ) function representing
Write a program, chppy that gets a float from the user using the input function
representing the total of a restaurant bill. Then, calculate a and tip on the bill as well
as the total amount for each including the tip. Format your output as shown below, including rounding
all floatingpoint numbers to decimal places and a tab between the tip amount and word Total
You are trying to make Lemon Drop cocktails, but the recipe is written in ounces and you do not own
a jigger a cocktail measuring cup that measures in ounces Write a program, chppy that
converts the recipe from ounces to tablespoons. There are tablespoons in ounce. Then, using the
input function, ask the user how many cocktails they want to make and adjust the tablespoons
version of the recipe. Finally, print out the adjusted recipe to the user in tablespoons for their desired
number of cocktails. Utilize constants to store the ounce amounts of each ingredient as floats.
Write a program, chppy that gets two integers from the user using the input
function and performs the modulo operation on the two integers without using the mod
operator Use only other math operators addition subtraction, division, integer division,
andor exponent to calculate the result of the mod operator with the users chosen integers.
Print both your calculation and the calculation using the mod operator for comparison.
SUBMISSION
PROGRAM
PROGRAM
PROGRAM
Submit your chppy chppy and chppy files to the
Chapter Homework Programs: Input, Processing, and Output assignment on Canvas.
Enter bill total: $
: Tip $ Total: $
: Tip $ Total: $
: Tip $ Total: $
How many Lemon Drops to make:
To make Lemon Drops mix:
tbs of vodka
tbs of triple sec
tbs of lemon juice
tbs of simple syrup
Enter first integer:
Enter second integer:
My Calculation:
Mod Operator Calculation:
EXAMPLE OUTPUT
EXAMPLE OUTPUT
EXAMPLE OUTPUT
ENTER
ENTER
ENTER
ENTER
LEMON DROP RECIPE:
ounces of vodka
ounce of triple sec
ounce of lemon juice
ounce of simple syrup
Dont worry about negative
values. Assume the user will only
enter positive whole numbers
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
