数据结构实验报告—学生成绩管理系统(Java实现)

数据结构实验报告————学生成绩管理系统(Java实现)

在这里插入图片描述
[具体下载链接]https://download.csdn.net/download/mmzian/10897535

部分代码展示
Test类


import java.util.Scanner;

public class Test {

	private static final String Score = null;

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		String choice = "1";

		ScoreList studentScoreList = new ScoreList();

		System.out.println("**********学生成绩管理系统********");

		while(choice.equals("0") == false) {

			System.out.println("1.查看学生成绩单");

			System.out.println("2.添加学生成绩记录");

			System.out.println("3.修改学生成绩记录");

			System.out.println("4.删除学生成绩记录");

			System.out.println("5.统计学生成绩");

			System.out.println("6.按姓名顺序显示所有记录");

			System.out.println("7.按学号顺序显示所有记录");

			System.out.println("8.通过姓名查找记录");			
			
			System.out.println("9.通过学号查找记录");
			
			System.out.println("0.退出程序");

			System.out.print("Enter your choice: ");

			choice = input.next();

	    	

			switch(choice) {

			    case "0": 

			    	System.out.println("谢谢您的使用,欢迎下次光临!\n" + "**********按任意键结束程序**********"); 

			        break;

			    

			    case "1":

			    	studentScoreList.transcript();

			    	System.out.println("请问您还需要什么服务?\n");

			    	break;

				

			    case "2":

			    	int i = 1;

			    	do {

			    	studentScoreList.add();

			    	System.out.println("\n是否继续添加?" + "\n" + "0.否" + "\n" + "1.是");

			    	i = input.nextInt();

			    	}while(i == 1);

			    	System.out.println("请问您还需要什么服务?\n");

			    	break;

			    	

			    case "3": 

			    	studentScoreList.recompose();//修改

			    	System.out.println("请问您还需要什么服务?\n");

			    	break;

				

			    case "4":

			    	studentScoreList.delete();//删除

			    	System.out.println("请问您还需要什么服务?\n");

			    	break;

			    	
			    case "5":

			    	System.out.println("当前存档学生个数为:"+Score);   //显示表中学生个数

			    	System.out.println("请问您还需要什么服务?\n");
			   
			    	break;


			    case "6":

			    	studentScoreList. SelectSort();//利用直接插入排序或者折半插入排序按照姓名进行排序;
			    	System.out.println("请问您还需要什么服务?\n");

			    	break;

				
			    case"7":
			    	studentScoreList.QuickSort();//利用快速排序按照学号进行排序;
			    	studentScoreList.transcript();
			      	System.out.println("请问您还需要什么服务?\n");
			    	break;
		   	
				
					

			    case "8":

			    	studentScoreList.BinSearchByName();//根据姓名进行折半查找,要求使用递归算法实现,
			    	                                      //成功返回此学生的学号和成绩;

			    	System.out.println("请问您还需要什么服务?\n");

			    	break;


			    case "9":

			    	studentScoreList.inquire();//查询

			    	System.out.println("请问您还需要什么服务?\n");

			    	break;

				
	    	

				default: 

					System.out.println("Invalid input! Please enter again."); 

				    break;

			}

			

		}

	}

 

}

具体下载链接

  • 8
    点赞
  • 56
    收藏
    觉得还不错? 一键收藏
  • 13
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值