You are on page 1of 1

Group#1

Lab1

Write, save, and run a Python program, named Lab1.py that will do the following
when run:

1. Asks the user to enter his/her last name, first name 2 marks
and user ID all in one statement.
2. Stores the above input data the user enters in variables 2 marks
named ‘lastName’, ‘firstName’, and ‘userID’
3. Asks the user the number of hours per day and 1 marks
number of days he/she worked during a week.
Hours should be floating point number and days should
be integer.
4. Prints the data the user entered. Calculates and prints 3 marks
the weekly pay. The hourly pay is $15.50.
Note that the product operator is the * symbol.
5. The output of the program should look similar to the 2 marks
output of a sample run shown below.
10 marks total

#Sample run

Enter your last name, first name and user ID: John Smith 123-456-789
Enter the hours per day and days you worked during this week: 8 5

Name: John Smith


User ID: 123-456-789

Hours/day: 8.0
Days: 5
Weekly Pay: $ 620.0

Process finished with exit code 0

You might also like