The cargo teleporter from Earth to Mars operates between 3 am and 11 am every day. Write a program that computes the price of sending cargo at a particular time. The price per kilo changes every hour. Teleports from Earth to Mars have different prices than teleports from Mars to Earth.
Here's a sample:
The user enters the time of the transport, kilos, and whether the destination is Earth or Mars. The program computes the price. The PPK (price per kilo) table is shown.
You can assume that users don't make any typing mistakes.
Hint: Time is entered as hour, then a space, then minutes. Use the InStr
function to find the space. The characters to the left of that give you the hour.
Upload your spreadsheet.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)