Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can Anyone Please help. I need this done ASAP, please Final Project Update #1 Intro to Computers for Engineers Spring 2019 Due 3/15/2019 Purpose To
Can Anyone Please help. I need this done ASAP, please
Final Project Update #1 Intro to Computers for Engineers Spring 2019 Due 3/15/2019 Purpose To create a type of structure in MATLAB that will represent a family of concepts that you will use for this project throughout the semester. What you use is largely up to you, choose wisely. Your family of concepts must: Be easy to clearly define (i.e. things related to cars travelling) Have a number of different pieces of data that can be stored (i.e. the mass of a car, the number of passengers) Have a number of different calculations that you can perform (i.e. fuel used over a distance) Lend itself to a simple visualization (i.e. a car on a road, a car's location on a map, etc.) - Important Note: You may not use cars travelling as your final project. and you may not submit a roject that is clearly a simple modification of the car examples I will give throughout the semester 10 ideas, or get large components (i.e. entire goals) of the project from an external source. Each team does their own project independentlv Goal #1 One project member should write a function that creates your structure continuing a family of related concepts. It should take in all of the data that the structure that represents these concepts should contain, and return a structure containing variables with the pieces of data inside. To begin, your structure should have: At least four variables inside of it. At least two different types of data - Note that you should come up with rules for each piece of data (as a team) and build in checks to this function that will only accept inputs that follow these rules. In a header comment, you should write the name of the primary author and clearly define what your structure represents and the pieces of data that it contains. Note that while all group members may contribute ideas to code and make simple edits and comments, one group member should write most of the code for this section. Goal #2 One project member should write a function that performs a calculation or operation based on the data within the structure from Goal #1. It should take one of these structures as an input, and return an updated structure with a new field with the calculation result. For example, if this was performinga calculation of a car's top speed, and the car was just generated using the function from Goal #1, the output structure would contain a field called topSpeed that did not exist in the input structure Note that this means that after using this function, any structure would now contain at least five variables. In a header comment, you should write the name of the primary author and clearly define what operation is being performed and its result. Note that while all group members may contribute ideas to code and make simple edits and comments, one group member should write most of the code for this section. Goal #3 One project member should write a function that modifies the value of a variable already inside of the structure. It should take three inputs: A structure, a way of selecting the variable inside of that structure to modify, and a new value for that variable. It should return an updated structure with the new value. Note that you should come up with rules for each piece of data (as a team) and build in checks to this function that will only accept inputs that follow these rules. In a header comment, you should write the name of the primary author and clearly define the system by which you select properties to modify. Note that while all group members may contribute ideas tStep 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