Salary calculator: this program will ask for the number of hours you have worked and compute the salary including the overtime. Note: working hour over 45 is considered an overtime on this example.
plss!.. give me the code. pls!..

Recommended Answers

All 2 Replies

We aren't allowed to just give you the code (what would that achieve?)

Please show us your attempt and ask any specific questions for any problem that you may be having and we will be happy to point you in the right direction.

you would start off by making them type in the salary and the number hours and if the number was greater then 45 then you would subtract 45 from the total hours worked then you would multiply the pay by 1.5. then you would add the pay for the hours and the pay for the overtime and print it on the screen.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.