Question: 1.a. Using Python, write a program using the for statement to loop that displays a table of the Celsius temperatures 0 through 20 and their
1.a. Using Python, write a program using the for statement to loop 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 for loop to display the table.
1.b. using Python, write a program using the while statement that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days and assign to variable called days_num. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount as currency, not the number of pennies. [Hint: pennies are a fraction of a dollar. 100 pennies = 1 dollar.] Set day_count = 1. Iterate while day_count < days_num. When test condition is true day_count = day_count + 1
please answer both questions & will rate.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
