Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I need a Java program for this question with the respective classes. Description Create an application for a party supply store based in Niagara

Hi, I need a Java program for this question with the respective classes.

image text in transcribed

Description Create an application for a party supply store based in Niagara Falls. The owner receives orders from both Canadian and USA clients. - Canadian clients use metric system for their orders (meters, kilos, liters, kilometers) while USA clients use imperial system (feet, pounds, gallons, miles). - Canadian clients pay in CAD dollars and USA clients use USD The store is based in Canada and has the following initial inventory: - Ribbons - yellow, red, blue, purple, green, 20m of each, 2CAD/ meter - Candy - lemon, strawberry, raspberry, 10kg of each, 5 CAD/kilogram - Juice - orange, apple, grape, mango, 15I of each, 3CAD/ liter There is a delivery charge for every order - distance to destination in km (every km is $1 extra) Create a class Store that would keep inventory and process orders. It will use static methods of a utility class named Converter for conversion between metric and imperial systems as well as currency conversion. The application should accept orders from clients via standard input one by one. For each order the following information is required: - Client's name - Country (USA or Canada) - Color of ribbon and length - Type of candy and weight - Type of juice and volume - Distance for delivery Create a class Order for recording this information. For every order pass an object of class Order to class Store for processing. The store should update its inventory after every order and present the client with the final bill in appropriate currency (including delivery charge). In case of insufficient stock for any item in the order the client will be sold the remaining stock and notified. For example, the client orders 5lbs of lemon candy, however there are only 0.9kg of lemon candy left in the store. The client will be billed for 0.9kg and notified "We have only 2lbs of lemon candy left for you order

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

How does or how might the key public affect your organization?

Answered: 1 week ago