package customer;
import java.util.Scanner;
public class Customer {
public static void main(String[] args) {
String customerr;
int name;
int adress;
int phoneNumber;
Scanner input=new Scanner(System.in);
System.out.println("please enter your name");
customerr=input.nextLine();
name=input.nextInt();
adress=input.nextInt();
phoneNumber=input.nextInt();
switch(customerr){
case "Ahmad":
case "0555150055":
System.out.println("Hello Ahmad ,you will get a 10% discount from the total payment");
System.out.println("total priceis: 3700 SR ,you will be directed to our E-payment page" );
System.out.println("thank you for using our System " );
break;
case "Mohammad Abdullah":
case "0595911919":
System.out.println("Hello Mohammad Abdullah,you will get a 10% discount from the total payment");
System.out.println("total priceis: 3600 SR ,you will be directed to our E-payment page" );
System.out.println("thank you for using our System " );
break;
default:
System.out.println("Hello " +name+ "please complete you information");
System.out.println("you phone number :"+adress );
System.out.println("you phone number :"+phoneNumber );
System.out.println("total priceis: 3500 SR ,you will be directed to our E-payment page" );
System.out.println("thank you for using our System " );
}
}
}السلام عليكم ورحمة الله وبركاته
عندي برنامج بـ swich
مايطلع لي error ومو راضي يتنفذ
ممكن تقولين لي ايش المشكله
يرفع من قيمة الموضوع واهمية الرد