Question: 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



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
Get step-by-step solutions from verified subject matter experts
