Question: java netbeans Exercise 1: A store is purchasing and packaging pencils. Each week, it purchases a big number of pencils, packages them in smaller packages,
Exercise 1: A store is purchasing and packaging pencils. Each week, it purchases a big number of pencils, packages them in smaller packages, each containing 12 pencils. Then it sells the packages to customers. Write a program to compute the profit of the store given the number of pencils purchased at the beginning of the week, the price of each pencil, the price of each package assuming that all packages have been sold. A sample output is given below: run: How many pencils did you buy? 150 What is the price of each pencil? 10 How much do you want to price a package? 200 You paid: 1500 The number of packages will be: 12 You will sell all packages for: 2400 If all packages are sold, the profit you will make is: 900 BUILD SUCCESSFUL (total time: 20 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
