Question
A business owner has been watching Shark Tank and wants to create a program that calculates the net profit of his business of selling world-class
A business owner has been watching Shark Tank and wants to create a program that calculates the net profit of his business of selling world-class pens. Each of the amounts can change based on distribution and licensing deals so the program must work for any given numbers. The owner buys N boxes for X dollars per box, with Y pens per box. If the number of boxes (N) is greater than 10, half of those boxes will be sold for D dollars and the rest of the pens sold in singles for G dollars. If the number of boxes is less than 10 all pens will be sold in singles for G dollars. Remember the end value is the net profit which is the profit initial cost
This is not an easy problem to understand, take the time to figure out the correct variables, the steps in the problem, and how to start solving each of them The problem statement did not use descriptive variable names (YOU CAN CHANGE THESE TO MAKE IT EASIER TO CODE) You will need to use branching Your program will need intermediate variables (such as a variable for debt) to use in the calculations I.e. there will be other variables besides the input variables
Order of inputs # of boxes, dollars paid per box, # pens per box, sell price per box, sell price per pen. Run your program on two sets of inputs 8 10 15 20 3 11 5 12 12 4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started