Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Description: Read Carefully Apple has come out with its latest innovation.They have developed the iGlass, a new internet interface device that does everything the

Problem Description: Read Carefully

Apple has come out with its latest innovation.They have developed the iGlass, a new internet interface device that does everything the Ipad, Iphone and Mac computer can do, but all controlled by your eye movement. This device uses retina display for logging in and security. Siri will control the apps you wish to interface with and your eye movement will mimic the mouse movements.A simple blink will act as a mouse press. These IGlasses will also replace prescription glasses because they are able to identify each eye's weaknesses and apply appropriate magnification. Apple has received a large preorder of these new devices and hopes to ship them within a week or two. There is a problem however, that has to do with the shipping of these glasses. Because of their expense, a safety box with foam inserts is required to hold a limited number of glasses. An example might be: a safety box could hold just 18 glasses. Walmart might want to order 2750 glasses initially. Assuming that all safety boxes contain the same amount, it would take 153 boxes to ship all the IGlasses.

Your job is to write a java program that will calculate the minimum number of safety boxes needed to ship all the glasses in a single order. You will also state how many extra glasses could have been shipped if all of the boxes were full. Given the possibility that you may not have enough boxes, you will have to state how many IGlasses did not get shipped. Your program should be flexible enough to work for any order size and capacity of the safety boxes. You will also state the price of the total order based on a quote given to the company earlier (you will make up a price for testing purposes). You will display the total price of the order, and after all calculations, provide for a credit in the event that the entire order is not completed.

Specifications:

Write a Java program called iGlass.java that will do all of the following:

  1. Display a title
  2. Ask the user to enter the following values:
    1. The name of the company wishing to sell the iGlasses:(Walmart, Best Buy. Etc.)
    2. Ask user to state the price per IGlass that was quoted to the company.
    3. The number of IGlasses they wish to order.
    4. The maximum number of IGlasses, which can be shipped in a single safety box.
    5. The actual number of safety boxes available

  1. Calculate and display the following results:
  2. The total price of the order. Format this to dollars and cents with comma separators. Ex: String.format("$%,.2f",totalPrice)
  3. The minimum number of safety boxes required to ship all of the IGlasses.
  4. The number of IGlasses that could shipped if the available safety boxes were filled (but not beyond the number of IGlasses ordered) as well as the percentage this represents of all the IGlasses that were ordered.
  5. The number of IGlasses, which were not shipped as well as the percentage that this represents of the total order.
  6. The credit that is due if there is an order shortfall. Apply the credit to the bill and state the final bill value: Make sure you apply appropriate formatting.
  7. If all the IGlasses, were shipped, state how many more could have been shipped in the available number of safety boxes, if they were all filled to capacity.

Sample Output and Calculations:

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

Accounting Information Systems

Authors: Marshall B. Romney, Paul J. Steinbart

13th edition

133428532, 978-0133428537

More Books

Students also viewed these Algorithms questions