guptatrisha97 / calculation-of-ticket-price Goto Github PK
View Code? Open in Web Editor NEW(1) Calculation of ticket price: page 1 in the instruction "Price of this ticket (a further 10% discount if customer buy through Joyful Travel)". all tickets bought through this system has 10% off" after every successful "buy" operation, calculate the total price (price for 1 ticket * number of tickets * 0.9), keep the result as integer (no need to round up) the total revenue will be the sum of all total price above. (2) mainDB.csv - maximum 500 records. treat this as a read only file. when program runs for the first time, read the content of this file into arrays, and start working. when program runs again, read the content of this file and intermediate file into arrays, and then start working. (3) airportcode.txt - maximum 200 records (4) when a promotion quota reaches zero, the corresponding array record needs to be made empty so to release space for a new record. (5) ordering of the user commands, user will enter