Menu

[Solved]Engineering Team Built Rubber Band Vehicle Ready Test Want Record Distances Rubber Band W Q37274964

An engineering team has built a rubber band vehicle and is ready to test it. They want to record the distances and rubber banSTART question 1 Input units OUTPUT while question-= 0 plot(windings, STOP distance) Input question input(How many rubber banAn engineering team has builta rubber band vehicle and is ready to test it. They want to recordthe distances and rubber band windings in two separate variables,then graph their data at the end of testing. They plan to enter thedata as they go, so they need to be able to enter each item one ata time. They aren’t sure how many tests they’ll do today, so theyneed to be able to enter as many values as they want to during asingle run of the program and end the program when they are donetesting.

An engineering team has built a rubber band vehicle and is ready to test it. They want to record the distances and rubber band windings in two separate variables, then graph their data at the end of testing. They plan to enter the data as they go, so they need to be able to enter each item one at a time. They aren’t sure how many tests they’ll do today, so they need to be able to enter as many values as they want to during a single run of the program and end the program when they are done testing Create a script file that would » Ask the team what units they are using to measure the vehicle distance, store as a variable Allow the team to input the following values one at a time: how far the vehicle traveled and the number of rubber band windings o o Store the the distances as a vector . Store the rubber band windings as a separate vector – Allow the team to enter as many (or as few) values as they want to » Hint: implement a user input to control the loop When the team is done entering values, plot the vehicle distances as a function of rubber band windings o Give the plot a title Label the axes correctly. The rubber band windings do not have units. The distance should include the units given by the team . » Hint: Look at the useful commands document on the Plotting Resources page You will need to use num2str() » The program must use a while loop » Note, the condition of the while loop is: question0 Submission: » Submit one.m file » The file should be commented, code properly suppressed, meaning only the desired results are displayed using disp() or a similar function) Program must include: Header (see syllabus) Short description of what the program does (in your own words) Descriptive comments for most lines. Should be specific and demonstrate that you understand what the code is doing and how. Look at the “Descriptive Comments.pdf” document on the MATLAB Resources Page for examples » » » START question 1 Input units OUTPUT while question-= 0 plot(windings, STOP distance) Input question input(How many rubber band windings did you use? Enter 0 if done:) if question>0 )-Yes- windings(i) = question Input distance No i i+1 Show transcribed image text An engineering team has built a rubber band vehicle and is ready to test it. They want to record the distances and rubber band windings in two separate variables, then graph their data at the end of testing. They plan to enter the data as they go, so they need to be able to enter each item one at a time. They aren’t sure how many tests they’ll do today, so they need to be able to enter as many values as they want to during a single run of the program and end the program when they are done testing Create a script file that would » Ask the team what units they are using to measure the vehicle distance, store as a variable Allow the team to input the following values one at a time: how far the vehicle traveled and the number of rubber band windings o o Store the the distances as a vector . Store the rubber band windings as a separate vector – Allow the team to enter as many (or as few) values as they want to » Hint: implement a user input to control the loop When the team is done entering values, plot the vehicle distances as a function of rubber band windings o Give the plot a title Label the axes correctly. The rubber band windings do not have units. The distance should include the units given by the team . » Hint: Look at the useful commands document on the Plotting Resources page You will need to use num2str() » The program must use a while loop » Note, the condition of the while loop is: question0 Submission: » Submit one.m file » The file should be commented, code properly suppressed, meaning only the desired results are displayed using disp() or a similar function) Program must include: Header (see syllabus) Short description of what the program does (in your own words) Descriptive comments for most lines. Should be specific and demonstrate that you understand what the code is doing and how. Look at the “Descriptive Comments.pdf” document on the MATLAB Resources Page for examples » » »
START question 1 Input units OUTPUT while question-= 0 plot(windings, STOP distance) Input question input(How many rubber band windings did you use? Enter 0 if done:) if question>0 )-Yes- windings(i) = question Input distance No i i+1

Expert Answer


Answer to An engineering team has built a rubber band vehicle and is ready to test it. They want to record the distances and rubbe… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *