Mar-18-2022, 03:37 AM
I think we need to start really basic here.
A program is simply a set of instructions that tell the computer what to do. So, for example, when you want it to get the name from the user you use a line like "name = input("Enter worker name")"
Do that to get each of the data items you are asked to obtain. When the item is a number, use something = int(input("Enter foo")) or something = float(input("foo")).
Think a bit more abstractly. Where I have something in the lines above, give your variables meaningful names. Don't Enter foo, rather Enter Number of Hours.
Get it?
If we outright give you answers here, you will be totally lost within a month of your course. You need to master these tasks before you can move to more complex ones.
We are here to help. We just need you to start, try, and show us what you have been able to do before we can help you get where you need to go.
A program is simply a set of instructions that tell the computer what to do. So, for example, when you want it to get the name from the user you use a line like "name = input("Enter worker name")"
Do that to get each of the data items you are asked to obtain. When the item is a number, use something = int(input("Enter foo")) or something = float(input("foo")).
Think a bit more abstractly. Where I have something in the lines above, give your variables meaningful names. Don't Enter foo, rather Enter Number of Hours.
Get it?
If we outright give you answers here, you will be totally lost within a month of your course. You need to master these tasks before you can move to more complex ones.
We are here to help. We just need you to start, try, and show us what you have been able to do before we can help you get where you need to go.