1.
Q8: Put the code in the correct 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.