Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB. One thing that programs have been used for is calculating total costs based on a list of individual items. For this assignment, your job

MATLAB. One thing that programs have been used for is calculating total costs based on a list of individual items. For this assignment, your job is to think of something original that would be useful to calculate a total cost for (see example at the end of this document). Your program should accept inputs for at least five types of items such as the quantity, unit cost, weight, etc. as applicable, output a summary table showing the input values and total line item cost for each type of item, and then calculate/output whether this total cost exceeds a maximum amount that you have set (you get to research and pick this value as well).

As part of this program, you will be required to create at least one user-defined function, write a for loop, and use fprintf to output the summary table. You will also be asked to provide the reasoning and justification to explain your program; please use the template provided on Canvas to record your responses to the following steps. Partial credit will be given, so make sure you attempt to complete each part below even if you get stuck. See the following page for a detailed breakdown of requirements. Percentages in brackets represent the grading breakdown.

Sample example:

image text in transcribed

does not necessarily have to be exact solution as the sample. that is just an example of what the program should do

Please enter your total budget: 1000 Please enter the item description for each item: ["Fridge" "Books" "Food Items"] Please enter the unit cost for each item: 300 140 4.50] Please enter the number of each item: [1 4 15] Item ID: Unit Cost: Quantity: Total Cost: 300.00 560.00 67.50 ridg 300.00 1 Books Food Items 140.00 4.50 15 The total cost of $927.50 is less than your budget of $1000.00

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

Step: 3

blur-text-image

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions