Hello please I need urgent assistant to write a multi-user point of sales system in java that allows the cashier to key in all purchased product codes, quantities and then output a receipt.
Please where do I start from I am new to programming, it is a command line system
Starting with a complex multi-platform client-server system that handles money is not a good place to start with programming. You probably should buy or rent one.
System.out.println("\n");
System.out.println(output);
System.out.println("Total is: " + total);
System.out.println("Do you wish to continue? (yes or no)");
condition = input.next();
}while(condition.equals("yes"));
}
private static double getPrice(String thecode){
String code = thecode;
if(code.equals("0011")){
price = 176.2;
}
else if(code.equals("0012")){
price = 156.7;
}
else if(code.equals("0013")){
price = 186.2;
}
else if(code.equals("0014")){
price = 256.3;
}
else if(code.equals("0015")){
price = 216.8;
}
return price;
}
private static String getDesc(String desc, int q){
Bookmarks