Question
Write an algorithm of the following. You have to get to class at noon. You wake up in the morning according to your alarm clock.
Write an algorithm of the following.
You have to get to class at noon. You wake up in the morning according to your alarm clock. Class is 12 miles away from your bedroom. You want to get there in the most economical way and on time. Your modes of transport are:
walking, (max speed 3 mph and not limited to road surfaces)
stupid motor bike, (max speed 10 mph and 70 mpg, but limited to road surfaces)
Abrams M1 tank, (max speed 65 mph, not limited to road surfaces!) Cooooool! But, only gets 0.4 mpg.
Other considerations include: 1. traffic conditions (you have a traffic radio). 2. the weather (you also have a weather radio).
You will not want to walk or drive the moped in bad weather. Bad traffic can halt a moped. Nothing can halt an M1 tank. Write an algorithm that you can use to decide how you will get to class on time with as little monetary expenditure as possible given the above conditions.
Step 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