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
  • In Python, write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula is as...

    In Python, write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula is as follows: F=(9/5)C+32 The program should ask the user to enter a temperature in Celsius, then display the temperature converted to Fahrenheit.

  • Write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula is as follows: F=95C+32...

    Write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula is as follows: F=95C+32 The program should ask the user to enter a temperature in Celsius, and then display the temperature converted to Fahrenheit. I'm doing this on Python.

  • Language - PYTHON Design a program that calculates the total amount of a meal purchased at a restaurant

    Language - PYTHONDesign 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% tip and 7% sales tax. Display each of these amounts and the total.Please help, I have no idea where to begin. Thanks

  • Python Simple Programming Write a program in Python that calculates the tip and total for a...

    Python Simple Programming Write a program in Python that calculates the tip and total for a meal at a restaurant. When your program is run it should ... Calculate the tip and total for a meal for a restaurant Print the name of the application "Tip Calculator" Get input from the user for cost of meal and tip percent Print the tip and total amounts. The formula for calculating the tip amount is: tip = cost of meal * (tip...

  • (in python) Write a GUI application that converts Celsius temperatures to Fahrenheit temperatures. The user s......

    (in python) Write a GUI application that converts Celsius temperatures to Fahrenheit temperatures. The user s... Write a GUI application that converts Celsius temperatures to Fahrenheit temperatures. The user should be able to enter a Celsius temperature, click a button, and then see the equivalent Fahrenheit temperature. Use the following formula to make the conversion ( F=9/5 C + 32) where F is the Fahrenheit temperature and C is the Celsius temperature

  • In Python please. You are traveling in Europe where the temperatures are in Celsius rather than...

    In Python please. You are traveling in Europe where the temperatures are in Celsius rather than Fahrenheit. So you decide to write a program that asks the user for a temperature in Celsius and then converts it to Fahrenheit (the formula is 9/5*C + 32). Display the results so that it looks like this: The Fahrenheit temperature is 56 degrees

  • (COs 1 and 8) Create a Python program that calculates the tip and total for a...

    (COs 1 and 8) Create a Python program that calculates the tip and total for a meal at a restaurant. Paste Python code here; output not required. Sample output: Tip Calculator Enter cost of meal: 52.31 Enter tip percent: 20 Tip amount: 10.46 Total amount: 62.77 Specifications: •Input: costOfMeal, tipPercent         The formula for calculating the tip amount is: tip = costOfMeal * (tipPercent / 100) •         The program should accept decimal entries like 52.31 and 15.5. •         Assume the user...

  • Write python program using IDLE Write a full program that asks the user to enter his/her...

    Write python program using IDLE Write a full program that asks the user to enter his/her name then repeatedly ask to enter the temperature in Fahrenheit and convert it to Celsius, the program should then prompt the user if he/she wants to continue or exit the program. The formula for the conversion is: °C = (°F - 32) x 5/9 The program should use a function for the conversion. An Example of a sample run should appear on the screen...

  • Python Programming: Create a program that calculates three options for an appropriate tip to leave after...

    Python Programming: Create a program that calculates three options for an appropriate tip to leave after a meal at a restaurant and repeats if the user enters "y" or "Y" to continue. Print the name of the application "Tip Calculator" Get input from the user for "Cost of meal: " Calculate and display the "Tip Amount" and "Total Amount" at a tip_percent of 15%, 20%, and 25%. Use a FOR loop to iterate through the tip_percent The formula for calculating...

  • write in python idle Write full program that asks the user to enter his/her name then...

    write in python idle Write full program that asks the user to enter his/her name then repeatedly ask to enter the temperature in Fahrenheit and convert it to Celsius, the program should then prompt the user if he/she wants to continue or exit the program. The formula for conversion is: °C = (°F - 32) x 5/9 The program should use a function for the conversion. An Example of a sample run should appear on the screen like the text...

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