Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago