Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Language Programming Project Topics & Requirements Requirements implement the functions listed. write the course design report. your report need a cover page and main

C Language Programming Project Topics & Requirements

Requirements implement the functions listed. write the course design report. your report need a cover page and main contents should include objectives, design requirements, design architecture, flowchart, function description, debugging problems, test analysis, etc.

Marking criteria

Content Mark 1. The project presentation was conducted in a professional manner and clearly conveyed required components of project report and each group member clearly contributed to the report presentation50% 2. Report structure, writing style and bibliography of key reference source, appendices (technical standards, best practice standards and methodologies etc.)50%

Notes

1assessment: Demo(50%) + Report50% 2One team only need to submit one report, but every member's work must be listed in the report. If there is any plagiarisms found, the final result of the whole team will be marked as 0.

NB choose only one Topic

Topics

1 2.University sports meeting management system ( 2 persons) 1)requirements Competition results must be recorded and stored in a file. System must provide file input and output function. University info and match info could be inquired, each universitys competition results, university info, competition items info could also be inquired and listed. Your system should provide a menu using keyboard to select options. 2)system design The system includes these modules: information input, result entering and inquiry. 3)detailed design There could be three structures: school, item, athlete. Struct athlete { Char name[20]; //athlete name Int age; Char From[20]; //which university come from }Athlete;

Struct item { Char name[20]; //item name Int score[3]; //The first three position scores Athlete player[3]; // the first three prize athlete info }Item;

Struct university { Char name[20]; // university name Item item[10]; //competition items, at most 10 Int score[10]; //university scores of competition items }Uni; Item TotalItem[ItemNum]; Uni AllUni[UniNum]; 1main function Functions input, process and output could be called in the main function, using menu options to select each module. 2info enter module Enter university number, competition number, save all university info, item info and athlete info into three files(use fwrite function), create 3 files. For example: the ith item Scanf(%s,TotalItem[i].name); //enter item name TotalItem[i].score[0]=5; TotalItem[i].score[1]=3; TotalItem[i].score[2]=1; TotalItem[i].athlete[0]=Tom; TotalItem[i].athlete[1]=John; TotalItem[i].athlete[2]=Mark; Then write into item info filefp=fopen(item.txt,wb); fwrite(&TotalItem[i],sizeof(Item),1,fp); University info and athlete info enter operation are similar. 3inquiry module Inquire university info file, get the report of total score of team, use general search algorithm to inquire competition university info(via university name) or competition item info(via item name).

2.

3.Vote System ( 2 persons) 1)requirements Input vote number of people and vote result, sort the result when report and output the result. 2)system design This system could have two parts of data input and report. 3)detailed design Use structure: Struct { Char code; Int score; }Candidates[N]; //candidates array

#define N 3;

Use two dimensional array, the row direction corresponds to a vote, the column direction corresponds to each candidate scores.

Candidate[M][N]; 1input part Char tmp[3]; //temporary variable of votes Input vote number of people n; For(i=0;i

3.

7.Lab Position Booking System ( 3 persons) 1)Data structue Struct CusInfo { Char name[20]; //customer name Int sex; Char tel[11]; //phone number }CInfo;

PC info structure: Struct { Int State[6]; // PC position status, every two hours is one period, // from 08:00 to 20:00, totally for 6 periods. // 0 means available period, 1 means not. CInfo waitlist[6]; // Customers in every period Int year; Int month; Int day; // Date }PCInfo; PCInfo info[100]; //store 100 days position info 2)Implemention 1Browse Input time, traverse the array info, check dateyear/month/day, if date matched, output the PC position info. 2Position Booking Input date or time period, check PC position status file, if date matched, check status then. If the value is 0, reserve this period for the custome ( put the customer info into waitlist ). If the value is 1, check other periods on that day, find the closest period. 3Cancel Booking Find the booking record in terms of booking date and customer info inputted, delete the booking record and reset the period status with 0. 4Inquiry Input a date and period, check the status of the period. If the status is 1, output the booked customer info. Otherwise, output The period is available! han 100 frequent words.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

How can we visually describe our goals?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago

Question

What are some of the possible scenes from our future?

Answered: 1 week ago