Site icon Tutor Bin

UCM Python Program Project

UCM Python Program Project

Description

Instructions:

You need to write one Python program per question. Each program should be written in IDLE or be IDLE compatible.

Name the program after the title of the problem.

The first three lines of each program should be a comment to include your name, date and name of the program.

Create a new folder called ch2 HW and place all your programs inside. Then zip (compress) the folder and submit the single ch2 HW zipped folder.

1. 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, then calculate the amounts of a 18 percent tip and 7 percent sales tax. Display each of these amounts and the total.

2.Celsius to Fahrenheit Temperature Converter

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.

3.Ingredient Adjuster

A cookie recipe calls for the following ingredients:

1.5 cups of sugar

1 cup of butter

2.75 cups of flour

The recipe produces 48 cookies with this amount of the ingredients. Write a program that asks the user how many cookies he or she wants to make, then displays the number of cups of each ingredient needed for the specified number of cookies.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version