write the program for all 10 parts

Online tutoring services

Need help with this question or any other Engineering assignment help task? Click on the button below to to hire an expert cheap.

1. Enter the following table of titles and numbers as a 4x6 cell array, storing the values in Specs. In the Specs cell array, the rows are the properties of each of the cereals, except the first row. The first column is the name of the cereal, the second column is the specific gravity, the third column is the box length (cm), the fourth column is the box width (cm), the fifth column is the box height (cm), and the sixth column is the price per unit mass of the cereal ($/lbm). All of these are indicated by the labels in the top row of the table below. The labels in the top row of the table are only there to provide clarity. Do NOT enter them into the cell array. Cereal Name Specific Gravity [-] Box Length [cm] Box Width [cm] Box Height [cm] Unit Price [$/lbm] Crazy Marshmallows 0.100 20 5 22 3.00 Cinnamonairs 0.168 20 4.5 24.5 1.75 Loopy Loops 0.103 20 5.5 30.5 1.50 Crunch Bunch 0.118 20 7 32 2.50 2. Create a menu to ask the user to select the cereal name, storing the response as a scalar in Choice. The menu choices should be taken from the cell array Specs. Should the initial cell array be changed, the options should reflect the new choices. S21_menu.PNG 3. Ask the user to enter the number of cereal boxes, as a scalar. Store the response in the variable Box. Example: Enter the number of boxes you would like: 10 NOTE: 10 is bolded because it is the example this exam gives. It should not appear as bold on your program. 4. Ask the user to enter their name, as a string. Store the response in the variable UserName. Example: Enter your name: David NOTE: David is bolded because it is the example this exam gives. It should not appear as bold on your program. 5. Determine the density of the chosen cereal, in units of kg/m3, and store the result as a scalar in the variable Dense. You may neglect the mass of the cardboard box and the plastic bag. Remember: Specific gravity = (density of the object)/(density of water) For example, if the user selects Crazy Marshmallows, the density would be 100 kg/m3. If you cannot figure out how to do this step, either hardcode the specific gravity for Crazy Marshmallows into the calculation or simply hardcode 100 into the variable Dense to be used later. You will not receive full credit but you will be able to finish the program for maximum partial credit. 6. Determine the volume of a single box of cereal, in units of m3, and store the result as a scalar in V. Pay attention to your units!!!! Remember: Volume = (length of box)*(width of box)*(height of box) For example, if the user selects Crazy Marshmallows, the volume should be 0.0022 m3. If you cannot figure out how to do this step, either hardcode the values of length, width, and height (watching your units) into the calculation or simply hardcode 0.0022 into the variable V to be used later. You will not receive full credit but you will be able to finish the program for maximum partial credit. 7. Determine the cost of a single box of cereal, and store the result as a scalar in Cost. Pay attention to your units!! You may calculate the cost by the following equations: Mass = density*volume and Cost = (mass of a single box of cereal)*(the unit price of the cereal) For example, if the user selects Crazy Marshmallows, a single box of this cereal would cost $1.46. If you cannot figure out how to do this step, either hardcode the value for the unit price into the calculation or simply hardcode 1.46 into the variable Cost to be used later. You will not receive full credit but you will be able to finish the program for maximum partial credit. 8. Save the text for the cereal chosen as a string in CName. For example, if the user selects Crazy Mashmallows, this is the string that should be saved into CName. If you cannot figure out how to do this step, simply hardcode ‘Crazy Marshmallows’ into the variable CName to be used later. You will not receive full credit but you will be able to finish the program for maximum partial credit. 9. Generate a formatted output statement similar to the one shown here. The output may be shown on multiple lines or on a single line, but the format of the output must match the example shown. David ordered 10 boxes of Crazy Marshmallows cereal. The total cost of the order is $14.55. >> The values presented are assuming the user chose 10 boxes of Crazy Marshmallows (you will need to calculate this). Note the name, number of boxes, cereal choice name, and total cost should all be obtained from the appropriate variables and should change if the user input is changed 10. Graphing data: To give the user a better understanding of the difference in cost of how many boxes of cereal are chosen in previous steps, we want to create a graph using the data in the matrix below. Enter the matrix as specified, noting that the first row represents the number of boxes (to be graphed on the abscissa), and the second row is the total cost (to be graphed on the ordinate). CData=[5 10 15 20 25 30; 7 15 22 29 36 44] Create a graph similar to the one shown below. Note that: The markers created are black diamonds, sized as 15, and are filled with black color. The axis titles are of size 18 and are bold. The grid is present. The axis limits should be controlled to the limits shown on the graph For the sake of time, the axis tick marks are automatically generated. You do NOT need to manually create them.

Get Help With a similar task to - write the program for all 10 parts

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to write the program for all 10 parts
21
Views
0
Answers
Timber task Combined Actions Capacity
Must use AS1720.1 (2010) A bottom chord of a primary indoor roof truss in a resort in Darwin (NT) is made of 90x35 mm seasoned GL12 grade radiata pine. The owner of the building wants to hang a permanent display from the centre of the bottom chord as shown in below Figure. You have been asked to check the performance of the bottom chord under the total loads caused by the display and strength limit in the truss:Factored vertical downwards permanent load at mid span of the bottom chord = 8 kNFactored permanent compression in the bottom chord = 30 kNThere are no restraints against buckling other than at the ends of the member. The point load itself will not provide any lateral restraint. The connections at each end will be provided by four 12 mm bolts in 14 mm holes. Check the capacity of the bottom chord for combined actions.8kN...
30
Views
0
Answers
Research Overview Project and Ideas
All guidelines are specified in the documents given. It's basically writing a research overview of the paper attached and narrowing it down to a specific problem. I am expecting at least 8 pages. Note that the assignment is aerospace engineering-related. So please make sure you have an engineering/math-related background, or at least enough background to understand what is Drag-Free Control....
88
Views
0
Answers
Engineering/Construction/PM Exam
I am looking to have answers to these exam screenshots and assistance in completing the retest. I have other supporting documents and test addendums. This involved water distribution, project management, power systems, roads and airfields....
108
Views
0
Answers
Linear Regression Python Homework
All of the information needed to complete the homework is within the assignment. Please let me know if you have any further questions if the assignment is not clear....