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