Question: USING VBA EXCEL AND OPTION EXPLICIT The cargo teleporter from Earth to Mars operates between 3 am and 11 am every day. Write a program

USING VBA EXCEL AND OPTION EXPLICIT

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.

Heres a sample:

USING VBA EXCEL AND OPTION EXPLICIT The cargo teleporter from Earth to

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 dont 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.

Mars operates between 3 am and 11 am every day. Write a

Upload your spreadsheet.

1 Earth-Mars Teleport Price 3 When: 710 5 E g., 10 15 2 7 Kilos: M 9 Destination: 10 E or M 12 Compute 13 14 Price: 836 15 E to M M to E 16 3 to 3:59 312 349 4 to 4:59 345 18 386 5 to 5:59 358 401 19 6 to 6:59 393 20 440 7 to 7:59 418 468 21 221 8 to 8:59 387 433 231 9 to 9:59 362 405 10 to 11 390 24 348

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!