Question: Coral language: https://coral-sim.zybooks.com/ code=Put%20%22Hello%20World!%22%20to%20output&input=%20 A business owner has been watching Shark Tank and wants to create a program that calculates the net profit of his

Coral language: https://coral-sim.zybooks.com/ code=Put%20%22Hello%20World!%22%20to%20output&input=%20

Coral language: https://coral-sim.zybooks.com/ code=Put%20%22Hello%20World!%22%20to%20output&input=%20 A business owner has been watching Shark Tankand wants to create a program that calculates the net profit ofhis business of selling world-class pens. Each of the amounts can changebased on distribution and licensing deals so the program must work for

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 8101520311512124 2. 11512124$293

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!