c programming

profilejack_96
cprogrammingfeedback.pdf

Quazi Zobair Hossain s296009

1

1. Initialize manager=1

2. Initialize commission=3

3. Initialize hourly=2

4. Initialize piece=4

5. Print the code of employee

6. Input the code of employee

7. Switch for the code of employee

7.1. Case code = ‘1’

print salary of manager

Break

7.2. Case code = ‘2’

print amount of hours worked

input amount of the hours worked

print the hourly rate

input the hourly rate

7.2.1. If hours<40

Print salary of hourly worker

Break

7.3. Case code = ‘3’

print gross weekly sale made by employee

input gross weekly sale made by employee

print salary of commission employee

break

7.4. Case code = ‘4’

print amount the employee paid for a product

input amount the employee paid for a product

print the product produce by employee

input the product produce by employee

print salary of piece worker

break

7.5. Case code = ‘5’

Print code not matched

Break

calbert
Pencil
calbert
Typewritten Text
Lack explanations
calbert
Pencil

Quazi Zobair Hossain s296009

2

calbert
Pencil
calbert
Pencil
calbert
Pencil
calbert
Pencil
calbert
Pencil
calbert
Typewritten Text
C code:
calbert
Typewritten Text
Case 3 and 4 did not work as expected
calbert
Pencil