Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DEB Layout ferences De Mailing E. Test 12120210 Company Mode - M Grammatty Tome 91 AA A Abbb Question 1 10 marks): Write a program

image text in transcribed
DEB Layout ferences De Mailing E. Test 12120210 Company Mode - M Grammatty Tome 91 AA A Abbb Question 1 10 marks): Write a program that calculates the cost of travelling using a private jet. The program must request the name of the destination and the distance in kilometers of the destination. The program must then calculate and print the name of the destination and the cost to get there. The table below gives the cost per mile that must be charged based on the distance Distance in kilometers) More than o but less than or equal to 100 kilometers More than 100 but not more than 500 kilometers More than 500 but less than 1000 kilometers 1000 kilometers or more Cost per mile 125 10.25 8.5 5 You may assume valid input is always entered Linsert the code for your solution here MacBook Pro AE OF . Ne # 3 $ 4 % 5 & 7 + 1 6 8 9 0 W F R TY 11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. If you were Dawn, what decision would you make and why?

Answered: 1 week ago

Question

=+applying to all or most employers and employees?

Answered: 1 week ago

Question

=+associated with political parties and if so, which ones? Are

Answered: 1 week ago