Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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:
1- Laptop which has a box size: 605050cm and weight of 6.5kg.
2- Mouse which has a box size: 303020cm and weight of 200g.
3- Desktop which has a box size: 10015050cm and weight of 20kg.
4- LCD screens which has a box size 120x140x 80cm and weight of 2.6kg.
You have at the same time 2 different shipping options:
1- Small Container with 2.59m height, 2.43m wide, and 6.06m length.
2- Big Container with 2.59m height, 1.43m wide, and 12.01m length.Where:
The shipping cost for big container is 1800 Euro whatever the shipment weight is.
The shipping cost for small container 1000 Euro for 500kg or less, and 1200 Euro for weight more than 500kg.
Write a program that calculate the best shipping methods according to your regular shipping products (Whatever number of the products that you have).
The program must read from user the order information for example: 100Lap, 200 Mouse, 150 Desktop, 200 LCD screen, then calculate the best shipping methods according to less price, for example (1 big container, or 2 big containers, or 1 big container and 1 small container, According to maximum volume of the shipment and the total shipment weight).
(PS: the shipment will have to be fit exactly to the containers).
2. 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 has.
Constructors.Getter 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 hippingPrice method,
The addltems method,
The addOrder method,
The printltem method to print items information's,
The printOrder method to show order information's and price,
D. Create Test main static methods to
Add products details
Read the order.
Print the results.
The Solution condition
The solution must has the following teaches (Not following the following condition you will have penalties of each points):
1- Base on OOP, no static methods are allowed, except of Lambda Function if needed. (10 points penalty)
2- All variables must be private, (4 point penalty)
3- Uses inheritance, and abstract in the solution (4 points penalty).4- Uses Array or list to save the shape of the items, (item object)(2 points penalty).
5- Uses Array or list to save the order information. (Numbers of items)(2 points penalty).
6- Not following the package structures (Please uses the correct package and class names as shown above. (2 Points penalty).
7- UTF 8 character coding (1 point penalty).
Please save Java program that:
1- Create a project called YourNameHW, please uses your first name and last name.
2- Write your name in the code as comment.
4. Report The Solution
Please 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.
Notes:
1- This home work is individual each student has to submit her/his solution within the time frame, any failed of submission in the deadline, he will get zero.2- Please save your homework src directory only in compressed file like: YourNameHW.zip
3- Please submit your homework as zip file before 15 June 12:00 PM using the team upload link in MsTeam account, any submission by email later submission will be counted sorry.
4- Nonworking program or fail in submission on time will get zero.
5- Any copy of the home work will cause failing the course, it is individual work so do it along.
6- Please upload you report or the file in the assignment under your name in MsTeam.
7- Please do not send any questions after 17:00, and in holydays, or day off, thank you.
Some notes: my name is yuliia ruda. Please wrute a compleately finished code, with a name, with all data, so that i can just copy it and be able to immediately send it to the professor.
Everything should be ready
Also, we work in the Eclipse, so write it correct with step by step

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

5. Recognize your ability to repair and let go of painful conflict

Answered: 1 week ago