Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

In c++ please attaching reference of exercise 5.39 solve 6.10 using c++ ,5.39 is for reference purpose only 0 (Financial application: find the profit-per-item) Use

image text in transcribed

In c++ please

attaching reference of exercise 5.39

image text in transcribed

solve 6.10 using c++ ,5.39 is for reference purpose only

0 (Financial application: find the profit-per-item) Use the scheme in programming Exercise 5.39 to write a function that computes the profit-per-item. The header of the function is: double computeProfitPerItem(double quantity) Write a test program that displays the following table: (Financial application: find the profit-per-item) You have just started a new stationary shop. Your profit-per-item depends on the total quantity of item sold. The scheme shown below is used to determine the total profit: Note that this is a graduated profit. The profit for selling up to 1000 items is $1, for next 4000 items is $2 and beyond that is $5. If the total quantity of item sold is 10000 , the profit is 1000$1+4000$2+5000$5=$34000. Your goal is to make $50,000 a year. Write a program that uses a do-while loop to find out the minimum quantity of item you have to sell in order to make $50,000

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_2

Step: 3

blur-text-image_3

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

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students explore these related Databases questions