We want to conduct a breakeven analysis for a wooden basebal

We want to conduct a breakeven analysis for a wooden baseball bat manufacture who is interested in diversifying their product line. As a remember 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 produce either maple or bamboo baseball bats. To input the following variables in specific order: Selling price of a maple bat (in dollars) Selling price of a bamboo bat (in dollars) The total number of bats the manufacturer can produce per week; this value is the same for either type of bat. The number of weeks the manufacturer plans to run their bat production machinery in a year The manufacturing process can only make a single type of bat each week, and will produce 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: Maple bat revenue: $####.## Bamboo bat revenue: $####.## Total number of bats produced: #. The revenue should be displayed with two decimal places and the total number of bats produced should be displayed in exponential notation with three decimal places. In addition, each revenue line should display with a single tab at the front of each sentence, as shown above. The character in the output displayed above will be actual numbers in the program you create. Sample Input/Output. The highlighted values are entered by the user: Type the selling price of a maple bat (in dollars): Type the selling price of a bamboo bat (in dollars) Type total number of bats manufacturer can produce per week. type number of weeks manufacturer planes to run production: Producing 50 bats a week for 50 weeks will generate: Maple bat revenue: $40000.00 Bamboo bat revenue: $60000.00 Total number of bats produced: 2.500e + 03

Solution

prompt = \'Type the selling price of a maple bat (in dollars): \';
m = input(prompt)
prompt = \'Type the selling price of a bamboo bat (in dollars): \';
b = input(prompt)
prompt = \'Type total number of bats manufacturer can produce per week: \';
n = input(prompt)
prompt = \'Type number of weeks manufacturer plans to run production: \';
w = input(prompt)

fprintf(\'Producing %i bats a week for %i weeks will generate:\ \', n, w );
mr = m.*n.*w ;
br = b.*n.*w ;
tb = n.*w ;
fprintf(\'Maple bat revenue: $%.2f \ \',mr ) ;
fprintf(\'Bamboo bat revenue: $%.2f\ \',br ) ;
fprintf(\'Total number of bats produced: %.3e\ \', tb );

 We want to conduct a breakeven analysis for a wooden baseball bat manufacture who is interested in diversifying their product line. As a remember breakeven ana

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site