We want to conduct a breakeven analysis for a wooden basebal

We want to 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 produce either maple or bamboo baseball bats. To help the manufacturer look at the different scenarios, write a program that asks the user of the program to input the following variables IN THIS 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: Producing ## bats a week for ## weeks in a year will generate: Maple bat revenue: $####.## Bamboo bat revenue; $####.## Total number of bats produced: #.###e+## 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): 16 Type the selling price of a bamboo bat (in dollars): 24 Type total number of bats manufacturer can produce per week: 50 Type number of weeks manufacturer plans to run production: 50 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

Code:

m_bat = input(\'Type selling price of Maple Bat(in dollars):\');
b_bat = input(\'Type selling price of Bamboo Bat(in dollars):\');
per_week = input(\'Type the number of bats manufacturer can produce per week:\');
weeks = input(\'Type number of weeks manufacturer plans to run production:\');
num_of_objects = weeks*per_week;
m_revenue = num_of_objects*m_bat;
b_revenue = num_of_objects*b_bat;
revenue = m_revenue + b_revenue;
fprintf(\'Producing %d bats a week for %d weeks will generate:\ \',m_bat+b_bat,per_week);
fprintf(\'Maple bat revenue: $%d\ \',m_revenue);
fprintf(\'Bamboo bat revenue: $%d\ \',b_revenue);
fprintf(\'Total number of bats produced: %d\ \',num_of_objects);

Output:

Type selling price of Maple Bat(in dollars):16
Type selling price of Bamboo Bat(in dollars):24
Type the number of bats manufacturer can produce per week:50
Type number of weeks manufacturer plans to run production:50
Producing 40 bats a week for 50 weeks will generate:
Maple bat revenue: $40000
Bamboo bat revenue: $60000
Total number of bats produced: 2500

 We want to conduct a breakeven analysis for a wooden baseball bat manufacturer who Is interested in diversifying their product line. As a reminder breakeven an

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site