موقع طلبة جامعة البحرين

يمكنك تصفح الموقع كزائر ولكن ندعوك لتسجيل عضوية خاصة بك لتحصل على كافة الصلاحيات مثل تنزيل ملفات المكتبة وقراءة تعليقات هيئة التدريس وغيرها. يمكنك الحصول على عضوية مجانية بالضغط على زر تسجيل. إذا قمت بالتسجيل مسبقا فيمكنك الضغط على زر دخول.

تسجيل دخول
  • قسم المكتبة الجامعية مغلق مؤقتا بعد الاستهداف التي تعرضت له بعض خدمات أمازون في البحرين، جاري استرجاع الملفات ونقلها إلى سيرفرات جديدة وسيتم بعدها اعادة افتتاح المكتبة

27/3/2009 ساعدوني اسايمنت cs 101

الحالة
مغلق و غير مفتوح للمزيد من الردود.
تاريخ التسجيل
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
بليييييييييييز قبل الاحد ضروووري
مشكورين
 
الحالة
مغلق و غير مفتوح للمزيد من الردود.
عودة
أعلى أسفل