405023 Java project using Inheritance

Closed

Please visit this link to see what this project requires:

[url removed, login to view]

The purpose of this assignment is to create a Java applet that uses inheritance and overridden methods. The applet will process order information. An order may be shipped or picked up. There is an additional shipping and handling charge if the order is shipped. The project is based on an exercise in the textbook Java Programming by Joyce Farrell.

1. Create an applet that uses three classes. The classes will be named Order, ShippedOrder, and UseOrder.

2. The Order class will have four private instance variables. These variables will be for the customer name (String), the customer number (integer), the order quantity (double) and the unit cost (double). The Order class will have the following instance methods - get/set customer name, get/set customer number, get/set order quantity, get/set unit cost. The Order class will also have a computePrice instance method. This method should return the result of multiplying the order quantity times the unit cost. The computePrice() method cannot have any arguments passed to it.

3. The ShippedOrder class will be a subclass of the Order class. This class will have one new private instance variable. This instance variable will store a shipping and handling charge. Set the shipping and handling charge to a constant $4. The ShippedOrder class will have one new method. This method must be named computePrice and it must override the computePrice method in the Order superclass. The computePrice method in the ShippedOrder class should return the order cost (quantity times unit cost plus the shipping and handling charge).

4. Make sure the user can change the data on the screen and create another order of the same or an order of a different type. No additional components should be displayed under these circumstances.

5. Include the html for the applet tag as a comment in your source code. This html will be graded as part of the assignment.

6. The UseOrder class will be the applet. Use a GridLayout layout manager to position the appropriate components as illustrated in the example below.

The initial user interface with JTextField objects for the customer name, customer number, order quantity, and unit cost.

Figure 1

7. The applet should allow the user to enter data for the customer name, customer number, order quantity, and unit cost as illustrated in the example below.

Applet form with completed user input for the order.

Figure 2

7. The user can then click the "Display Shipped Order" button to create an object of the ShippedOrder class or click the "Display Order" button to create an object of the Order class. After the appropriate object is created, print all the values of the instance variables and the order's total cost. You must use the get methods to retrieve the values from the object and you must use the computePrice method to "retrieve" the order's total cost. The output for a shipped order would look like the example below. Make sure you can also display the same information for a order object (not shipped). The "output information" at the bottom of the window must be in a different foreground color.

Applet form with completed data for the order.

Figure 3

Skills: Java

See more: shippedorder java, order java shippedorder java useorder java, java project inheritance, what is new in java 1.5, what is a variable in programming, what is a string in programming, what is an object in programming, string source code java, string c plus plus, programming inheritance, position project manager, java programming textbook, java programming source code, java programming joyce farrell, java programming classes, java programming assignments, inheritance programming, https applet, exercise programming, exercise java programming, c plus plus string, code java project, code in java programming, assignment method example, applet https

Project ID: #4375497

39 freelancers are bidding on average $79 for this job

dobreiiita

Hi, I am JAVA expert and can surely help you here with this assignment. Thank You

$110 USD in 2 days
(173 Reviews)
6.4
olantran

let me help you.

$70 USD in 0 days
(42 Reviews)
6.2
procoder898

Hi, I am expert at Java and can surely satisfy you. Please check your inbox,

$177 USD in 3 days
(80 Reviews)
6.1
AshwinSen

Hello, Please view PMB. Ashwin

$165 USD in 1 day
(39 Reviews)
5.7
buzzcoder

Let me help you on this, please check your pm.

$147 USD in 3 days
(44 Reviews)
5.5
csanuragjain

hi i can do this contact if interested

$77 USD in 5 days
(22 Reviews)
5.1
nani01029x

Let me help you. Please check your pmb for more details.

$120 USD in 2 days
(35 Reviews)
4.9
wanly3643vw

I have completed the work, and please check the PMB for more details.

$34 USD in 0 days
(36 Reviews)
4.1
manhpham

I am Java expert. Ready to help you

$147 USD in 3 days
(13 Reviews)
4.0
rakib062

Please check private message.

$50 USD in 1 day
(10 Reviews)
3.8
wbslivera

Hello, I'm oracle certified professional java programmer, i can help you.thanks

$60 USD in 2 days
(14 Reviews)
3.8
DanielNikolov

Greetings, I am Java developer with more than 6 yrs of experience in software development, mainly java web development. I can develop and deliver the requested functinality in no more than 4 days. Best regards, D More

$154 USD in 4 days
(7 Reviews)
3.7
DenialWang

much experiences, please contact me should you need my help. thanks/denial

$88 USD in 3 days
(4 Reviews)
3.7
hbxfnzwpf

I am very efficient in java. I have 15 years java programming experience now, and have worked for 5 years. Please let the expert help you.

$135 USD in 4 days
(9 Reviews)
3.7
kmd262

I have more than 6.5 years of experience in Java and J2EE. I can do this for you in the given time frame. Happy to help.

$60 USD in 3 days
(2 Reviews)
2.6
mkemal

please check your pmb

$110 USD in 0 days
(2 Reviews)
2.1
RokKoncina

You provided great specifications so it will be easy to complete the project in no time.

$100 USD in 3 days
(1 Review)
2.1
santosoftvw

I have 6 years work experience in Java swing, Java EE, JSF, Spring, Hibernate, MySQL, Oracle technologies. I am also Oracle certified professional. I can do your job.

$60 USD in 2 days
(4 Reviews)
2.0
WangJinHao

Hi, I am available just now. Could you let me know to start your project. You project will be done 30% in 1hour. Thank you.

$157 USD in 2 days
(1 Review)
1.6
jasqwerty

Native English speaker with extensive technical experience. Degree in Comp Sci and have worked in the industry on lots of Java projects. Can get it done in a day or two max.

$125 USD in 2 days
(1 Review)
1.4