Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language: Java The order processing system, each order must have transaction id(long), date time(calender). 2 types of other in-store order and online order. Each store

Language: Java

The order processing system, each order must have transaction id(long), date time(calender). 2 types of other in-store order and online order. Each store order also keeps: register id, which register was used to process the transaction & store location.

Online order has a different set of data requirement: shipping/biling address, credit card info(number, expire mont, expire year)

Each order has one or more order line (Item description, quantity, unit price)

to support the receipt generator an order must implements the following interface:

public interface ReceiptGenerator {

public double receiptTotalAmount();

public String recieptDetails();

}

receiptTotalAmount: should calculate the total amount for the order and recieptDetails: should produce a string from of the entire order details(all order lie for that order, store ifo, shipping address if its an online purchase

OrderProcessing application class should create one in store order and one online.

Each order should have atleast 5 order line, then should make use of the ReceiptGeneraor interface print the receiptTotalAmoung and receiptDetails.

All class should allow initialization of objects via constructor paramenter and member fields should have the necessary accessor and mutator.

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

How to Convert an LP to Standard Form

Answered: 1 week ago

Question

Does it avoid using personal pronouns (such as I and me)?

Answered: 1 week ago

Question

Does it clearly identify what you have done and accomplished?

Answered: 1 week ago