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
An organization has committed to matching pledge amounts based on the donor type and pledge amount. Donor types include I (for Individual), B (for Business organization), and G (for Grant funds). The matching percentage is shown below:
Donor type
Pledge Amount
Matching %
I
$500 or more
30%
I
$300-$499
40%
I
$100-$299
50%
B
$1000 or more
10%
B
$500-$999
20%
B
$100-$499
40%
G
$100 0r more
10%
Create a PL/SQL anonymous block to accomplish the task. Input values for the block are the donor type code and the pledge amount.
Innis 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…
Assignments
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…
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
- What is the average IT budget and what percentage of the budget is allocated to cybersecurity? See the above example for how to estimate the budget numbers.arrow_forwardPlease do it in excel A company would like to invest on a project. The rate the company uses to justify their investments, i.e. the MARR is 25% per year (compounded yearly). Their estimations about the projects are as follows: Initial Cost: ($300,000)The Study Period: 15 yearsSalvage (Market) Value of the Project: 20% of the initial cost Operating costs in the first year are estimated to be ($7,500) and these operating costs are estimated to increase by 5% per year. Construct cash flow table and determine the minimum amount of annual revenue ($ per year?) that makes this investment an attractive option for the company? (i.e. what is Equivalent UNIFORM (Annual) Cost, EU(A)C?)arrow_forwardQuestion One (1) You participated in an evaluation of proposals for consulting services. At the end of the Technical Evaluation which required a minimum of 70 points, you got the following results: CONSULTANTS KANYIHAMPA MUSANGILA Technical Score 75.17 76.17 Amount USD475,000.00 USD625,000.00 The lowest evaluated financial proposal (Fm) is given the maximum financial score of 100. The formula for determining the financial score is as follows: SF = 100 x Fm /F in which SF is the financial score, Fm is the lowest price and F is the price of the proposal under consideration. The weights given to the Technical and Financial proposals are 80 and 20 respectively. Calculate for each consultant below (a – c): Weighted Technical score. Financial score Combined weighted Technical and weighted Financial score Indicate the best evaluated bidder and their pointsarrow_forward
- You overhear your friend saying that he is repaying a loan at P5,000 every month for the next three years. The interest rate he has been charged is 12% compounded monthly. Figure out the size of the loan, and the amount of interest involvedNote: Include Cashflow diagram if possiblearrow_forwardWhen a customer contacts the company to ask for an estimate, the proprietormakes a note of the customer’s contact details and an outline of the proposedwork. He agrees a date with the customer to view the property in order to givean estimate of the cost for the work. When visiting the property on the agreeddate the proprietor adds more detail to the outline of the proposed work. Within3 days of visiting the property the proprietor produces a fully detailed estimateand sends it to the customer. If the customer agrees the estimate, the proprietorschedules a date to start the job (this is based on the size of the job and otherjobs that have already been scheduled).A few days before the agreed start date of a job, the proprietor contacts thecustomer to confirm the start date, and then orders the required buildingmaterials from suppliers to be delivered on the date the job starts. At theend/completion of the job the proprietor calculates the actual cost of the job toproduce an invoice which…arrow_forwardYou have been hired by ACME Moving and Storage to develop a program to determine customer charges for moving and storage services that they provided. The ACME Moving and Storage employee will provide the following information about the services being proposed: Customer Full Name Number of Rooms: Travel miles between dwellings o No charge for travel up to an including 25 miles o Travel over 25 miles is $1.00 per mile Storage Months (Optional) o Storage is $100 per month Insurance Options (Optional) o Basic coverage is $5.00 per room o Expanded coverage is $10.00 per room Your goal is to create a program that gathers the customer full name, number of rooms, travel miles, storage months (if desired), and insurance type (if desired). While gathering this information, if the user enters at least one invalid value, the program must display one error message telling the user they made a mistake and that they should re-run the program to try again. The program must then end at this…arrow_forward
- How to make a Crow's Foot ERD for the following: A company has a number of employees. The attributes of EMPLOYEE include Name, Address, and Birth-date. The company also has several projects. The attributes of Project include Project_Code, Description, and Start_date. Each employee may be assigned to one or more projects, or may not be assigned to any project. A project is required to have at least one employee assigned, but may have several employees assigned.arrow_forwardContribution Format or Traditional Format should be utilized to identify relevant expenses when preparing income statements? Give a detailed description of your response. To back up your claim, provide an example that includes two revenue statements, one for absorption and one for variable costs.arrow_forwardStudy the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021) 1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo. The application must allow the user to enter the car details and store them. Your…arrow_forward
- Study the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021) 1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo (see Figure 1). The application must allow the user to enter the car details and…arrow_forwardExplanation In the first example, your initial amount of money is $200, which enable you to invest in the first, second, fourth and fifth project that needs only $200 each. By establishing these four projects apart, the investor will have $200*4 (profit) +$200 (initial basic) = $1000. This amount of money will enable the establishment the 3rd project that needs $500 of investment to gain $200 of profit. Finally, to calculate the overall profit, you have collected $1200, where $200 of them are the initial basic and hence the profit is $1200 - $200 = $1000. In the second example, your initial amount of money is $150, which enable you to invest in the 3rd project only. By doing so, your budget will increases to $200 and hence be able to invest in the 1st project to again increase your budget to $290. However, this is not enough to invest in the 3rd project. Finally, you collected $290, where $150 of them are the initial basic and hence the profit is $290 - $150 = $140. """ I want…arrow_forwardYou are the director of a summer camp who wants to create a program to register campers and counselors. The information you need from campers include: name age gender swim level (beginner, intermediate, or advanced) special diet (boolean) length of stay (one-week or two-week ) sleepover or day camper two daily activities (from an activity list below) The information you need from counselors include: name age gender activity area (from the same activity list below) Activity List each camper must choose two activities from this list one of the activities must be swimming, unless they are an advanced swimmer (swim-level) swimming boating tennis baseball basketball create a Camper class and a Counselor class create a camper.h file and a counselor.h file declare private member variables for each item of information needed from campers and counselors declare public member functions declare two constructors for each class one constructor that accepts values for each…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 ColeNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageA Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LSystems Analysis and Design (Shelly Cashman Serie...Computer ScienceISBN:9781305494602Author:Scott Tilley, Harry J. RosenblattPublisher:Cengage Learning
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Systems Analysis and Design (Shelly Cashman Serie...
Computer Science
ISBN:9781305494602
Author:Scott Tilley, Harry J. Rosenblatt
Publisher:Cengage Learning