Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MATLAB expert needed! We want lo conduct a breakeven analysis for a wooden baseb

ID: 3691014 • Letter: M

Question

MATLAB expert needed!

We want lo conduct a breakeven analysis for a wooden baseball bat manufacturer who is interested in diversifying their product line. As a reminder breakeven analysis was discussed previously in the Graphing Solutions chapter, specifically in Example 11-9. Currently, the manufacturer produces white ash bats: they are interested in purchasing a second machine line to producc either maple or bamboo baseball bats. To help the manufacturer look al Ihe different scenarios* write a program thai asks Ihe user of the program to input the following variables IN THIS SPECIFIC ORDER: Selling price ol'a maple bat (in dollars) Selling price of a bamboo bat (in dollars) The total number of bats the manufacturer can producc per week; this value is the same for either type of bat The number of weeks the manufacturer plans lo run their bat production machinery in a year Tlie manufacturing process can only make a single type of bat each week, and will producc the same number of bats in a week regardless of the material used. Revenue is determined as the selling price of an object times the number of objects. Your program should display the total revenue generated for the scenario, as shown below- Producing 8 bats a week for 88 weeks in a year will generate: Maple bat revenue: $####.## Bamboo bat revenue: $8888.Kit Total number of bats produced:

Explanation / Answer

Program:

maple=input("Type the selling price of the maple bat: (In dollars): ")
bamboo=input("Type the selling price of the bamboo bat: (In dollars): ")
bat_week=input("Type the the total number of bats manufacturer can produce per week: ")
weeks=input("Type number of week manufacturer plans to run the production: ")
fprintf(" Producing %d a week for %d weeks will generete:",bat_week,weeks)
fprintf(" Maple bat revinue: %d",maple * bat_week * weeks)
fprintf(" Bamboo bat revinue: %d",bamboo * bat_week * weeks)