Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions