Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise By C++ : The main goal of a given store is to buy and package plastic cups. It collects a big number of plastic

image text in transcribedExercise By C++ :

The main goal of a given store is to buy and package plastic cups. It collects a big number of plastic cups, packages them into smaller groups/packages. Then it sells the packages to customers. Write a program to compute the expected total profit of the store. First, your program should read the following from the user: 1. The amount of collected cups by the store, 2. The unit price of each cup, 3. The amount of cups in each group/package, and 4. The selling price of each package. Your program then computes the following: 1. The total cost of buying all the plastic cups. 2. The total number of packages that can be formed by the given amount of cups, and the remaining cups without being packaged. 3. The total selling price of all the packages, 4. The total profit of the store, which will be equal to the difference of the total cost and the total selling price of all packages. A sample output is given below. Note that the shaded values are sample inputs to be entered by the user and the unshaded values has to be computed by the program.

Exercise #3: (12 points) The main goal of a given store is to buy and package plastic cups. It collects a big number of plastic cups, packages them into smaller groups/packages. Then it sells the packages to customers. Write a program to compute the expected total profit of the store. First, your program should read the following from the user: 1. The amount of collected cups by the store, 2. The unit price of each cup, 3. The amount of cups in each group/package, and 4. The selling price of each package. Your program then computes the following: 1. The total cost of buying all the plastic cups. 2. The total number of packages that can be formed by the given amount of cups, and the remaining cups without being packaged. 3. The total selling price of all the packages, 4. The total profit of the store, which will be equal to the difference of the total cost and the total selling price of all packages. A sample output is given below. Note that the shaded values are sample inputs to be entered by the user and the unshaded values has to be computed by the program. How many cups did the store buy? 570 What is unit price of a cup? 0.5 The cups total cost is: 285 AED How many cups do you want to put in each package (1-15)? 14 Given 570 cups, you can make 40 packages and 10 cups will remain. What is the selling price of a package? 15 You will sell all packages for: (15 * 40 ) = 600 AED Profit = 600 - 285 = 315 AED

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions