Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment H(40 points) -Write a C++ program with a name of YourName-H to turn that will execute and meets these requirements. This program is to

image text in transcribed
Assignment H(40 points) -Write a C++ program with a name of YourName-H to turn that will execute and meets these requirements. This program is to test your understand of simple if/Else If statements. So the conversation with the program will look like this Welcome to the Cunningham Candy Factory I am yournamehere your accountant What is the candy name ? How many pounds of U what was the selling price per pound for-_UIA2UI-C UI-A I-A did we sell this month? UI-B Thanks UL-A is: TE ( one message appears from the list) A. (3) The first line will allow the user to enter something like chocolate or gummyBears or some single word that describes this candy. Each place you see UI-A show the candy name that was entered on the first line B. (3) the second line will allow the user to enter the number of pounds of that candy that was sold to our customers, numbers like 500 or 750.5 or 2000 are values that might be entered for the number of pounds of candy C. (5) the third number is the selling price for this candy, numbers like 99 or 2.99 or D. (4) You will then calculate the total sales by multiplying the pounds by the price per E. (15) the last line will be a message that your program will create. Only one of the 23.67 might be entered here as the price per pound of the candy pound (item from B times item from C) following messages can be displayed. The tests will be made in the order they are shown here. Each candy will only display one of these messages 1. If the total sales is over $800 then the message is "has good profit margin 2. if the total sales is under S100 the message is we need to sell more of this 3. if the pounds are over 200 then the message is a is a high volume seller 4. if the pounds are under 50 then the message is "does not sell well - make less any other combination of items the message should be "keep on selling this

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 And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

How can you create you-attitude within sentences?

Answered: 1 week ago