Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ please #include using namespace std; int main() { // your code goes here return 0; } The distance form Cameron to Epic is

In C++ please

#include using namespace std;

int main() { // your code goes here return 0; }

The distance form Cameron to Epic is 1 mile. The shuttle bus arrives on the 15 minutes in front of Cameron. The bus travels at 5 mph. Your class prior to this one ends at 12:15 pm. If you walk you can travel at 2 mph.

Write the program that includes the following:

A calculation that outputs how many minutes it will take to walk to class

A calculation that outputs how many minutes it will take to arrive via bus

Asks the user to input the source of transportation that takes the least amount of time and outputs You should ________ to get to class on time. ( alter as necessary).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

3. What are the key reasons that firms do ratio analysis?

Answered: 1 week ago