ImageVerifierCode 换一换
格式:DOCX , 页数:19 ,大小:748.37KB ,
资源ID:5829111      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/5829111.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(第十一十二章北大青鸟ACCP50 Java.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

第十一十二章北大青鸟ACCP50 Java.docx

1、第十一十二章北大青鸟ACCP50 Java第十一章1.import java.util.Scanner;public class ScoreCalc int java; int c; int db; public int calcTotalScore() int total = java + c + db; return total; public void showTotalScore() System.out.println(总分是:+calcTotalScore(); public int calcAvg() int avg = (java + c +db)/3; return avg;

2、 public void showAvg() System.out.println(平均成绩是:+calcAvg(); class Score public static void main(String args) ScoreCalc score = new ScoreCalc(); Scanner input = new Scanner(System.in); System.out.print(请输入Java成绩:); score.java = input.nextInt(); System.out.print(请输入C成绩:); score.c = input.nextInt(); Sy

3、stem.out.print(请输入DB成绩:); score.db = input.nextInt(); score.showTotalScore(); score.showAvg(); 2.public class newManager String name = dongyongzheng; String pd = 0000; public void showyong() System.out.print(管理员信息为:+name); public void showpd() System.out.print(密码:+pd); class Manager public static vo

4、id main(String args) newManager m = new newManager(); m.showyong(); m.showpd(); 3.import java.util.*;public class Menu public void showLoginMenu() System.out.println(nt欢迎使用我行我素购物管理系统n); System.out.println(tt 1. 登 录 系 统n); System.out.println(tt 2. 退 出n); System.out.println (* * * * * * * * * * * * *

5、* * * * * * * * * * * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字:); public void showMainMenu() System.out.println(nt我行我素购物管理系统主菜单n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n); System.out.println(tt 1. 客 户 信 息 管 理n); System.o

6、ut.println(tt 2. 真 情 回 馈n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字或按0返回上一级菜单:); boolean con; do con = false; Scanner input = new Scanner(System.in); int no = input.nextInt(); if (no = 1) showCustMMenu(); else if

7、(no = 2) showSendGMenu(); else if (no = 0) showLoginMenu(); else System.out.print(输入错误, 请重新输入数字:); con = true; while(con); public void showCustMMenu() System.out.println(nt我行我素购物管理系统 客户信息管理); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n); System

8、.out.println(tt 1. 显 示 所 有 客 户 信 息n); System.out.println(tt 2. 添 加 客 户 信 息n); System.out.println(tt 3. 修 改 客 户 信 息n); System.out.println(tt 4. 查 询 客 户 信 息n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字或按0返回上一级菜单:); bo

9、olean con; do con = false; Scanner input = new Scanner(System.in); int no = input.nextInt(); if(no = 1) System.out.println(执行显示所有客户信息); else if(no = 2) System.out.println(执行添加客户信息); else if(no = 3) System.out.println(执行修改客户信息); else if(no = 4) System.out.println(执行查询客户信息); else if(no = 0) showMainMe

10、nu(); else System.out.print(输入错误, 请重新输入数字:); con = true; while(con); public void showSendGMenu() System.out.println(nt我行我素购物管理系统 真情回馈); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n); System.out.println(tt 1. 幸 运 大 放 送n); System.out.println(tt 2.

11、 幸 运 抽 奖n); System.out.println(tt 3. 生 日 问 候n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字或按0返回上一级菜单:); boolean con; do con = false; Scanner input = new Scanner(System.in); int no = input.nextInt(); if(no = 1) System

12、.out.println(执行幸运大放送); else if(no = 2) System.out.println(执行幸运抽奖); else if(no = 3) System.out.println(执行生日问候); else if(no = 0) showMainMenu(); else System.out.print(输入错误,请重新输入数字:); con = true; while(con); public static void main(String args) String name = dyz; String password = 111111; boolean con=t

13、rue; do Menu menu = new Menu(); menu.showLoginMenu(); Scanner input = new Scanner(System.in); int choice = input.nextInt(); switch(choice) case 1: System.out.println(请输入用户名:); String ming = input.next(); System.out.println(请输入密码:); String pd = input.next(); if(ming.equals(name)&pd.equals(password) S

14、ystem.out.println(登录成功+name); menu.showMainMenu(); else System.out.println(您没有权限进入系统,请重新登录。); break; case 2: System.out.println(谢谢您的使用!); con=false; break; while(con); import java.util.Scanner;public class newManu public static void main(String args) boolean con=true; do Menu menu = new Menu(); menu

15、.showLoginMenu(); Scanner input = new Scanner(System.in); int choice = input.nextInt(); switch(choice) case 1: menu.showMainMenu(); break; case 2: System.out.println(谢谢您的使用!); con=false; break; while(con); 4.import java.util.*;public class StartSMS static String name = dyz; static String password =

16、111111; public void showLoginMenu() System.out.println(nt欢迎使用我行我素购物管理系统n); System.out.println(tt 1. 登 录 系 统n); System.out.println(tt 2. 退 出n); System.out.println (* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字:); public void showMainMenu()

17、 System.out.println(nt我行我素购物管理系统主菜单n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n); System.out.println(tt 1. 客 户 信 息 管 理n); System.out.println(tt 2. 真 情 回 馈n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

18、* * * * * * * *); System.out.print(请选择,输入数字或按0返回上一级菜单:); boolean con; do con = false; Scanner input = new Scanner(System.in); int no = input.nextInt(); if (no = 1) showCustMMenu(); else if (no = 2) showSendGMenu(); else if (no = 0) showLoginMenu(); else System.out.print(输入错误, 请重新输入数字:); con = true;

19、while(con); public void showCustMMenu() System.out.println(nt我行我素购物管理系统 客户信息管理); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n); System.out.println(tt 1. 显 示 所 有 客 户 信 息n); System.out.println(tt 2. 添 加 客 户 信 息n); System.out.println(tt 3. 修 改 客 户

20、信 息n); System.out.println(tt 4. 查 询 客 户 信 息n); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字或按0返回上一级菜单:); boolean con; do con = false; Scanner input = new Scanner(System.in); int no = input.nextInt(); if(no = 1) System.

