Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now

COS10008 Technical Programming- Train Ticket Reservation System

Questions

1. Draw a flowchart for the following problem: The tax office is calculating how much tax is payable given a salary. If the salary is equal to or less than $10,000, then the tax payable is 10%. If the salary is between $10,001 and $50,000, then the tax is 10% for the first $10,000 and 20% for any remaining amount above $10,000. If the salary is greater than $50,000, then the tax payable is 10% on the first

$10,000, 20% on the next $40,000 and then 40% on the remaining salary above $50,000.

2. Draw a flowchart that reads the file and then calculates and prints the number of students that scored HD, D, C, P, and F.

3. Draw a flowchart containing a loop of your choice that prints out the first 8 powers of 2 in reverse, e.g., 128 64 32 16 8 4 2 1

4. Train Ticket Reservation System

Using the C programming language, write a program to imitate the train ticket reservation system.

The system will be used by the Ticketing Officer, who will login to the system at 9:00 am and logout at 5:00 pm. Patrons will approach the ticketing officer to check availability and to book tickets.

The details of the train: 

Class

Capacity

Ticket Price – Above 12 years

Special rates

A

30 seats

25$

15$ – Seniors & Children below 12 years

B

60 seats

15$

10$ – Seniors & Children below 12 years

C

90 seats

9$

5$ – Seniors & Children below 12 years

Note: Free ride for children under 3 years.

Read less
Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes