create a package called com.myshopping
manage the different class in the same package
like amazon.java
flipkart.java
myntra.java
ItemList.java
customer .java
O/P
=======
Welcome to MyShopping Apps
============================
Choose the Service Any one
1.Amazon
2.Flipkart
3.Myntra
1
select categorys
1.Mens Item
2.Womens Item
3.Kids
4.Electronics
4
Item Price
==================================
A.washing Machine 34000.00
B.TV 23000
C.MIcrowave 14000
A
Dear Customer you have order for a washing machine and total bill
amount is: 34000.00
thank you for shoping with amazon.
Do you want to continue or exit (Yes/No)
Yes
Error must be produce for wrong option
in java language
//importing the package
import java.util.*;
class Myshopping
{public void amazon()
{
//write the logic here
//like this i have written you can apply switch case statements as mentioned below
System.out.println("select categorys
1.Mens Item
2.Womens Item
3.Kids
4.Electronics");
}
public void flipkart()
{
//write the logic here
}
public void myntra()
{
//write the logic here
}
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
Myshopping obj=new Myshopping();
System.out.println("=======
Welcome to MyShopping Apps
============================
Choose the Service Any one
1.Amazon
2.Flipkart
3.Myntra ");
int n=sc.nextInt();
Switch(n){
case 1:
obj.amazon();
break;
case 2:
obj.flipkart();
break;
case 3:
obj.myntra();
break;
}
while(c)
{
System.out.println("Do you want to continue or exit (Yes/No)");
String d=sc.nextLine();
if(d="Yes")
{
c=true;
}
else
{
c=false;
}
}
}
}
create a package called com.myshopping manage the different class in the same package like amazon.java flipkart.java...
In a new file located in the same package as the class Main, create a public Java class to represent a photograph that consists of a linear (not 2D) array of pixels. Each pixel is stored as an integer. The photograph class must have: (a) Two private fields to represent the information stored about the photograph. These are the array of integers and the date the photograph was taken (stored as a String). The values in the array must be...
Overview JAVA LANGUAGE PROBLEM: The owner of a restaurant wants a program to manage online orders that come in. This program will require multiple classes. Summary class, customer class, order class and the driver class. Summary class This class will keep track of the cost of the order and output a summary, which includes the total for the order. The methods in this class are static. There are no instance variables, and instead uses an Order object that is passed...
-What is this case about? The Zappos Case Study introduces the
customer benefit package (CBP) framework and the lesson that each
good and service in the CBP has a process that creates it and
delivers it to customers.
-What are you asked to do? The case asks you to draw the CBP and
identify one primary support, and general management process. You
must also think about manufacturing/production encounters and
service management skills. Finally, build a table like table below
to...
Risk management in Information Security today Everyday information security professionals are bombarded with marketing messages around risk and threat management, fostering an environment in which objectives seem clear: manage risk, manage threat, stop attacks, identify attackers. These objectives aren't wrong, but they are fundamentally misleading.In this session we'll examine the state of the information security industry in order to understand how the current climate fails to address the true needs of the business. We'll use those lessons as a foundation...