Question: I have to write a code on MATLAB about a problem that A vehicle goes from a city to another one. The total distance is

I have to write a code on MATLAB about a problem that A vehicle goes from a city to another one. The total distance is 416 km. The vehicle goes v=94 km/h for the first 188 km and give a break. After that, it continues with v=114 km/h the rest 228 km. -The costumer should be able to enter as many stops as he wants,

-The program should be able to draw the road-time graph

-In the graph that the program will draw, the horizontal axis must show time, the vertical axis must show the distance.

-When negative values are entered, the program should warn and repeat the process.

-The user should be able to see the distance in meters, miles, or inches.

-The user should be able to see the time as seconds, minutes or hours

-Take acceleration into consideration.

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!