0% found this document useful (0 votes)
4 views9 pages

Adi

Uploaded by

shakhawat azim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views9 pages

Adi

Uploaded by

shakhawat azim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Q1: (a) Describe the data structures you could have used in Task 1.

Your description should include types of data structure,


names used for data structures, their uses and examples of sample data.

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

..................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

...................................................................................................................................................................................................

...................................................................................................................................................................................................

..................................................................................................................................................................................................

(b) Explain how you could change your program in Task 1 to calculate the total money collected incase of booking fee is $5

from the customer for the booking of the parking.

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

....................................................................................................................................................................................................

...................................................................................................................................................................................................
(c) Describe how data input in Task 1 could be validated when the customer chose a particular booking day.

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

....................................................................................................................................

........................................................................................................................................................................................

........................................................................................................................................................................................

........................................................................................................................................................................................ (d)

Write an algorithm to show how your program completes Task 2 assuming the option accessible has been chosen, using

pseudocode, programming statements or a flowchart. Details completed in Task 1 are not required.

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

................................................................................................................................................................................................

….............................................................................................................................................................................................

..............................................................................................................................................................................................

..............................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

....................................................................................................................................

........................................................................................................................................................................................

........................................................................................................................................................................................
........................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................
(e) Explain how your program allows the owner to select and display the number of accessible and general parking booked

(part of Task 2) in a particular day. Any programming statements used in your answer must be fully explained.

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................

.....................................................................................................................................................................................................
(d) Draw a flowchart to represent this section of program code. [5]

You might also like