code


 

Solve the following two questions and upload

1). Screenshot of the Output

2. Python files for both questions

Q1. Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit is

                                             F = (( 9/5 ) * C ) + 32

where F is the Fahrenheit temperature, and C is the Celsius temperature. Your program must use a loop to display the table.

Q2. A customer in a store is purchasing five items. Write a program that asks for the price of each item, then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent.