Question: java_netbeans A store is purchasing and packaging pencils. Each week, it purchases a big number of pencils, packages them in smaller packages, each containing 15

java_netbeans A store is purchasing and packaging pencils. Each week, it purchases a big number of pencils, packages them in smaller packages, each containing 15 pencils. Then it sells the packages to customers. 
Write a program to insert and compute the profit of the store given the number of pencils purchased at the beginning of the week, the price of each pencil, the selling price of each package assuming that all packages have been sold.
 
A sample output is given below: 

How many pencils did you buy? 570 What is the price of each pencil? 0.5

The Pencils total cost is: 285 AED ********************************************************** How many pencils do you want to put inside each package (1- 15)? 14 You can make 40 package and 10 pencils 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!