超市服装连锁管理系统java源代码的简单介绍
admin 发布:2022-12-19 23:37 175
本篇文章给大家谈谈超市服装连锁管理系统java源代码,以及对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。
本文目录一览:
用java语言写个超市管理系统的程序
package c;
import java.util.Scanner;
public class SuperMarket {
static Scanner scan = new Scanner(System.in);
public static String str;
public static void main(String[] args) {
showMsg();
while (scan.hasNext()) {
switch (scan.nextInt()) {
case 1:
commodityManage();
break;
case 2:
customerManage();
break;
case 3:
orderManage();
break;
case 4:
exitSystem();
break;
default:
System.out.println("输入错误,请重新输入!");
break;
}
}
scan.close();
}
/**
* 显示信息
*/
public static void showMsg() {
System.out.println("===================================");
System.out.println("\t超 市 库 存 管 理 系 统\t");
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、商品管理
*/
public static void commodityManage() {
str = "商品管理";
showWelcom(str);
System.out.println("以上为商品管理的信息!\n是否继续?(按1继续/其他结束):");
exitOrShow(1);
}
/**
* 选项 2、客户管理
*/
public static void customerManage() {
str = "客户管理";
System.out.println("以上为客户管理的信息!\n是否继续?(按2继续/其他结束):");
exitOrShow(2);
}
/**
* 选项 3、订单管理
*/
public static void orderManage() {
str = "订单管理";
System.out.println("以上为订单管理的信息!\n是否继续?(按3继续/其他结束):");
exitOrShow(3);
}
/**
* 选项 4、退出系统
*/
public static void exitSystem() {
System.exit(0);
}
public static void showWelcom(String str) {
System.out.println("欢迎进入"+ str +"模块");
System.out.println("===================================");
}
public static void exitOrShow(int nextInt) {
if (scan.nextInt() != nextInt) {
exitSystem();
} else {
showMsg();
}
}
}
java超市管理系统源代码
只写个demo级的例程很好写,但用到生产环境中还得具体分析设计再编码。这种代码网上太多了内,你随便搜下就有了。
如何编写Myshopping管理系统java程序代码
import java.util.Scanner;
public class AddCustomer{
public static void main(String[] args){
System.out.printIn("MyShopping管理系统 客户信息管理 添加客户信息\n");
int custNo; //会员号
int birthday; //会员生日
int points = 0; //会员积分
Scanner input=new Scanner(System.in);
for(int i=0;i3;i++){ //循环录入会员信息
System.out.printIn("请输入会员号(4位整数):");
custNo = input.nextInt();
System.out.printIn("请输入会员生日(月\日用两位整数表示):");
custNo = input.next();
System.out.printIn("请输入会员积分:");
custNo = input.nextInt();
if(custNo1000||custNo9999){ //会员号无效则跳出
System.out.printIn("客户号"+custNo+"是无效会员号!");
System.out.printIn("录入信息失败\n");
contiune;
}
System.out.printIn("您录入的会员信息是:");
System.out.printIn(custNo+" "+birthday+" "+points+ "\n");
}
System.out.printIn("程序结束!");
}
}
关于超市服装连锁管理系统java源代码和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;
相关推荐
- 05-17武汉服装seo整站优化方案,武汉服装网店货源在哪里
- 05-17做公司网页,做公司网页有什么简单的方法
- 05-12深圳seo公司的简单介绍
- 05-11设计一个简单的网页,独立站建站平台有哪些
- 05-09hao123网址之家官网的简单介绍
- 05-07孝感seo的简单介绍
- 05-07pb超级报表源代码(pb报表工具)[20240507更新]
- 05-07简历源代码可以上传照片的简单介绍[20240507更新]
- 05-07广告切换源代码免费下载(广告切换源代码免费下载安装)[20240507更新]
- 05-06阁楼网源代码(阁楼是什么网站)[20240506更新]
取消回复欢迎 你 发表评论:
- 标签列表
- 最近发表
- 友情链接