当前位置: 首页 > news >正文

政府网站上怎么做电子签名搜索引擎优化的目标

政府网站上怎么做电子签名,搜索引擎优化的目标,如何将网站排名做高,响应式网站模板滚动条T1.理工超市 &#xff08;1&#xff09;题目描述 编写一个程序&#xff0c;设计理工超市功能菜单并完成注册和登录功能的实现。显示完菜单后&#xff0c;提示用户输入菜单项序号。当用户输入<注册>和<登录>菜单序号时模拟完成注册和登录功能&#xff0c;最后提示…

T1.理工超市

(1)题目描述

编写一个程序,设计理工超市功能菜单并完成注册和登录功能的实现。显示完菜单后,提示用户输入菜单项序号。当用户输入<注册>和<登录>菜单序号时模拟完成注册和登录功能,最后提示注册/登录成功并显示注册信息/欢迎XXX登录。当用户输入其他菜单项序号时,这输出“该功能暂未实现,请期待...”。要求利用无限循环让用户可以不断选择功能菜单,只有当用户输入<退出>菜单序号时才退出循环结束程序。

(2)主要代码
import java.util.Scanner;
public class market {public static void main(String[] args) {Scanner input =new Scanner(System.in);String userName="";String pwd="";boolean isRegiter=false;while(true){System.out.println("=============================欢迎来到理工超市=================================");System.out.println("1.用户注册 2.用户登录 3.浏览商品 4.查看商品详情 5.加 入购物车 6.查看购物车 7.结算 8.退出");System.out.println("============================================================================");int choice=input.nextInt();switch(choice){case 1:System.out.println("用户注册");System.out.println("请输入用户名");userName= input.next();System.out.println("请输入密码");pwd= input.next();System.out.println("请再次输入密码");String cfmpwd= input.next();while(!cfmpwd.equals(pwd)){System.out.println("两次密码输入不同,请重新输入");System.out.println("请输入密码");pwd= input.next();System.out.println("请再次输入密码");cfmpwd= input.next();}int checkedNumber=(int)(Math.random()*9000+1000);System.out.println("请输入验证码"+checkedNumber+"\t");int checkedNum= input.nextInt();while(checkedNumber!=checkedNum){System.out.println("验证码输入错误,请重新输入");checkedNumber=(int)(Math.random()*9000+1000);System.out.println("请输入验证码"+checkedNumber+"\t");checkedNum= input.nextInt();}System.out.println("注册成功!");isRegiter=true;continue;case 2:System.out.println("用户登录");if(!isRegiter){System.out.println("请先注册再登录");continue;}for(int i=0;i<3;i++){System.out.println("请输入登录的用户名");String uName= input.next();System.out.println("请输入登录的密码");String uPwd= input.next();if(uName.equals(userName)&&uPwd.equals(pwd)){System.out.println("登录成功!");break;}else{if(i<2){System.out.println("用户名或者密码输入错误,您还有 "+(2-i)+"次机会,请重新输入");}else{System.out.println("三次均输入错误用户或密码");}}}continue;case 3:System.out.println("该功能暂未实现,请期待...");continue;case 4:System.out.println("该功能暂未实现,请期待...");continue;case 5:System.out.println("该功能暂未实现,请期待...");continue;case 6:System.out.println("该功能暂未实现,请期待...");continue;case 7:System.out.println("该功能暂未实现,请期待...");continue;case 8:System.out.println("退出");System.exit(0);default:System.out.println("输入错误,请重新输入");continue;}}}
}
(3)运行效果及截图

​​​​​​​

http://www.yidumall.com/news/50601.html

相关文章:

  • 亚马逊在哪个网站做推广搜索引擎营销题库和答案
  • 项城网站建设如何优化网页
  • 网站做优化的操作图片上海今日头条新闻
  • 网站怎么推广最公司推广渠道
  • 值得关注的网站全球网络营销公司排名
  • 电影网站标题怎么做流量多怎么建立自己的网站平台
  • 网站建设面板怎么把产品放到网上销售
  • 专门做衬衣网站最新新闻热点事件2024
  • 怎么从网站上看出做网站的日期百度收录最新方法
  • 男周志做网站大数据培训包就业靠谱吗
  • 企业建站的作用是什么在线代理浏览网站
  • div css快速做网站今日新闻简讯30条
  • 深圳做网站公司有哪些宁波网络推广联系方式
  • 柳州 网站开发360搜索引擎网址
  • 线上注册公司网址seo关键词排名优化价格
  • 网站建设利润品牌推广的作用
  • 泰州网站建设策划方案免费网站自助建站系统
  • 网站开发验收流程图新闻头条免费下载安装
  • 注册公司网站开发建设营业项目站长工具seo综合查询 分析
  • 企业网站建设公司哪家靠谱影视后期培训机构全国排名
  • 成品网站建设线下推广团队
  • 南昌网站建设公司资讯中国没有限制的搜索引擎
  • 网站建设合同验收标准长沙seo免费诊断
  • 做网站的主要作用怎么投稿各大媒体网站
  • 做网站开发需要学什么福州seo网站管理
  • 昆明大型网页开发企业最彻底的手机优化软件
  • 做影视网站侵权如何做电商 个人
  • 网站底部友情链接怎么做的中国大数据平台官网
  • 企业门户网站开发代码百度seo和谷歌seo有什么区别
  • 网站建设和使用情况全球十大网站排名