You are on page 1of 1

Assignment 01

Question 1

1) Compare and contrast types of programming methodologies. [15 marks]


2) Briefly explain Modularization and Modular Techniques. [15 marks]
3) Draw a flow chart for the following scenario.
1. Program starts when user clicks on the 'Pay & Exit ' button in Payment
Machine
2. The system requests the vehicle number
3. The user enters the vehicle number
4. System locates the car
5. System shows the image of the car to user
6. User identifies the car and confirms
7. System shows the ticket information including parking charges
8. User enters card details to make payment
9. System sends the card details to Payment Gateway to validate
10. Systems prints the receipt
11. User collects the receipt and drives to exit gate
12. System identifies the car at the Exit gate
13. System opens the exit gate for user
14. Use case ends when the user exits the car park

Alternatives:
4a. if the system cannot locate the car, go back to the step 2
6a. if the user does not identify the car image, go to step 4
9a. if the card details invalid, display a message, go to step 8
[30 marks]

4) In a parking area, the officials charge Rs 200.00 per parking slot for up to 3 hours. If a
parking slot is used for more than 3 hours, an additional Rs 50.00 will be charged per
every additional hour. Assume that none of the cars park for longer than 24 hours.

Write a Java program to input the,


• Customer name
• Entering time at the parking slot (in 24 hour clock)
• Leaving time from the parking slot (in 24 hour clock)

The program should calculate and display the total charge.


[40 marks]

--End of Paper--

Page 1 of 1

You might also like