Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Function Name: fluxCapacitor Inputs 1. (double) The current year 2. (double) Destination year 3. (double) Speed, in miles per hour Outputs: 1. (char) String stating
Function Name: fluxCapacitor Inputs 1. (double) The current year 2. (double) Destination year 3. (double) Speed, in miles per hour Outputs: 1. (char) String stating whether you're going back or forward into the future Background: Doc Brown has invited you on an adventure through time. As you two hop into the time-travelling Delorean, he inputs the current year and the destination year. As the Doc steps on the gas, he reminds you that you can't interact with ANYONE, or you'll risk changing the flow of time itself! Midway through the speech, he realizes that the car might not reach the necessary speed to travel through time, so you'll need to quickly determine if you'll make it through time Function Description Write a function that takes in the current year, a destination year, and the max speed that the car can reach on the runway. Using these values, determine whether you'll be going back in time, to the future, or straight into a building if the speed is less than 88 mph . If you're going forward in time, output: . If you're going back in time, output . If you're going under 88 mph, you won't be able to time travel, so output We're going to the year , to the future!!! 'We're going to the year , back in time!!!' Time traveling is just too dangerous. Better that I devote myself to study the other great mystery of the universe: MATLAB! Example: out fluxCapacitor (2008, 3000, 89); out 'We're going to the year 3000, to the future!!!" Notes: The current year and destination year will never be the same To create a character vector with an apostrophe, use two apostrophes in a row . Hints: . Use the values from the first movie for a sweet surprise! Function Name: fluxCapacitor Inputs 1. (double) The current year 2. (double) Destination year 3. (double) Speed, in miles per hour Outputs: 1. (char) String stating whether you're going back or forward into the future Background: Doc Brown has invited you on an adventure through time. As you two hop into the time-travelling Delorean, he inputs the current year and the destination year. As the Doc steps on the gas, he reminds you that you can't interact with ANYONE, or you'll risk changing the flow of time itself! Midway through the speech, he realizes that the car might not reach the necessary speed to travel through time, so you'll need to quickly determine if you'll make it through time Function Description Write a function that takes in the current year, a destination year, and the max speed that the car can reach on the runway. Using these values, determine whether you'll be going back in time, to the future, or straight into a building if the speed is less than 88 mph . If you're going forward in time, output: . If you're going back in time, output . If you're going under 88 mph, you won't be able to time travel, so output We're going to the year , to the future!!! 'We're going to the year , back in time!!!' Time traveling is just too dangerous. Better that I devote myself to study the other great mystery of the universe: MATLAB! Example: out fluxCapacitor (2008, 3000, 89); out 'We're going to the year 3000, to the future!!!" Notes: The current year and destination year will never be the same To create a character vector with an apostrophe, use two apostrophes in a row . Hints: . Use the values from the first movie for a sweet surprise
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