package gestion_du_stock_de_magasin;
import java.util.*;
class management_of_stock {
private int ch;
public void management_of_stock() {
Scanner Entree = new Scanner (System.in);
Entree.useLocale(Locale.FRENCH);
System.out.println("to put up an item push 1 ");
System.out.println("to add an item push 2 ");
System.out.println("to order an item push 3");
System.out.println("to modify an item push 4");
System.out.println("to retrail an item push 5 ");
System.out.println("to sell an item push 6 ");
System.out.println("choose the action to effect");
ch=Entree.nextInt();
System.out.println("You have choice : "+ch);
System.out.println("thank you, we please to receive your attention " );
System.out.println("please answer the next steps");
}
public void perform() {
int action=ch;
String nom_action= new String("");
switch(action)
{
case 1 : nom_action = "You want to put up an item "; break ;
case 2 : nom_action = "You want to add an item";break ;
case 3 : nom_action = "You want to order an item";break ;
case 4 : nom_action = "You want to modify an item";break ;
case 5 : nom_action = "You want to retrail an item";break ;
case 6 : nom_action = "You want to sell an item";break ;
}
System.out.println(nom_action);
}
}
public class managementofstock{
public static void main(String[] args) {
management_of_stock numero = new management_of_stock();
numero.perform() ;
}
}