Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I java program for part 2 Creating a program for an online store to receive orders from customers through the Internet. Following are the requirements:

I java program for part 2

image text in transcribedimage text in transcribedimage text in transcribed

Creating a program for an online store to receive orders from customers through the Internet. Following are the requirements: 1. Order Class: 1.1. Create variables to store the order information as follows: Order numbers (integer) Product Name (string) Price (double) 1.2. Write all necessary setters and getters. 1.3. Write the constructor for the class 1.4. Create a method to print the order information. Below is a sample output: [Order No.: 223344 - Product Name: Laptop - Price: 120.000 KWD] 1.5. Code a method to return the discount for the product. Following is a formula for the discount: Discounted Price = Price 0.25 Creating a program for an online store to receive orders from customers through the Internet. Following are the requirements: 1. Order Class: 1.1. Create variables to store the order information as follows: Order numbers (integer) Product Name (string) Price (double) 1.2. Write all necessary setters and getters. 1.3. Write the constructor for the class 1.4. Create a method to print the order information. Below is a sample output: [Order No.: 223344 - Product Name: Laptop - Price: 120.000 KWD] 1.5. Code a method to return the discount for the product. Following is a formula for the discount: Discounted Price = Price 0.25 2. Main Class: 2.1. Use the scanner class to get new order information from the users. 2.2. Create a new order object. 2.3. Print the order information using the method in (1.4). 2.4. Print the order information after discount using the method in (1.5)

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

How have social technologies changed e-commerce?

Answered: 1 week ago

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago