Q. A passenger plans to travel n kilometer. she can choose between three types of transportation:
a. travel by train day/night:0.06 EUR/km. can be used for distance of minimum 100km.
b. travel by bus. day/night:0.09EUR/km.can be used for distance of minimum 20km.
c. Travel by taxi. starting fee:0.70 EUR. day rate :0.79EUR night rate: 0.90EUR/km.
Write an application named transportion that prompts from user the number of kilometers n and period of the day and calculate and display the price for the cheapest transport.
#Sales Offer!| Get upto 25% Off: