1. Write a java program to input three integers and print the largest.
2.A bicycle shop in a city hires bicycles by the day at different rates for different model below:
Model No. Hire rate per Day (RM)
Model No. 1
14.00
Model No. 2
12.00
Model No. 3
10.00
In order to attract customers, the shopkeeper gives a discount on the number of days a bicycle is hired for. The policy of discount is as given below:
No. of days Discount rate (%)
1-5
0.00
6-10
8
11 and over
15
For every bicycle hired, a deposit of RM 30.00 must be paid.
Write an algorithm (flowchart or pseudocode).
--------------------------------------------------------------
Solution (flowchart) for Question 1.
Solution (Flowchart) for question 2.