项目
Plutozh
so
展开
-
我行我素购物管理系统的登录菜单
public class LoginMenu {/** 显示我行我素购物管理系统的登录菜单/public static void main(String[] args) {System.out.println("\n\t\t欢迎使用我行我素购物管理系统\n");System.out.println("\t\t\t 1. 登 录 系 统\n");System.out.println("...转载 2018-10-29 21:42:09 · 2063 阅读 · 0 评论 -
购物结算系统
public class Pay {/* * 购物结算 */public static void main(String[] args) { String name = ""; // 商品名称 double price = 0.0; // 商品价格 int goodsNo = 0; // 商品编号 int amount = 0; // 购买数量 double discount =...转载 2018-10-29 21:51:14 · 1204 阅读 · 0 评论 -
条件和循环构造的应用
public class ConsumeSavePlan {public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("请输入消费金额:"); double money = input.nextDouble(); double extra = 0; ...原创 2018-10-30 00:41:13 · 125 阅读 · 0 评论 -
计算货车租金
1.创建租金lease类(1)创建车的对象,放在数组中MotoVehicle[] motos = new MotoVehicle[4];motos[0] = new Car(“宝马550i”,“京NY28588”);motos[1] = new Car(“宝马550i”,“京NNN328”);motos[2] = new Car(“别克林荫大道”,“京NY28588”);motos[3...原创 2018-10-30 00:40:41 · 731 阅读 · 0 评论 -
抽奖系统
1.用户public class User {public static String userName = “”;public static String passWord = “”;public static int cardNumber = 0;public static boolean isLogin = false; //判断是否登录public static boo...原创 2018-11-05 10:41:29 · 1160 阅读 · 0 评论