Monday, June 15, 2020

chapter 2 week 4 Assignment 2.3

2.3 Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Use 35 hours and a rate of 2.75 per hour to test the program (the pay should be 96.25). You should use input to read a string and float() to convert the string to a number. Do not worry about error checking or bad user data.




No comments:

Post a Comment

chapter 5 week 7 Assignment 5.2

5.2  Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entere...