Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 4 150 Points You Ship Readings 7-11 In our fourth lab of the semester we will create a Java application that uses JOptionPane) which

image text in transcribed
image text in transcribed
Lab 4 150 Points You Ship Readings 7-11 In our fourth lab of the semester we will create a Java application that uses JOptionPane) which enables a shipping company to enter package information in order to output final shipping costs for a single package. GUl input (use The shipping clerk (our user in this application) can can choose to ship a package by air truck or mail, as well as insure the package or not insure the package. Depending on choices combined with package weight, total cost of shipping will vary. the clerk's The application will also need to handle potential exceptions such as entering a string when an integer is expected, etc. We will use Exercise 7 on pages 531-532 of the textbook as our starting point. Do use the table values for shipping rates and insurance costs in your application. Make sure to get the customer's name as well. This is not discussed in the exercise. You should also add specific Exception handling to your application as you deem appropriate. For example, if the application is expecting a number for the weight and the shipping clerk enters nothing or "heavy you application should be able to recover. However, do not automatically instantiate objects as the exercise directs. Instead allow the shipping clerk (our user) to set the parameters in terms of customer name, package weight shipping method, and whether to add insurance. Use the sel from which superclass or subclass to instantiate your object. de For this lab, you will have three (3) classes. They should be named as such (and are in the class repository) UsePackage.java Your main application class. You determine what logic and exceptions should be included here. Package.java (superclass) This class creates a package object according to the shipping cost table

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions