Question: 1 . Ask user to enter monthly tips and then display annual income including tips 2 . Calculate the amount taxed on pay and tips.
Ask user to enter monthly tips and then display annual income including tips
Calculate the amount taxed on pay and tips.
Assume a flat rate of tax on pay and tax on tips
Display the total salary in terms of dollars and cents round to decimal places
# Activity
# This program demonstrates two ways
# a floatingpoint number can be displayed
# as currency.
monthlypay
annualpay monthlypay
printYour annual pay is $ formatannualpay, f sep
printfYour annual pay is $annualpay:,f
# Tax percentage variables
incometaxpercent YOUR CODE HERE'
tipstaxpercent YOUR CODE HERE'
# Ask user for tips income
tips YOUR CODE HERE'
# Calculate taxes and gross pay
tipstax YOUR CODE HERE'
incometax YOUR CODE HERE'
annualpay YOUR CODE HERE'
grosspay YOUR CODE HERE'
# Using the format keyword to add and round to decimal places
YOUR CODE HERE'
# Display gross pay
YOUR CODE HERE'
# Using an f string to add $ and round to decimal places
# Using an f string to add $ and round to decimal places
YOUR CODE HERE'
# Display gross pay using f string
YOUR CODE HERE'
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
