Question: Python mini project 1 Our application should work as follows: 1. The user should be given three prompts where they'll be asked to provide different

Python mini project 1

Python mini project 1 Our application should work as follows: 1. The

Our application should work as follows: 1. The user should be given three prompts where they'll be asked to provide different information about an employee. One prompt should ask for the employee's name, another should ask for their hourly wage, and the final one should ask how many hours the employee worked this week. 2. The employee's name should be processed to ensure that it's in a particular format. All employee names should be stripped of any excess white space and should be in title case. This means that each word is capitalised with all other letters being lowercase. For example, if the employer accidentally has capslock on and they write "rEGINA gEORGE", the name will still be correctly stored as "Regina George". 3. The employee's total earnings for the week should be calculated by multiplying the hours worked by their hourly wage. 4. Remember that any user input we receive is going to be a string. While we can multiply strings, it won't quite do what you want in this case. It's also worth keeping in mind that the employee's wage, or the numbers of hours they worked, might not be a whole number. 5. After processing the employee's name and calculating their earnings for the week, the program should output this information as a single string. For example, output like this would be appropriate: Regina George earned $800 this week

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!