Docsity

Programming 2 Guide and Programming C, Study notes of C programming

Toggle sidebar
bg1
Page 1
ASSIGNMENT 1 GUIDANCE
Task 1 - State your simple business problems to be solved (P)
In this part,
- You will state: definition of algorithms, characteristics of algorithm.
- Explain the steps of building an application
- You will have to represent a small and simple problem, why it is needed to be solved and how a
algorithm could help to solve it.
Hint:
o Find the largest/ smallest integer in an array integer
o Find the median of an integer array
o Solve the 1st degree equation or 2nd degree equation
Ect…
(Word limit: 500 – 700 words)
Task 2 - Analyze the problem and design the solutions by the use of suitable methods. (P)
- In this part, you will have to analyze the business problem and turn it into application
requirements such as:
o Specifying the input requirements
o Specifying the output requirements
o Specifying the processing requirements
- Then, you will need to design the algorithm to solve the problem by using suitable diagrams such
as Flowchart.
(Word limit: 700 – 1000 words)
Task 3 - Demonstrate the compilation and running of a menu-based program (M)
- Next, you have to demonstrate how the application is implemented by using suitable
programming language (C#). Source code and screenshots of the program have to be included
with clear explanations.
- You need also explain how the source code is compiled and run in C#.
(No word limit for this part)
Task 4 - Evaluate how the problem is solved from the designed algorithm to the execution
program written by a specific programming language. (D)
- Evaluate how the problem is solved from the designed algorithm to the execution program
written by a specific programming language.
- Test plan with test cases needs to include to make sure that the algorithm works properly.
Test Plan
No.
Test case
Function
Test Data
Expected
output
Actual
output
Result
1.
Verify that sum of two
numbers will be
displayed exactly when
user enter valid two
numbers
Add Two
numbers
- Number 1: 10
- Number 2: 30
Sum: 30
Sum: 30
Pass
(Word limit: 700 – 1000 words)

Partial preview of the text

Download Programming 2 Guide and Programming C and more Study notes C programming in PDF only on Docsity!

Page 1

ASSIGNMENT 1 GUIDANCE

Task 1 - State your simple business problems to be solved (P) In this part,

  • You will state: definition of algorithms, characteristics of algorithm.
  • Explain the steps of building an application
  • You will have to represent a small and simple problem, why it is needed to be solved and how a algorithm could help to solve it. Hint: o Find the largest/ smallest integer in an array integer o Find the median of an integer array o Solve the 1st degree equation or 2nd degree equation Ect…

(Word limit: 500 – 700 words)

Task 2 - Analyze the problem and design the solutions by the use of suitable methods. (P)

  • In this part, you will have to analyze the business problem and turn it into application requirements such as: o Specifying the input requirements o Specifying the output requirements o Specifying the processing requirements
  • Then, you will need to design the algorithm to solve the problem by using suitable diagrams such as Flowchart.

(Word limit: 700 – 1000 words)

Task 3 - Demonstrate the compilation and running of a menu-based program (M)

  • Next, you have to demonstrate how the application is implemented by using suitable programming language (C#). Source code and screenshots of the program have to be included with clear explanations.
  • You need also explain how the source code is compiled and run in C#.

( No word limit for this part)

Task 4 - Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language. (D)

  • Evaluate how the problem is solved from the designed algorithm to the execution program written by a specific programming language.
  • Test plan with test cases needs to include to make sure that the algorithm works properly.

Test Plan

No. Test case Function Test Data Expected

output

Actual

output

Result

1. Verify that sum of two

numbers will be

displayed exactly when

user enter valid two

numbers

Add Two

numbers

- Number 1: 10

- Number 2: 30

Sum: 30 Sum: 30 Pass

(Word limit: 700 – 1000 words)