طالبة علوم حاسوب
Active Member
- تاريخ التسجيل
- 29 يناير 2009
- المشاركات
- 31
- المجموعة
- أنثى
- الدفعة الدراسية
- 2008
- الكلية
- كلية تقنية المعلومات
- التخصص
- علوم حاسوب
A travel agent asks you to write a program that issues receipts for passenger tickets. The input to your program is the first name of the passenger (string), the ticket price (float) and the number of bags(integer).
The program should find the amount of the tax which is 30% of the ticket price and the net price to be paid by the customer which is the summation of the ticket price and airport tax.
Assume each input is stored on a single line in a file called ticket.txt. Your program should read the input from this file and store the output in a file called fare.txt. The ticket price, airport tax, and net price should be set to the precision of three decimal places. The output, and its format, is set according to the following sample input/ouput.
fare.txt
Name Ahmed
Bags 3
Ticket Price 152.500
Airport Tax 45.750
Net Price 198.250
ticket.txt
Ahmed
152.50
3
بليييييييييييز قبل الاحد ضروووري
مشكورين
The program should find the amount of the tax which is 30% of the ticket price and the net price to be paid by the customer which is the summation of the ticket price and airport tax.
Assume each input is stored on a single line in a file called ticket.txt. Your program should read the input from this file and store the output in a file called fare.txt. The ticket price, airport tax, and net price should be set to the precision of three decimal places. The output, and its format, is set according to the following sample input/ouput.
fare.txt
Name Ahmed
Bags 3
Ticket Price 152.500
Airport Tax 45.750
Net Price 198.250
ticket.txt
Ahmed
152.50
3
بليييييييييييز قبل الاحد ضروووري
مشكورين