學生成績信息管理與統計
㈠ ,從「學生成績管理系統」資料庫的「成績表」中統計每個課程平均分,最低分,最高分,按課程代碼升序排列
SQL中在統計每門課程的平均成績、最高成績和最低成績
select b.課程名,avg(a.分數) as 平均成績內,max(a.分數) as 最高成容績,min(a.分數) as 最低成績
from 成績表 a,課程表 b
where a.課程號=b.課程號
group by b.課程名
㈡ 學生成績管理系統用C語言結構體去寫要求顯示學生成績管理,學生檔案管理,查詢和統計
跟你的要求差不多,但是有點小差別,自己改改吧!
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define NAME_MAX 100//書的名字的最長字數
#define WRITER_MAX 100//作者名字的最長
#define PUB_MAX 100//出版單位最長名字
#define TIME 100//出版時間
typedef struct books
{
int loading;
char name[NAME_MAX];
char writer[WRITER_MAX];
int identify;
char pub[PUB_MAX];
char time[TIME];
int price;
struct books * next;
}book;
//頭結點不存儲信息
void Init(book * head)
{
head->next=NULL;
}
//列印一些歡迎詞之類的。。。。。
void welcome()
{
printf("******歡迎使用章強圖書館,哈哈*********\n");
printf("\n\n");
printf("1:圖書信息錄入功能\n");
printf("2:圖書信息瀏覽功能,顯示該書的所有信息\n");
printf("3:圖書信息查詢功能:按書名查詢與按作者名查詢\n");
printf("4:圖書信息的修改和刪除,可對相應數據進行修改和刪除\n");
}
//顯示一本書的信息
void print_the_book(book * p1)
{
printf("loading number:%d \n",p1->loading);
printf("name: ");
puts(p1->name);
printf(" \n");
printf("writer: ");
puts(p1->writer);
printf(" \n");
printf("identify:%d ***\n",p1->identify);
printf(" \n");
printf("pub: ");
puts(p1->pub);
printf(" \n");
printf("time: ");
puts(p1->time);
printf(" \n");
printf("price:%d ***\n",p1->price);
}
int chongfu(book * head,book * p)
{
book * p1=head->next;
int a=0;
while(p1!=NULL)
{
if(strcmp(p1->name,p->name)==0)
{
if(strcmp(p1->writer,p->writer)==0)
{
a=1;
break;
}
}
else
p1=p1->next;
}
return a;
}
//錄入一些信息。。。。
void luru(book * head)
{
book * p1=head;
book * p2;
//尋找NULL前的那個點
while(p1->next!=NULL)
{
p1=p1->next;
}
int a;
do
{
p2=(book *)malloc(sizeof(book));
printf("輸入書本信息\n");
printf("登錄號\n");
fflush(stdin);
scanf("%d",&p2->loading);
printf("書名\n");
fflush(stdin);
gets(p2->name);
fflush(stdin);
printf("作者\n");
gets(p2->writer);
fflush(stdin);
printf("分類號\n");
scanf("%d",&p2->identify);
fflush(stdin);
printf("出版社\n");
gets(p2->pub);
fflush(stdin);
printf("出版時間\n");
gets(p2->time);
fflush(stdin);
printf("價格\n");
scanf("%d",&p2->price);
p2->next=NULL;
fflush(stdin);
//加入鏈表
if(chongfu(head,p2))
printf("錄入信息重復\n");
else
{
p1->next=p2;
p1=p2;
}
printf("還想繼續錄入信息嗎?\n(1:繼續 0:停止)\n");
scanf("%d",&a);
}while(a==1);
}
void liulan(book * head)
{
book * p1=head->next;
int i=1;
while(p1!=NULL)
{
printf("*********第%d本書***********\n",i++);
print_the_book(p1);
p1=p1->next;
}
}
//查詢。。。。
void chaxun(book * head)
{
printf("按書名查詢還是按作者名查詢?\n(1:按書名查詢 0:按作者名查詢)\n");
book * p=head->next;
int a;
scanf("%d",&a);
int num=0;
char cha[NAME_MAX];
switch(a)
{
case 1:
printf("輸入書名:\n");
gets(cha);
while(p!=NULL)
{
if(strcmp(p->name,cha)==0)
{
num++;
print_the_book(p);
}
p=p->next;
}
break;
case 2:
printf("輸入作者名:\n");
gets(cha);
while(p!=NULL)
{
if(strcmp(p->writer,cha)==0)
{
num++;
print_the_book(p);
}
p=p->next;
}
}
if(num==0)
printf("無符合書本\n");
}
//修改信息
void xiugai(book * head)
{
printf("輸入需要修改書本的名稱和作者:\n");
char name_book[NAME_MAX];
char writer_book[WRITER_MAX];
printf("書本名稱:");
gets(name_book);
gets(writer_book);
book * p1=head->next;
int a=0;
while(p1!=NULL)
{
if(strcmp(p1->name,name_book)==0)
{
if(strcmp(p1->writer,writer_book)==0)
{
a=1;
break;
}
}
}
if(a==0)
printf("沒有這本書。。。\n");
else
{
print_the_book(p1);
printf("輸入新信息\n");
scanf("%d",&p1->loading);
gets(p1->name);
gets(p1->writer);
scanf("%d",&p1->identify);
gets(p1->pub);
gets(p1->time);
scanf("%d",&p1->price);
}
}
void main()
{
book * head;
head=(book *)malloc(sizeof(book));
Init(head);
int contin=1;
while(contin)
{
welcome();
printf("想進行哪項操作?\n");
int a;
scanf("%d",&a);
switch(a)
{
case 1:
luru(head);
break;
case 2:
liulan(head);
break;
case 3:
chaxun(head);
break;
case 4:
xiugai(head);
}
printf("繼續使用圖書館還是退出?\n(1:continue 0:exit)\n");
scanf("%d",&contin);
}
}
㈢ 學生成績管理系統 主要功能: (1)能完成對學生成績的錄入、修改 (2)能統計學生的成績,求學生的總分及
數據結構的就有
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct stu
{
char name[8];
int num;
int score;
};
struct stu stu[5];
void INPUT()
{
int i;
for(i=0;i<5;i++)
{
printf("請輸入第%d個學生的姓名:",i+1);
scanf("%s",&stu[i].name);
printf("學號:");
scanf("%d",&stu[i].num);
printf("總分:");
scanf("%d",&stu[i].score);
if(stu[i].score<=0||stu[i].score>=1000)
{
printf("輸入數值不合法,請輸入0到1000之間的數\n");
printf("總分:");
scanf("%d",&stu[i].score);
}
}}
void SORT()/*排序數據函數*/
{
int i,j,temp;
int t[5]={0,1,2,3,4};
for(i=0;i<4;i++) /*冒泡法*/
for(j=i;j<5;j++)
{
if(stu[t[i]].score<stu[t[j]].score)
{
temp=t[i];
t[i]=t[j];
t[j]=temp;
}
}
for(i=0;i<5;i++)
printf("%d %s %d\n",stu[t[i]].num,stu[t[i]].name,stu[t[i]].score);//輸出學號 姓名 總分
printf("\n");
}
void QUERY()/*查詢函數*/
{ int a,i;
printf("請輸入查詢學號:");//學號查詢
scanf("%d",&a);
for(i=0;i<4;i++)
if(stu[i].num==a)
{
printf("學號:%d 姓名:%s 總分: %d\n\n",stu[i].num,stu[i].name,stu[i].score);
printf("\n");
}
}
void main()
{ int key=1;
while (key>=1 && key<=4)
{
printf("\n\n*************************************\n\n");
printf(" 學生信息管理登記表功能區:\n");
printf("\n 1.INPUT(輸入信息)\n"); //對5個學生的信息進行輸入;
printf(" 2.SORT(總分的排序)\n"); //對5個學生的總分按降序排序並顯示出來;
printf(" 3.QUERY(輸入學號查詢)\n");//輸入一個學號後,查詢顯示出該學生的有關信息;
printf(" 4.EXIT(退出)\n");//退出
printf("\n\n*************************************\n\n");
printf("\n 請輸入你選擇的功能序號:");
scanf("%d",&key);
if (key<=0||key>4){
printf("\n 輸入有誤,請重新輸入:");
scanf("%d,",&key);
}
else
switch(key){
case 1: INPUT(); break;
case 2: SORT(); break;
case 3: QUERY(); break;
case 4: exit(0);break;}
}
}
㈣ 學生成績信息管理系統
到CSDN上看看
ER圖就是實體-聯系圖
你按照這個關系畫,不試著畫幾個你永遠都在初級階段,雖然懂一點,但動手還是有點生疏。。。。。。。。
㈤ 設計一個學生成績信息統計的軟體
怎麼計費的?
㈥ 1.學生成績管理系統 學生信息包括學號、姓名、至少四門功課的成績、總分及平均分等。
寫了嗎?借我看看唄
㈦ 學生成績統計管理系統
學生成績統計管理系統
隨便給你一篇,你也沒有用,我有好幾篇,可以供你挑選。
採納哦!
㈧ 編寫學生成績管理程序 管理不同班級的學生信息,課程信息 試成績等,並可對成績進行簡單的查詢與統計
數據源是什麼,是給定txt還是資料庫還是臨時手動輸入?輸出到哪?具體有什麼功能要求啊,寫的太簡單看不出啊
㈨ 實現一個簡單的學生成績管理系統。包括:①學生信息輸入,②信息內容顯示,③信息統計,④信息查詢等功能
回復我,可以幫做
㈩ 學生成績管理系統的目的和意義是什麼
可以更快的使學生的成績相加並且排名,這對老師來說是很好可以減少很多工作量,在多人版多課考試時很有用,權只要成績出來,輸入電腦就可以在幾秒內是成績相加,並知道了某學生在學校排名,但對學生來說,考完試自由的時間就很少了