C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN: 9781337102087
Author: D. S. Malik
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 3, Problem 8PE
Program Plan Intro
Implementation of a
The following C++ program accepts input about cosmetics business operations from the user, computes the mark up price, and displays the result.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include merchandise cost, store rent, employees’ salary, and electricity cost for the store. She would like to know how much the merchandise should be marked up so that after paying all the expenses at the end of the year she gets approximately 10% net profit on the merchandise cost. Note that after marking up the price of an item she would like to put the item on 15% sale. Write a program using c++ compiler that prompts Linda to enter the total cost of the merchandise, the salary of the employees (including her own salary), the yearly rent, and the estimated electricity cost. The program then outputs how much the merchandise should be marked up so that Linda gets the desired profit.
Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include merchandise cost, store rent, employees’ salary, and electricity cost for the store. She would like to know how much the merchandise should be marked up so that after paying all the expenses at the end of the year she gets approximately 10% net profit on the merchandise cost. Note that after marking up the price of an item she would like to put the item on 15% sale. Write a program using c++ compiler that prompts Linda to enter the total cost of the merchandise, the salary of the employees (including her own salary), the yearly rent, and the estimated electricity cost. The program then outputs how much the merchandise should be marked up so that Linda gets the desired profit.
need constructor function,destructor function, copy construction , mutators ,accesors function , getprofit and gettotalcost
Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include merchandise cost, store rent, employees’ salary, and electricity cost for the store. She would like to know how much the merchandise should be marked up so that after paying all the expenses at the end of the year she gets approximately 10% net profit on the merchandise cost. Note that after marking up the price of an item she would like to put the item on 15% sale. Write a program that prompts Linda to enter the total cost of the merchandise, the salary of the employees (including her own salary), the yearly rent, and the estimated electricity cost.The program then outputs how much the merchandise should be marked up so that Linda gets the desired profit.
Need the header filewith the name LindaStore.
A:Define the following attributes: float merchandiseCost, float storeRent, float employeesSalary, float electricityCost.
B:…
Chapter 3 Solutions
C++ Programming: From Problem Analysis to Program Design
Ch. 3 - Mark the following statements as true or false. An...Ch. 3 - Prob. 7SACh. 3 - What does function sqrt do? Which header file must...Ch. 3 - Prob. 9SACh. 3 - Prob. 10SACh. 3 - 11. What is the purpose of the manipulator setw?...Ch. 3 - 12. What is the output of the following program?...Ch. 3 - Prob. 13SACh. 3 - Suppose that name is variable of type string. What...Ch. 3 - 16. Write a C++ statement that uses the...
Ch. 3 - 19. The following program is supposed to read the...Ch. 3 - Prob. 20SACh. 3 - Prob. 21SACh. 3 - 22. Suppose that infile is an ifstream variable...Ch. 3 - 24. Suppose that infile is an 18stream variable...Ch. 3 - 1. Consider the following incomplete C++ program:...Ch. 3 - 2. Consider the following program in which the...Ch. 3 - Write a program that prompts the user to enter the...Ch. 3 - 4. During each summer, John and Jessica grow...Ch. 3 - 5. Three employees in a company are up for a...Ch. 3 - 6. Write a program that accepts as input the mass,...Ch. 3 - Interest on a credit card's unpaid balance is...Ch. 3 - Prob. 8PECh. 3 - Dairy Farm decided to ship milk in containers in...Ch. 3 - 10. Paula and Danny want to plant evergreen trees...
Knowledge Booster
Similar questions
- The following table shows the rate of commission that will be paid to the salesman according to the total sales performance of the month:Total Sales Performance (RM) CommissionLess than 10000 No commission10000 – 20000 1% of the total sales20001 – 30000 2% of the total sales30001 – 40000 3% of the total salesMore than 40000 4% of the total sales Lastly, display the salesmanName, totalSalesPerformance,totalCommission and totalSalary.arrow_forwardSummary Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include merchandise cost, store rent, employees’ salary, and electricity cost for the store. She would like to know how much the merchandise should be marked up so that after paying all the expenses at the end of the year she gets approximately 10% net profit on the merchandise cost. Note that after marking up the price of an item she would like to put the item on 15% sale. Instructions Write a program that prompts Linda to enter: The total cost of the merchandise The salary of the employees (including her own salary) The yearly rent The estimated electricity cost. The program then outputs how much the merchandise should be marked up (as a percentage) so that Linda gets the desired profit. Since your program handles currency, make sure to use a data type that can store decimals with a decimal precision of 2. Test case 1: Input:…arrow_forwardUsing excel functions Canada Duck sells a variety of winter coats to individual and retail stores. The companyexpects to retire all its manufacturing equipment in the new year. At that point, CanadaDuck is considering three options:Option 1) It rents its manufacturing equipment at an annual cost of $365,500 per year,paid at the beginning of the year. There are no maintenance costs.Option 2) It rents state-of-the-art manufacturing equipment at an annual cost of $695,000per year, paid mid- year. The company will save $310,000 annually on manufacturingcosts. There are no maintenance costs.Option 3) It purchases new equipment for $2,500,000. The equipment will requiremaintenance of $150,000 per year and is expected to have a life span of 15 years with nosalvage value at the end. Canada Duck uses the straight-line depreciation method.Suppose the discount rate is 3.7%, the company’s tax rate is 25%, and all maintenancecosts are paid at year's end, which is a better option for Canada Duck?arrow_forward
- QUESTION 1 The % Daily Value (or %DV) shows how much of a nutrient is in one serving of a packaged food. The %DVs are based on the values for key nutrients, which are the amounts (in grams) of nutrients recommended per day for individuals 4 years of age and older. To calculate the %DV of a packaged food, you have to divide the nutrient amount per serving by the daily recommended value and multiply by 100. To know whether you are getting enough amount of a certain nutrient from a packaged food, the following level of categorization applies: • 5% or less of a nutrient per serving is low • More than 5% but less than 20% of a nutrient per serving is moderate 20% or more of a nutrient per serving is high Write a complete C program that reads a list of data (cereal type, carbohydrate in ounce, protein in ounce, fat in ounce) from an input file. Prepare the input file as shown in Figure 1.1 with data for 10 types of cereal. For the first four types of cereal (Cereal A, B, C, D), use the…arrow_forwardInnis Investments manages funds for a number of companies and wealthy clients. The investment strategy is tailored to each client’s needs. For a new client, Innis has been authorized to invest up to $1.2 million in two investment funds: a stock fund and a money market fund. Each unit of the stock fund costs $50 and provides an annual rate of return of 10%; each unit of the money market fund costs $100 and provides an annual rate of return of 4%. The client wants to minimize risk subject to the requirement that the annual income from the investment be at least $60,000. According to Innis’ risk measurement system, each unit invested in the stock fund has a risk index of 8, and each unit invested in the money market fund has a risk index of 3; the higher risk index associated with the stock fund simply indicates that it is the riskier investment. Innis’s client also specified that at least $300,000 be invested in the money market fund. Let S = units purchased in the stock fund…arrow_forwardAssignments Lakeside Boatworks is planning to manufacture three types of molded fiberglass recreational boats -a fishing (bass) boat, a ski boat, and a small speedboat. The estimated selling price and variable cost for each type of boat are summarized in the following table: Boat Variable Cost Selling Price Bass $12,500 $23,000 Ski 8,500 18,000 Speed 13,700 26,000 The company has incurred fixed costs of $2,800,000 to set up its manufacturing operation and begin production. Lakeside has also entered into agreements with several boat dealers in the re- gion to provide a minimum of 70 bass boats, 50 ski boats, and 50 speedboats. Alternatively, the company is unsure of what actual demand will be, so it has decided to limit production to no more than 120 of any one boat. The company wants to determine the number of boats that it must sell to break even while minimizing its total variable cost. 1. Formulate a linear programming model for this problem. 2. Solve the model by using the…arrow_forward
- A company decided to give bonus to employee according to following criteria: Time period of Service Bonus More than 10 years 10% >=6 and <=10 8% Less than 6 years 5% Ask user for their salary and years of service and print the net bonus amount.arrow_forwardrick oversees Make Your Own Music, a business specializing in musical instruments such as guitars, drums, and synthesizers. Commission rates for staff are determined by sales at the store, with the following tiered rates: - 11% for sales under $10,000- 13% for sales between $10,000 and $14,999- 15% for sales between $15,000 and $17,999- 17% for sales between $18,000 and $21,999- 19% for sales of $22,000 or more. Employees have the option to withdraw up to $2,500 monthly from future commissions. Shortfalls in commission repayments must be covered by employees. The monthly pay formula is: pay = (sales * commission rate) - advanced pay. rick seeks a program to automate this process. The algorithm: 1. Obtain the monthly sales figure from the salesperson.2. Retrieve the amount of advanced pay taken by the salesperson.3. Determine the appropriate commission rate based on monthly sales.4. Calculate the salesperson's pay using the provided formula. A negative amount indicates repayment owed to…arrow_forwardComputer Science Rewrite this brief section. Create a table that illustrates the data. INTRODUCTION: The University of Wisconsin–Stout has experienced a series of large budget cuts in recent years. The athletic department has been granted an estimated budget of $250,000 for updates of current facilities. For a new floor installation to be feasible, the total cost must not reach over $250,000. FIGURES: According to Connors Flooring, the total installation cost of a maple sports floor is $81,300 with over 38 years of life expectancy. This is based on a 10,000-square-foot floor. The Maple Floor Manufacturers Association has concluded that wood floors also require regular cleaning, sanding, lines repainted, and floor refinishing approxi- mately every three years. This is a cost of approximately $8,000.00 per three years, equaling $2,666.00 p/year. With a 38 year life expectancy, the total for cleaning, sanding, painting, etc. = 101,308. CONCLUSION: The total cost of the floor is under…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks ColeProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L