21、out.println(执行显示所有客户信息); else if(no = 2) System.out.println(执行添加客户信息); else if(no = 3) System.out.println(执行修改客户信息); else if(no = 4) System.out.println(执行查询客户信息); else if(no = 0) showMainMenu(); else System.out.print(输入错误, 请重新输入数字:); con = true; while(con); public void showSendGMenu() System.out.pri

22、ntln(nt我行我素购物管理系统 真情回馈); System.out.println(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *n); System.out.println(tt 1. 幸 运 大 放 送n); System.out.println(tt 2. 幸 运 抽 奖n); System.out.println(tt 3. 生 日 问 候n); System.out.println(* * * * * * * * * * * * * * * * * * * * * *

23、* * * * * * * * * * * * * * * * * *); System.out.print(请选择,输入数字或按0返回上一级菜单:); boolean con; do con = false; Scanner input = new Scanner(System.in); int no = input.nextInt(); if(no = 1) System.out.println(执行幸运大放送); else if(no = 2) System.out.println(执行幸运抽奖); else if(no = 3) System.out.println(执行生日问候);

24、else if(no = 0) showMainMenu(); else System.out.print(输入错误,请重新输入数字:); con = true; while(con); public static void main(String args) boolean con=true; do StartSMS menu = new StartSMS(); menu.showLoginMenu(); Scanner input = new Scanner(System.in); int choice = input.nextInt(); switch(choice) case 1: S

25、ystem.out.println(请输入用户名:); String ming = input.next(); System.out.println(请输入密码:); String pd = input.next(); if(ming.equals(name)&pd.equals(password) System.out.println(登录成功+name); menu.showMainMenu(); else System.out.println(您没有权限进入系统,请重新登录。); break; case 2: System.out.println(谢谢您的使用!); con=false;

26、 break; while(con); 5.import java.util.*;public class Game Person person; Computer computer; int count; public void initial() person = new Person(); computer = new Computer(); count = 0; public void Msin() System.out.println(*); System.out.println(* 猜拳游戏 *); System.out.println(*); System.out.println(出拳规则:1.剪刀 2.石头 3.布); Scanner input = new Scanner(System.in); String exit = n; do initial(); System.out.println(请选择对方较色:1. 刘备 2.孙权 3.曹操); int i = input.nextInt(); switch(i) case 1 : System.out.println(您选择的对象是:刘备); break; case 2 : System.out.println(您选泽的对手是:孙权); break; case 3 : System.out.printl

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1