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:
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.
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 348Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started