1.
Put the code in the right order to create a program that will generate a value 0 to 1500 inclusive, assign a value to double variable
cost
depending on the value of integer variable distance
as shown in the table above, and then print both values.