Write a program to calculate the fares of seats in airplane. The airplane has three classes i.e., Economy, AC standard,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program to calculate the fares of seats in airplane. The airplane has three classes i.e., Economy, AC standard,

Post by answerhappygod »

Write a program to calculate the fares of seats in airplane. The
airplane has
three classes i.e., Economy, AC standard, Business Class. The user
will
provide the number of seats in any one of the classes mentioned
earlier.
The user can also compute fares of seats of any combination of the
classes
(Economy, AC Standard, Business Class, AC Sleeper Class). For
Example, the
user wants to calculate the fares of two seats in Economy class, 2
seats in
Business class and two seats in Ac Standard class. Seat in Economy
class
has fare equals 10000Rs. Seat in Ac standard class has fare equals
15000
Rs and Seat in business class has fare equals 20000 Rs. Seat in
business
class has fare equals 25000 Rs. write solution in c
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply