Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

7. How might you go about testing these assumptions?

Answered: 1 week ago