① 用JAVA写超市收银系统
你这需求也不明确,最好是发上来。如果没写的话 可以按照程序设计的步骤慢慢来。这个是毕设?
② java语言编写超市购物系统 运用多个类,多个监听,最好不要用数据库,用文件的形式
Java语言的主要特点:1.跨平台性所谓的跨平台性,是指软件可以不受计算机硬件和操作系统的约束而在任意计算机环境下正常运行。这是软件发展的趋势和编程人员追求的目标。之所以这样说,是因为计算机硬件的种类繁多,操作系统也各不相同,不同的用户和公司有自己不同的计算机环境偏好,而软件为了能在这些不同的环境里正常运行,就需要独立于这些平台。而在Java语言中,Java自带的虚拟机很好地实现了跨平台性。Java源程序代码经过编译后生成二进制的字节码是与平台无关的,但是可被Java虚拟机识别的一种机器码指令。Java虚拟机提供了一个字节码到底层硬件平台及操作系统的屏障,使得Java语言具备跨平台性。2.面向对象面向对象是指以对象为基本粒度,其下包含属性和方法。对象的说明用属性表达,而通过使用方法来操作这个对象。面向对象技术使得应用程序的开发变得简单易用,节省代码。Java是一种面向对象的语言,也继承了面向对象的诸多好处,如代码扩展、代码复用等。3.安全性安全性可以分为四个层面,即语言级安全性、编译时安全性、运行时安全性、可执行代码安全性。语言级安全性指Java的数据结构是完整的对象,这些封装过的数据类型具有安全性。编译时要进行Java语言和语义的检查,保证每个变量对应一个相应的值,编译后生成Java类。运行时Java类需要类加载器载入,并经由字节码校验器校验之后才可以运行。Java类在网络上使用时,对它的权限进行了设置,保证了被访问用户的安全性。4.多线程多线程在操作系统中已得到了最成功的应用。多线程是指允许一个应用程序同时存在两个或两个以上的线程,用于支持事务并发和多任务处理。Java除了内置的多线程技术之外,还定义了一些类、方法等来建立和管理用户定义的多线程。5.简单易用Java源代码的书写不拘泥于特定的环境,可以用记事本、文本编辑器等编辑软件来实现,然后将源文件进行编译,编译通过后可直接运行,通过调试则可得到想要的结果。
③ 用JAVA编写购物系统的代码是什么(急)
算是最简单的吧
package cn.job01;
import java.util.Scanner;
public class Lx07 {
public static void choice() {
System.out.println("登陆菜单 ");
System.out.println("1登陆系统");
System.out.println("2退出");
}
static void choice1() {
System.out.println("购物管理系统>客户信息");
System.out.println("1显示所有客户信息");
System.out.println("2添加客户信息");
System.out.println("3修改客户信息");
System.out.println("4查询客户信息");
}
static void choice2() {
System.out.println("购物管理系统>真情回馈");
System.out.println("1幸运大放送");
System.out.println("2幸运抽奖");
System.out.println("3生日问候");
}
public static void main(String[] args) {
choice();
Scanner input = new Scanner(System.in);
System.out.println("请输入1or2");
int num = input.nextInt();
switch (num) {
case 1:
System.out.println("主菜单");
System.out.println("1客户信息管理");
System.out.println("2购物结算");
System.out.println("3真情回馈");
System.out.println("4注销");
break;
}
System.out.println("选择输入数字");
int num1 = input.nextInt();
switch (num1) {
case 1:
choice1();
break;
case 2:
System.out.println("购物结算");
break;
case 3:
choice2();
break;
case 4:
choice();
break;
}
}
}
④ 如何用java实现超市收银系统
这个不难,先把业务想清楚,然后建数据库,然后java代码把功能实现。2天应该够了,加油!
⑤ java编写简单购物系统
package cn.job01;
import java.util.Scanner;
public class Lx07 {
public static void choice() {
System.out.println("登陆菜单 ");
System.out.println("1登陆系统");
System.out.println("2退出");
}
static void choice1() {
System.out.println("购物管理系统>客户信息");
System.out.println("1显示所有客户信息");
System.out.println("2添加客户信息");
System.out.println("3修改客户信息");
System.out.println("4查询客户信息");
}
static void choice2() {
System.out.println("购物管理系统>真情回馈");
System.out.println("1幸运大放送");
System.out.println("2幸运抽奖");
System.out.println("3生日问候");
}
public static void main(String[] args) {
choice();
Scanner input = new Scanner(System.in);
System.out.println("请输入1or2");
int num = input.nextInt();
switch (num) {
case 1:
System.out.println("主菜单");
System.out.println("1客户信息管理");
System.out.println("2购物结算");
System.out.println("3真情回馈");
System.out.println("4注销");
break;
}
System.out.println("选择输入数字");
int num1 = input.nextInt();
switch (num1) {
case 1:
choice1();
break;
case 2:
System.out.println("购物结算");
break;
case 3:
choice2();
break;
case 4:
choice();
break;
}
}
}
⑥ 用Java语言写一个超市销售管理系统
这不是一下子就可以完成的分析,需求.建模???这些说清楚. 写这个需要多少时间,免费可能没人写哦!
⑦ 用java语言写个超市管理系统的程序
packagec;
importjava.util.Scanner;
publicclassSuperMarket{
staticScannerscan=newScanner(System.in);
publicstaticStringstr;
publicstaticvoidmain(String[]args){
();
while(scan.hasNext()){
switch(scan.nextInt()){
case1:
commodityManage();
break;
case2:
customerManage();
break;
case3:
orderManage();
break;
case4:
exitSystem();
break;
default:
System.out.println("输入错误,请重新输入!");
break;
}
}
scan.close();
}
/**
*显示信息
*/
publicstaticvoidshowMsg(){
System.out.println("===================================");
System.out.println(" 超市库存管理系统 ");
System.out.println("===================================");
System.out.println("1、商品管理");
System.out.println("2、客户管理");
System.out.println("3、订单管理");
System.out.println("4、退出系统");
System.out.println("===================================");
System.out.println("请输入您的选择(1-4):");
}
/**
*选项1、商品管理
*/
(){
str="商品管理";
showWelcom(str);
System.out.println("以上为商品管理的信息! 是否继续?(按1继续/其他结束):");
exitOrShow(1);
}
/**
*选项2、客户管理
*/
(){
str="客户管理";
System.out.println("以上为客户管理的信息! 是否继续?(按2继续/其他结束):");
exitOrShow(2);
}
/**
*选项3、订单管理
*/
publicstaticvoidorderManage(){
str="订单管理";
System.out.println("以上为订单管理的信息! 是否继续?(按3继续/其他结束):");
exitOrShow(3);
}
/**
*选项4、退出系统
*/
publicstaticvoidexitSystem(){
System.exit(0);
}
publicstaticvoidshowWelcom(Stringstr){
System.out.println("欢迎进入"+str+"模块");
System.out.println("===================================");
}
publicstaticvoidexitOrShow(intnextInt){
if(scan.nextInt()!=nextInt){
exitSystem();
}else{
showMsg();
}
}
}
⑧ 如何用Java语言编写购物结算系统
importjava.util.Scanner;
//看这样的行吗?
publicclassStoreCharge{
publicstaticvoidmain(String[]args){
Scannersc=newScanner(System.in);
System.out.println("输入应付金额:");
doublex=sc.nextDouble();
Pricep1=ampayable(x);
System.out.println(p1.toString());
System.out.println("输入实付金额:");
doubley=sc.nextDouble();
Pricep2=ampaid(y);
System.out.println(p2.toString());
System.out.println("找零:"+charge(p1,p2).toString());
charge(p1,p2);
}
publicstaticPricecharge(Pricep1,Pricep2){//p1总货价p2收款
intc,b;
if(p2.conner<p1.conner){
b=p2.conner+10-p1.conner;
p2.element=p2.element-1;
}else
b=p2.conner-p1.conner;
c=p2.element-p1.element;
returnnewPrice(c,b);
}
publicstaticPriceampayable(doublex){//应付金额
Pricea=newPrice();
a.element=(int)x;
a.conner=(int)(x*10-((int)x)*10);
returna;
}
publicstaticPriceampaid(doublex){//实付金额
Pricea=newPrice();
a.element=(int)x;
a.conner=(int)(x*10-((int)x)*10);
returna;
}
}
classPrice{
intelement;//元
intconner;//角
publicPrice(){}
publicPrice(inte,intc){
element=e;
conner=c;
}
publicStringtoString(){
returnelement+"元"+conner+"角";
}
}
⑨ 求一个Java语言的超市收银系统源代码
刚好我们做了一个,一个是本地pos,一个是远程pos,远程用oracle数据库,本地用mysql数据库。可以断网用也可以连网用,别35金币了,十万就行了。