Pawn Game |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
User
Join Date: Mar 2007
Location: Canada
Clan Name: SVG
Posts: 153
|
this is an assignment for my comp science 20 class, and my email aint workin and I have no other way than this to transport it, but feel free to steal it if you have a similar assignment, its not like I care.
REM 11111111111111111111111111111111111111111111111111 11111 REM 11111111111111111111111111111111111111111111111111 11111 REM 11111 11111 REM 11111 Sadistic 11111 REM 11111 11111 REM 11111 Program Concept - Pay Calculator 11111 REM 11111 11111 REM 11111111111111111111111111111111111111111111111111 11111 REM 11111111111111111111111111111111111111111111111111 11111 CLS REM Below are the positions and the ammount they earn per hour before deductions Chef = 10 Cashier = 9 Janitor = 15 Waiter = 8 Manager = 20 INPUT "What is the employee's name"; NAM$ INPUT "What position does the employee hold"; POSITION$ INPUT "How many hours has the employee worked"; HOURS CLS PRINT NAM$ IF POSITION$ = "chef" THEN PRINT "Position: Chef" PRINT "Amount earned per hour:"; PRINT " $10.00"; PRINT "Hours worked:"; HOURS PRINT "Amount earned before deductions"; DEDUCTION = 10 * HOURS * .17 MONEY = 10 * HOURS - DEDUCTION PRINT USING " $###.##"; 10 * HOURS PRINT "Deduction:" PRINT USING "$##.##"; DEDUCTION PRINT "Amount after 17% deduction "; PRINT USING "$##.##"; MONEY END IF IF POSITION$ = "Cashier" THEN PRINT "Position: Cashier" PRINT "Amount earned per hour:"; PRINT " $9.00"; PRINT "Hours worked:"; HOURS PRINT "Amount earned before deductions"; DEDUCTION = 9 * HOURS * .17 MONEY = 9 * HOURS - DEDUCTION PRINT USING " $###.##"; 9 * HOURS PRINT "Deduction:" PRINT USING "$##.##"; DEDUCTION PRINT "Amount after 17% deduction "; PRINT USING "$##.##"; MONEY END IF IF POSITION$ = "Cashier" THEN PRINT "Position: Cashier" PRINT "Amount earned per hour:"; PRINT " $9.00"; PRINT "Hours worked:"; HOURS PRINT "Amount earned before deductions"; DEDUCTION = 9 * HOURS * .17 MONEY = 9 * HOURS - DEDUCTION PRINT USING " $###.##"; 9 * HOURS PRINT "Deduction:" PRINT USING "$##.##"; DEDUCTION PRINT "Amount after 17% deduction "; PRINT USING "$##.##"; MONEY END IF IF POSITION$ = "Janitor" THEN PRINT "Position: Janitor" PRINT "Amount earned per hour:"; PRINT " $15.00"; PRINT "Hours worked:"; HOURS PRINT "Amount earned before deductions"; DEDUCTION = 15 * HOURS * .17 MONEY = 15 * HOURS - DEDUCTION PRINT USING " $###.##"; 15 * HOURS PRINT "Deduction:" PRINT USING "$##.##"; DEDUCTION PRINT "Amount after 17% deduction "; PRINT USING "$##.##"; MONEY END IF IF POSITION$ = "Manager" THEN PRINT "Position: Manager" PRINT "Amount earned per hour:"; PRINT " $20.00"; PRINT "Hours worked:"; HOURS PRINT "Amount earned before deductions"; DEDUCTION = 20 * HOURS * .17 MONEY = 20 * HOURS - DEDUCTION PRINT USING " $###.##"; 20 * HOURS PRINT "Deduction:" PRINT USING "$##.##"; DEDUCTION PRINT "Amount after 17% deduction "; PRINT USING "$##.##"; MONEY END IF END O ye, and if u wanna contact me, i-r-t3h-1337n355@hotmail.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|