0% found this document useful (0 votes)
22 views5 pages

Computer Programming Assignment Guide

The document outlines a computer programming assignment focused on developing a simple math program for children aged 10-13 using C#. It includes activities such as explaining APIs, detailing the Software Development Life Cycle, planning the program structure, implementing the program in C#, and testing its components. Additionally, it emphasizes the importance of handling user input errors and suggests improvements based on user experience.

Uploaded by

sexysmacker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views5 pages

Computer Programming Assignment Guide

The document outlines a computer programming assignment focused on developing a simple math program for children aged 10-13 using C#. It includes activities such as explaining APIs, detailing the Software Development Life Cycle, planning the program structure, implementing the program in C#, and testing its components. Additionally, it emphasizes the importance of handling user input errors and suggests improvements based on user experience.

Uploaded by

sexysmacker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Computer Programming Assignment guide

Activity1
● In this point first of all you must describe,what is an API with some
examples to go with it. You must explain your answer mostly in a non
technical way as you have to assume that your client(school) does not
understand complex technical [Link] make things more simpler and
clearer you may include diagrams and provide examples of APIs as well.
● With this task first of all you must define all the stages of the Software
Development Life Cycle according to what is given in the [Link]
may also do additional [Link] the way you must explain at each
stage what are the things that you are likely to carry out as a programmer
when developing the solution to this maths problem.

Activity2
A plan of the program which explains the language constructs which
are to be used within the programme

At this point you need to plan the programme. The programme should be
about simple maths problems as you are developing this for kids with ages
ranging 10-13.

Then you need to think of the language in which it should be written. Since
there should be an interface (explained below) to interact with children,we
strongly recommend C# instead of [Link] if you are fluent with any
other programming language you may do so.

The idea of programme


The idea of the programme should be to include simple maths operations
only (Addition, subtraction,Multiplication & Division) with whole numbers
(integers) [Link] including decimal values would make the things more
complicated to the kids.

You are required to think of your own [Link] just to get you
started consider the following scenario.
Possible scenario
To get an idea of GUI programming in C# you may refer to this [Link]
is an idea only to just give you an idea of how to do GUI based
programming and please do not implement the exact [Link] may use
the below idea.

The programme starts by asking the user's name.


Then the programme should ask for the [Link] the age input by the user
is [Link] the age is between 10-13 the child must select level1.

There are four levels starting with [Link] are 5 questions in level
one.A child will only be able to move to the next level,if they at least score
three out of five or more at each level.

Level1
Level1 consists of 5 addition [Link] the child completes each
question their answers should be checked and an appropriate score should
be given.

If score >3 then


program should exit.

Else
Display the addition score
Should proceed to level 2.

Level2
Level2 consists of 5 subtraction [Link] the child completes each
question their answers should be checked and an appropriate score should
be given.

If score >3 Then


program should exit.
Else
Display the score in Subtraction score
Should proceed to level 3.

Level3
Level3 consists of 5 multiplication [Link] the child completes each
question their answers should be checked and an appropriate score should
be given.

If score >3 Then


program should exit.
Else
Display the multiplication score
Should proceed to level 4.

Level4
Level4 consists of 5 division [Link] the child completes each
question their answers should be checked and an appropriate score should
be given.

If score >3 Then


program should exit.

Else

Display the score in division section


Exit the programme.

How to answer each task in activity 2


● For the first part of the task you need to plan the programme
according to the above [Link] will have to show the major
variables and constants to be used in the programme and major
functions. The easiest way to approach this task would be to first
develop a detailed pseudocode for this programme.
● For the 2nd part of acitvity 2 you need to draw a flowchart.

Activity3
For activity 3 you need to implement the programme in C# with exactly the same
details as the plan in Activity2. If there are any deviations from the original plan
above you must specify them before starting the code.

Activity4
With this activity you need to test each component of the programme which
involves user [Link] compare the actual result vs the expected result
for that particular test [Link] you need to mention whether the test is a
pass or a [Link] will be easier if you show them in a table.

Test Scenario Expected Result Actual result Pass/Fail

User enters age The programme Integer is entered Pass


expects an integer by the user
vale

User enters name The programme By mistake user Fail


expects a string enters a number
value

Similarly you can think of many test scenarios as [Link] doing this task
you can show me the test cases in your draft before submitting your final
solution.

Improvements
For this task it is difficult to determine until you write the programme. But as a
general guide you have to think the improvements to the programme from the
user’s [Link] an example a user may enter a string for the age but your
programme always assume that the user will enter an [Link] happens if a
user enters a string or a character for age by mistake and press [Link] for
example your programme has not written a code to handle this you can mention
this and say it will be updated in the next version.
Like that you need to think of at least 10 cases which I am sure you will find after
completing the programme.

You might also like