COMP 1000 Lecture 1: Assignment 1
Document Summary
Miles per gallon: 5: write a program for a grocery store that asks the user to enter the unit price, quantity, and discount amount of a product. The program should then calculate and print on the screen the total amount to be paid by the customer. The employee is not allowed to leave work before 4:00 p. m. , but he/she may stay after 4:00 p. m. as overtime. The normal hourly rate is 7$ while the overtime hourly rate is 20% more than the normal hourly rate. 3% tax is deducted from the weekly salary and thus the employee earns a net salary which is equal to the salary after deducting the tax. Your program should read the time the employee left work for all the working days in a week, then calculate and display the weekly salary, the tax as well as the net weekly salary. Assume that the leaving time of the employee is always an integer.