首页 > > 详细

讲解module、讲解C/C++编程设计、辅导Programming Language、讲解C/C++设计 解析R语言编程|辅导Web开发

C Programming Language
Contribution to module (weighting: 20 %)
1st Semester 2018-2019
Out: WED. 5th Dec. 2018 Due: 18:00[GMT], WED. 19th Dec. 2018
Main objective of the assignment:
Understand C programming and practice to draw a flow chart to describe
the problem and coding in C.
You are given a struct student, Table-1 and Table-2 as listed below. You are
required to finish the assignment with given information.
- Use a flow chart or another method, demonstrate the data flow;
- Explain how the structure/functions to be used;
- Program in C language;
- Output screenshot for each question;
1. You are required to finish struct student class[] = {} using Table-1.
struct student
{ int stuno; char fname[20]
char lname[20]
int age;
struct transcript;
};
Table-1. Students’ Record
stuno fname lname age
101 Keanu Reeves 21
102 Nicolas Cage 20
103 Tom Cruse 20
104 Susan Boyle 22
105 Mariah Carey 192. Sort the records based on student age. You are required to write an
appropriate callback function, and output without transcript
information.
3. Transcript can be accessed from Table-2. First, you need to sort
student’s records based on their scores. Then, write an appropriate
callback function, and output with transcript information.
Table-2. Transcript Information
stuno cname score
101 C Programming 41
101 English 48
102 Math 50
103 Art 43
103 C Programming 56
104 Math 64
105 C Programming 71
105 Math 63
105 Database 32
4. Calculate the average score of “C Programming” using recursive
function. Write the appropriate callback function, and output the
average score (AVG).
5. Output all “C Programming” scores with student information. To
achieve this, you need to use strcmp() function to select “C
Programming” course. You are required to add a new column as
remark(Ordinary Degree(Pass) / Lower-second Class Degree / First
Honors Degree). Switch or if statement must be used to get remark
information. Specifically,
40-44 indicate “Ordinary Degree(Pass)”;
45-49 indicate “Third Class Degree”;
50-59 indicate “Lower-second Class Degree”;
60-69 indicate “Upper-second Class Degree”
70-100 indicate “First Honors Degree”.An example is given below:
Stuno cname score remark
101 C Programming 41
Ordinary
Degree(Pass)
101 English 48
Third Class
Degree
… … … …
Remarks:
* Solutions to all questions above need to be included one *.c file. In
addition, you are required to define a function for each question. e.g.:
main(), Q1functionname(), Q2functionname(), Q3functionname(),
Q4functionname() and Q5functionname(). Qxfunctionname() should be
given by yourself.
* The output for each question should be done in main() function.
* Do not include any Chinese characters in your assignment.
* You are required to write annotation before each function, and
annotation/description for important statements. e.g.:
/
@function function_name
@desc describe what is this function used for.
/
* List all the source code in the assignment.
* The assignment should be submitted in a .doc/.docx file, all the source
code should be included, and output screenshot should be included.DEPARTMENT OF ELECTRONIC & COMPUTER ENGINEERING
Pro-forma to accompany assignment / coursework 2018/2019
This pro-forma should be the first page to any set assignment/coursework. A full
assignment brief should accompany this pro-forma.
Module Code: A1040040 Module
Leader: XU ZHANG Assessor: XU ZHANG
Module Title: C Programming
Assessment Title: C Programming Assignment Weighting: 20%
Main objectives of the assessment:
To introduce the students the key issues of C programming, including array, struct and
loop, etc.
Brief Description of the assessment:
Finish a student transcript management project with multi-function.
1. Sorting with score or age.
2. Implement with recursive function to calculate average score.
Learning outcomes for the assessment:
Demonstrate knowledge and understanding
(K) cognitive (thinking) skills (C) and other
skills and attributes (S)
(K) Knowledge and Understanding
Write practical C programs demonstrating
knowledge of different data types,
functions, flow control, standard input and
output library functions, array, pointer and
structure;
Design and implement multi-function C
program.
(C) Cognitive (thinking) Skills
Understand the question and implement.
Find and correct errors in the process of
writing code and reading existed code.
(S) Other Skills and Attributes
Assessment and marking criteria
- Use a flow chart or another method,
demonstrate the data flow – 25%
- Explain how the structure/functions to be
used - 25%
- Program in C language – 25%
- Output screenshot for each question – 25%Design, compile and debug programs using
an integrated development environment.
Assessment method by which a student can demonstrate learning outcomes:
Written assignment (documentation of software) and submitted compressed programming codes
for software
Format for the assessment/coursework (Guidelines on the expected format and length
of submission):
Submission is completed via Blackboard Learn (BBL) only.
Assignment submission includes:
1. Compressed file of software
2. Documentation on implemented software (flow chat) in the form of .pdf or .doc file.
The report should NOT be included into the compressed folder.
Distribution date to students: WED, 5th Dec. 2018
Submission Deadline: 18:00[GMT], WED, 19th, Dec. 2018
Indicative Reading List:
Text Book/Standard Library of C
Further information: N/A

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!