Assignment3 Selection
Assignment3 Selection
Sales (RM)
Above 10,000
5,000 to 10,000
Below 5,000
Commission Rate(%)
10.0
7.5
5.0
Write a program that calculates and display the commission for a salesperson.
Task 2
The ticket price of a musical theater is based on the seat location as shown in the
following table.
Seat Location
Box
Pavilion
Bench
Lawn
Develop a program to calculate and display the ticket price for a customer. The
program should calculate the ticket price base on the seat location and the number of
tickets required. Use suitable one letter code for the seat location, e.g. B for Box, P
for Pavilion etc. Be sure to prompt the user with enough information.
Task 3
Applicants applying for a post as policeman/policewomen must fulfill the following
criteria:
1. Age between 21-35
2. The physical qualification:
Gender
Male (M)
Female (F)
Height
1.63m and above
1.57m and above
Weight
Minimum 50kg
Minimum 48kg
3. The Body Mass Index (BMI) for all gender must be less than 25.0
* BMI Formula: weight (kg) / (height (m))2
Develop a program to determine whether the applicant is qualified to apply or not.
State the reason, if the candidate does not qualified. Check the criteria following the
above order (age, physical and bmi). If the applicant does not meet the first criteria
(age), your system does not have to check for the rest of the criteria.