Sei sulla pagina 1di 15

Mini Project Stage 3

AU SHI LI JOLENE (S10188531B)


SU SU TUN (S10187917E)
Contents page
1. Progress Tracking Form

2. Source of materials

3. Project description

4. Sample dialogs

5. C programming
Download from: mel>Compro>Module Information> Mini-Project> Proj-
Progress-Apr 2018.doc

9. Mini Project (an open ended approach) Apr 2018


Semester
Task Scenario.
You are to source for a mathematical or engineering related or real life problem and
write a computer program to solve it. You are expected to use the program statements
and skills learnt during the course. Other features may also be added, if you wish. If you
have difficulty in writing the project descriptions, you may refer (but not to copy) the format
of the laboratory exercises used in the textbook. In the process of developing your
program, you should demonstrate the following thinking skills:
1) Analyse the input, output and processes (e.g. calculation or
comparison) required.
2) Predict the appropriate output for different range / type of input data.
3) Decide on the appropriate structures to use (e.g. sequential, selection
or repetition).
4) Write and compare alternative programs to solve the problem.
5) Test run the programs with different input to check for correctness and
robustness.
6) Decide on the best program to submit to the lecturer.
Organisation & Presentation of work
1) This is a group project (2 members in each group or 1 person for the odd
case).
2) A Progress Tracking Form (see next page) is to be used to keep track of your
progress.
3) In stage 1, each of you is required to write and submit your own program
(preliminary program) to solve any problem related to mathematics,
engineering or real-life problem. Your program should use scanf, printf and if-
else.
4) You will then proceed to stage 2 and subsequently to stage 3, where 2
students work as a team to write a program and progressively improve on it
as shown in the Progress Tracking Form. However, students who failed their
practical test 1 will do the project individually.
5) At the end of the project, you should submit the program and the report in the
following order:
- Progress Tracking Form.
- Photocopies of relevant materials used in your project, documents such as
worked examples or brochures, whichever applicable. The title of reference
book or website address must be included.
- Project descriptions (not more than one page) that clearly describe what your
project is all about and the input/output requirements.
- Sample dialogues from your program execution using the relevant test data.
- Your program (one program per team).
6) The program must be jointly done by you and your partner. It should have
proper indentation and brief comments to show the steps and structures
clearly.
Marking Scheme

Component Marks Evidence

Sourcing effort & Preliminary ALLY Submission 1 and Photocopies


program /15 of materials/worked
examples/brochures/web pages

Project Description /10 Clear description of i/o requirements

Program /20 Well structured program (use if


structures/Documentation else/switch/loops/functions)

Program testing for different Relevant & sufficient i/o sample dialogs
input /
20

Efforts/Team Work/Time /10 Assessed continuously –See Progress


management Tracking form.

Complexity and Quality of /10 Higher order of thinking


program

Advance Features (e.g. Ability of self learning - beyond what


arrays, files, pointers, data /10 are taught in class.
structure etc)

Creativity /5 Creative and useful features


Overall /100 Weight = 15% of the overall result

Progress Tracking Form Apr 2018 Semester Class: PT17


Write down the names of the team members:

1 NPNET login Name: Marks:


S___10188531B______
Name (Leader): Jolene Au Shi Li

Name: Su Su Tun NPNET login Name: Marks:


2 S___10187917E______

Week Task to be Students show Lecturer ‘s


done tasks comment/
completed. feedback
for
Lecturer enters
improveme
checking date.
nt
Wk 4 – 7 1) Each student Each student describes the
Stage-1 sources for his/her topic(s) he/she has selected.
own topic on Keep the source. (e.g. book
7 May - 3 Jun
Maths, Engineering, /web-site/worked examples).
Science or others Topics selected are:
Submit by 3
Jun Sunday Write a Preliminary
program 1.
______Games____________
Each student
submits his/her
own program with 2._______Quiz___________
sample dialogs to
ALLY (stage-1)
Wk 8 –13 2) Use switch, if- Submission of stage-2
Stage-2 else, Loops program in MeL folder(Stage
4 Jun - 15 Jul Develop ONE 2):
program for the
Submit by 15 selected topic(s)
1) C program by Team
Jul Sunday The team submits Leader : Yes/No
one program to
ALLY (stage-2) 2) Project Description / dialogs
by Team partner : Yes/No
Date: ______________

Wk 14-17 3) Use Functions Show improved program to


Stage 3 and additional lecturer for comments.
16 Jul – 10 features
Aug Fine tuning and
improving program.
Prepare project
description: Refer to
question description Date: ______________
in:
swi_6.c (pg
3_54)
swi_7.c (pg
3_55)

Wk 17 Submit Stage-3 Submit Softcopy to Ally:


Final Program and
1) C program by Team Leader.
Submit by 16 Supporting files
submitted to 2) Proj Description/Dialogs by
Jul
ALLY. Team partner.
Friday
Checklists for Hardcopy(in
order):
1) Progress Tracking Form
_____
2) Source of materials
_____
3) Project description
_____
4) Sample dialogs
_____
5) C program
_____
Date: ______________

We declare that we undertook the project sourcing and program development works
conscientiously without infringing copyright of other people’s works and allowing other people to
do any parts of our project. We also note that zero marks will be awarded for plagiarism.
Signature (Leader): ____________________ Signature (Member) : ____________
Source of materials

(J):
https://codereview.stackexchange.com/questions/38
105/battle-game-simulation

(S)
C programming textbook
http://go4quiz.com/1436/singapore-quiz-questions-
and-answers/
http://easyscienceforkids.com/singapore-quiz-fun-
free-easy-general-knowledge-quiz-for-kids-about-
singapore/
https://wehavekids.com/education/Multiple-Choice-
Quiz-How-well-do-you-know-animals-suitable-for-
kids
Project Description

Stage1(J): A construction of inspired childhood


games – Pokemon. The program made used of
math library to accurately counts for the health-
damage counter. A couple of functions to display the
choice given (attack, defense & special). Random
generator is also used to counter the choice
selected.

Stage1(S): Made a set of sample quiz questions on


public transportation using multiple if else branching
and collated the marks with if else as well. In order
to merge for stage 2, and make a better question, I
left out a few questions and changed the questions
so that it is more interesting but retained the original
code.

Stage 2: A combination of quiz and game where


user have to complete the quiz in order to get to play
the quiz. Quiz content consists of a total of 4 general
knowledge questions using if-else for answer
selection and displaying of questions and remarks,
and switch case for yes/no proceeding to answering
the quiz and lastly printf, scanf functions to display
and show questions and input choices from user.
Quiz questions were changed to make it more
interesting. Used switch to prompt user to ask
whether they want to play the game. Also improvise
a small loop to prompt the user to rethink their
choice if they answered no and if they answered yes
on the second time they are redirected to the quiz.

Stage 3: Susu’s program, the general knowledge


quiz, is converted into a function the (int
ThirdMain(void) function) and this function accepts
score as a return value. When the user initially
enters Y when the program prompts user to take the
quiz, the function will be called. Afterwards, the
score would be returned into the main function, and
if the tabulated score is less than 2, the user will be
denied to try the game. If the score is 2 or more, the
user can then proceed with the game. However,
upon failing the quiz, the user will be asked to take
the quiz again, this is done through another if-else.
Upon putting no, the program will end with a bye.
However, if the user enters yes, a loop will begin
with variable being b which is initialised to be (b=0;)
and the test condition to be while (b==0). Upon
passing the quiz, Jolene’s game will be called and
the loop will end by making b=1 when the quiz is
passed. However, when the quiz is failed, the loop
will continue until the user passes the quiz. as the
value b remains 0. When the user is able to score 2
or more, he or she can finally play the game.
Sample dialogues:
1: when no is selected
twice

2: when yes is selected and user passes the quiz and select 3
throughout
3: User passes the quiz and selected a mixture of moves
throughout the game
4: When user fails the quiz and chose to exit

5: When user fails the quiz but wants to retry the quiz
6: when user enters no, he will be prompted and when he selects
yes, it redirects to the question

Potrebbero piacerti anche