Question

Python 3. Can anyone please help me with these two homework using Python 3. Thanks in...

Python 3. Can anyone please help me with these two homework using Python 3. Thanks in advance

8. Tip, Tax, and Total
Write a program that calculates the total amount of a meal purchased at a restaurant. The
program should ask the user to enter the charge for the food, and then calculate the amount
of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total.


9. Celsius to Fahrenheit Temperature Converter
Write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula
is as follows:
The program should ask the user to enter a temperature in Celsius, and then display the
temperature converted to Fahrenheit.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any doubts, please give me comment...

8)

charge = float(input("Enter the charge for the food: "))

tip = charge*0.15

sales_tax = charge*0.07

total = charge + tip + sales_tax

print("\nCharge for the food: %.2f"%charge)

print("Tip: %.2f"%tip)

print("Sales Tax: %.2f"%sales_tax)

print("Total: %.2f"%total)

9)

temp_celisus = float(input("Enter temperature in cesius: "))

temp_fahrenheit = (temp_celisus*9/5)+32

print("Temperature in Fahrenheit is: %.2f"%temp_fahrenheit)

Add a comment
Know the answer?
Add Answer to:
Python 3. Can anyone please help me with these two homework using Python 3. Thanks in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT