Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA - CONSOLE BASED eBay is a service that allows you to purchase products online. eBay offers two types of purchases: Buy Now and Auction.

JAVA - CONSOLE BASED

eBay is a service that allows you to purchase products online. eBay offers two types of purchases: Buy Now and Auction. Buy Now products have a fixed price. Auctions start at a certain amount and users can bid on the products, increasing their price. All auctions conclude after 5 bids (for simplicity purposes, you can restart the auction once the product is sold). In order to shop on eBay, you need to be registered.

Checkout session should appear as followed

------------------------------------------------------------------------------- Items:

1 x Samsung 4K TV $800.00 Shipping Free

------------------------------------------------------------------------------- Subtotal: $800.00 Tax (8.25%): $66.00 TOTAL: $866.00 -------------------------------------------------------------------------------

As you see, you need to calculate 8.25% tax and add it to the subtotal to calculate total. Moreover, you should calculate a random shipping cost between $0 and $10. 25% of the time, the product should be offered with Free Shipping.

Obviously when a customer wants to be a member, user should click Sign Up (probably this is the main menu). Then the users should fill in their first name, middle initial, last name, e-mail address and phone number. Once a member logs in to the system there will be choices of products displayed. The products are grouped into categories.

These categories are:

Fashion

Electronics

Collectibles & Art

Home & Garden

Sporting Goods

Toys

Music

There should be at least 5 distinct products in each category. The inventory should keep track of quantity of the product. Once a product is chosen from the catalogue, the system automatically assigns the product to the member (if the quantity is not ZERO). If the product that is purchased is the last product in stock, you should enumerate it as UNAVAILABLE so that no other customer can purchase the product. Moreover, the system is able to track the history and once an Admin (another user type) picks See History and types a UserID, purchase history of that user should be shown. If you think about such a system, there should be a proper definition of classes, subclasses, interfaces and most probably there should be some sort of polymorphic behavior.

For data, you can simply use a text file or a database -you should be able to modify the contents even if you pick a text file to use

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

3. How has Starbucks changed since its early days?

Answered: 1 week ago