▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
วิทยาศาสตร์คอมพิวเตอร์
C (ภาษาคอมพิวเตอร์)
วิศวกรรมคอมพิวเตอร์
การพัฒนาซอฟต์แวร์
การพัฒนา Desktop Application
จะแก้โจทย์นี้ยังไงดี
Most major airports have separate lots for long-term and short-term parking. The cost to park depends on the lot you select, and how long you stay. Consider this rate structure from the Salt Lake International Airport during the summer of 2008.
Long-Term (Economy) Parking
The first hour is $1.00, and each additional hour or fraction thereof is $1.00
Daily maximum $6.00
Weekly maximum $42.00
Short-Term Parking
The first 30 minutes are free and each additional 20 minutes or fraction thereof is $1.00
Daily maximum $25.00
Write a program that asks the user the following:
Which lot are you using?
How many weeks, hours, days, and minutes did you park? Your program should then calculate the parking bill.