Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Kindly read and follow the intructions before starting or solving the work. Project Description:You work is to design and implement an application using Java, to
Kindly read and follow the intructions before starting or solving the work.
Project Description:You work is to design and implement an application using Java, to be used to calculate the shipping cost of the products from China to Germany in regular bases, You have several products to be shipped: Laptop which has a box size: xx cm and weight of kg Mouse which has a box size: xx cm and weight of g Desktop which has a box size: xx cm and weight of kg LCD screens which has a box size xx cm and weight ofkgYou have at the same time different shipping options: Small Container with m height, m wide, and m length Big Container with m height, m wide, and m length.Where: The shipping cost for big container is Euro whatever the shipment weight isThe shipping cost for small container Euro for kg or less, and Euro for weight more than kgWrite a program that calculate the best shipping methods according to your regular shipping products Whatever number of the products that you haveThe program must read from user the order information for example: Lap, Mouse, Desktop, LCD screen, then calculate the best shipping methods according to less price, for example big container, or big containers, or big container and small container, According to maximum volume of the shipment and the total shipment weightPS: the shipment will have to be fit exactly to the containers Solution Steps:Please follows the following steps during the solution:A In Package items create a class Item that has:Constructors.Getter and setters.Calculate Volume Method.Print item info.B In the containers package create Container method that hasConstructorsGetter and Setters.Calculate Volume.Print container info.C In the methods package create method Calculation that used to perform all the needed calculations, which has at least the following methods:The totalVolume method,The totalWeight method, The bestShipping method,The hipping Price method,The additems method,The addOrder method,The printItem method to print items information's,The printOrder method to show order information's and price,D Create Test main static methods toAdd products detailsRead the order.Print the results The Solution conditionThe solution must has the following teaches Not following the following condition you will have penalties of each points: Base on OOP, no static methods are allowed, except of Lambda Function if needed. points penalty All variables must be private, point penalty Uses inheritance, and abstract in the solution points penalty Uses Array or list to save the shape of the items, item object points penalty Uses Array or list to save the order information. Numbers of items points penalty Not following the package structures Please uses the correct package and class names as shown above. Points penalty UTF character coding point penaltyPlease save Java program that: Create a project called YourNameHW, please uses your first name and last name Write your name in the code as comment Report The SolutionPlease write a Java program that contained the following information you include in your reports the following points: You can add any other methods, classes that you see necessary to show your work for example nice printing, entering data, Write comments to explain your program in correct ways You can uses lists or arrayList.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started