Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requires Using Matlab 2017 Problem #1 resources and postings. Ifyour submission is flagged for a high level of similarity, it will be review by the

Requires Using Matlab 2017image text in transcribedimage text in transcribed

Problem #1 resources and postings. Ifyour submission is flagged for a high level of similarity, it will be review by the ENGI 1331 faculty, and then it will be turned in for an academic honesty violation if deemed appropriate. NOTE: Since this is an automated system for all sections, if any of your work is not your own, you will be caught. Changing variable names, adding comments, or spacing will not trick the similarity algorithm and will result in a violation. un Two lab technicians are testing the power and potential energy that results from various masses being propelled into the air by an air cannon. Each engineer recorded their results in the data file provided for this problem, however, the units used were not consistent. In the first data collection session (Problem1 data1.csv), a lab technician collected three different measurements and recorded mass in grams in row 1, height in feet in row 2, and time in minutes in row 3. However, in data collection session two (Problem1 data2.csv), a different lab technician collected four different measurements and recorded mass in pounds-mass, height in centimeters, and time in hours. There will always be only two data sets but your code should work without changes if the number of columns in either data set changes. . .The data sets will always be named as given in the problem statement. The user will enter an appropriate value with the correct units as prompted . ing Requiremern Include required documentation and header for the problem and clearly label tasks with comments in your code Ask the user to select a measurement from data set 1 and data set 2. You choose how to prompt the user to enter this information without allowing the user to enter values that might break your code. . - .All output to the command window should be formatted (not unsuppressed output) Review the rubric for a description of test cases and a sample output. . TASK 1 Prompt the user to enter a new mass (kilograms), new height (meters), and new time (seconds). Calculate the potential energy joules) and power (watts) for the entered value. Output the results of the potential energy and power to the command window TASK2: Calculate the potential energy in joules and power in watts for each data session provided. The program should only consider variables in SI units, so you wil need to convert some values prior to calculating your results. You will create one final matrix that combines the two collection sessions and the user entered value from Task 1 and has mass (grams) in column 1, potential energy joules) in column 2, and power (watts) in column 3. The second data set should be combined to the bottom of the first data set and the user defined measurement should be included at the end. You will export this matrix to a .csv file named Problem1 results.csv. Output to the command window the number of total measurements taken between the data sets including the user entered value

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Which of the sources is most cost effective?

Answered: 1 week ago

Question

=+Are the contracts enforceable?

Answered: 1 week ago