Professional Documents
Culture Documents
Assign1 S11149101 Writeup
Assign1 S11149101 Writeup
Assignment 1
2023
Semester 1
5. If Age > = 80
Male and Female:
0% tax on all income (No Tax)
6. Display output
- Name
- Employee ID
- Age
- Gross Pay Week
- Annual, Salary
- Tax Amount
7. End Procedure
Exercise 2
1.
- Age
- Number of hours worked
- Year of birth
2.
- Age
- Number of hours worked
- Year of birth
3. Age – numeric
Number of hours worked – numeric
Year of birth – categories
Age is used as numeric since it id declared only in number likewise for hours worked.
Since year of birth goes according by years, it is declared as categories.
Exercise 3
ON ERROR
CHECK EXCEPTION
CHECK PROPERTY
The program which I developed actually does not produce the correct result as expected but the
interface, input data and output result is calculated.
Exercise 4
This would not be morally acceptable in my opinion because basic programming ethics indicate
that a programmer should never produce or disseminate malware or inaccuracy and should never
purposefully obfuscate or make difficult to understand code.
Since this assignment is based just for students learning and development in coding skills, it is
fairly acceptable ensuring it does not report any illegal activities by any end user such as any
employee or employer.