Menu

[Solved] One Thing Programs Used Calculating Total Costs Based List Individual Items Assignment Job Q37264045

One thing that programs have been used for is calculating total costs based on a list of individual items. For this assignmen
matlabOne 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), We encourage you to use this to create a budget for something you’d like to build or create, but you may select anything you’d like other than the example below. Your program should accept inputs as applicable (such as the quantity, unit cost, weight, etc.) for at least five types of items (five line items on the budget), 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 wel. 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 justihication to explain your program; please use the template provided on Canwas 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. 1. 10%0 Describe the purpose of your program in one paragraph 2. Write a program that completes the challenge described above. The program needs to have, at a minimum, the following parts: into your script 5% set the budget For ful credit. you should pick a reasonable number and explain your reasoning. It may be either user-input or hard . [10%) User-input data for relevant information about each of the types items that you plan on accounting for Bie. description, quantity, cost per quantity, weight, cost per weight, etc. as is appropriate for your particular program). For full credit, make sure the input prompts are descriptive enough that a user unfamililar with your code knows what to enter (such as units, etcJ. Your sample nan should inclade reasonable values for each of these items. Your program should function for any input. -t10%! You are to develop at least one user-defined function of your own and Call it from your main program. (100%] Use at least one for loop in your code (8) Using fprint, create output to the command window to provide an output summary table, including the user-input values and total cost of each item input. (10] Make sure to include units and other relevant information, as applicable, so the person using your program understands what they are seeing in the output. 12%) One of the things that is important when working with programming is exploring ca column in your output table that includes a text (string) description of the item summarized on that line. Please see below for a general example of how this might look. If you choose to not pursue credit for this part of the assignment, please have the user input ID numbers for each of the items instead of text. Please include a brief 1-2 template file. Also, copy and paste the code from your main script file and your user-defined function into your PDF in the appropriate of the program on your own. Using documentation for fprintf or online resources, include a e description for each item above describing how and justifying why you incorporated the items above into your code in the appropriate location under the 3. (15%1 Describe the assumptions and limitations of your program. This should include, at a minimum, realistic assumptions based on your own research such as the overall budget used in your sample run, and prices of individual items. It should list any limitations you can think of about what the program can be used for 4, [10 Descrbe at least one ethical 5. [IONİ Following that should be taken into account. s and ieneral functionality of the code wil make up 10% of this assignment grade Please follow al instruct ons closely, including the fle na e tions listed in the ng co deliverable section below. If you change filenapes before submission, make sure that your code stil works Example Case and Sample Run of Program (Yours should be a different case, and it is up to you how you format your outpute It’s the beginning of your second semester and you’re deciding what items you need to purchase to bring back to your dorm room. You’ve decided to develop a program to keep track of the costs so that you don’t spend too much money Pleese enter your total budget:10 Plesse enter the snit cost for eech stem: (300 160 4.501 Pleas, enter th. ‘u_ 0, each 1tee [1415] The tetal cost of 5927.5 is less than your buiget of $100.09 Show transcribed image text 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), We encourage you to use this to create a budget for something you’d like to build or create, but you may select anything you’d like other than the example below. Your program should accept inputs as applicable (such as the quantity, unit cost, weight, etc.) for at least five types of items (five line items on the budget), 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 wel. 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 justihication to explain your program; please use the template provided on Canwas 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. 1. 10%0 Describe the purpose of your program in one paragraph 2. Write a program that completes the challenge described above. The program needs to have, at a minimum, the following parts: into your script 5% set the budget For ful credit. you should pick a reasonable number and explain your reasoning. It may be either user-input or hard . [10%) User-input data for relevant information about each of the types items that you plan on accounting for Bie. description, quantity, cost per quantity, weight, cost per weight, etc. as is appropriate for your particular program). For full credit, make sure the input prompts are descriptive enough that a user unfamililar with your code knows what to enter (such as units, etcJ. Your sample nan should inclade reasonable values for each of these items. Your program should function for any input. -t10%! You are to develop at least one user-defined function of your own and Call it from your main program. (100%] Use at least one for loop in your code (8) Using fprint, create output to the command window to provide an output summary table, including the user-input values and total cost of each item input. (10] Make sure to include units and other relevant information, as applicable, so the person using your program understands what they are seeing in the output. 12%) One of the things that is important when working with programming is exploring ca column in your output table that includes a text (string) description of the item summarized on that line. Please see below for a general example of how this might look. If you choose to not pursue credit for this part of the assignment, please have the user input ID numbers for each of the items instead of text. Please include a brief 1-2 template file. Also, copy and paste the code from your main script file and your user-defined function into your PDF in the appropriate of the program on your own. Using documentation for fprintf or online resources, include a e description for each item above describing how and justifying why you incorporated the items above into your code in the appropriate location under the 3. (15%1 Describe the assumptions and limitations of your program. This should include, at a minimum, realistic assumptions based on your own research such as the overall budget used in your sample run, and prices of individual items. It should list any limitations you can think of about what the program can be used for 4, [10 Descrbe at least one ethical 5. [IONİ Following that should be taken into account. s and ieneral functionality of the code wil make up 10% of this assignment grade Please follow al instruct ons closely, including the fle na e tions listed in the ng co deliverable section below. If you change filenapes before submission, make sure that your code stil works Example Case and Sample Run of Program (Yours should be a different case, and it is up to you how you format your outpute It’s the beginning of your second semester and you’re deciding what items you need to purchase to bring back to your dorm room. You’ve decided to develop a program to keep track of the costs so that you don’t spend too much money Pleese enter your total budget:10 Plesse enter the snit cost for eech stem: (300 160 4.501 Pleas, enter th. ‘u_ 0, each 1tee [1415] The tetal cost of 5927.5 is less than your buiget of $100.09

Expert Answer


Answer to One thing that programs have been used for is calculating total costs based on a list of individual items. For this assi… . . .

OR


Leave a Reply

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