Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started