Sunteți pe pagina 1din 7

IT SBA 2016

Last Edit: 5/19/2016 8:38:34 AM

INFORMATION TECHNOLOGY
School based assessment.
IT SBA 2016
Last Edit: 5/19/2016 8:38:34 AM

Introduction:

In an effort to use what you use in information technology you have been sent to integrate your IT SBA
with other subjects and events at your school. The aim is to integrate it in a meaningful manner as a
tool for your school, or even demonstrating a principle in a subject area.

Problem Solving and programming.

1. In this section, you will use your problem solving skills to create Mathematics tool.

This tool would find the roots of a quadratic equation of the form:

y=
And the roots are given by
IT SBA 2016
Last Edit: 5/19/2016 8:38:34 AM

See the following example on using the equation to solve the formula:

Task: Create a tool to solve quadratic equations

Your program must allow the user to solve any number of quadratic equations. i.e Prompt the user to
enter a set of values for a, b and c and print results to the screen until the user chooses to end this
process.

After the user has ended this process, output results for each set of values in the order entered.

Use the following function from the crt library to calculate square root : sqrt()

For example, the following code will output 5:

writeln (sqrt(25));
IT SBA 2016
Last Edit: 5/19/2016 8:38:34 AM

You must produce the following for your SBA Report:

a. A problem definition. The problem definition serves as a brief overview of what is


required by the problem. It does not solve the problem.
[1 mark]

i. Start your solution. Include supporting evidence for top down stepwise
refinement, i.e an INPUT,PROCESSING, OUTPUT table. [1 mark]

b. When you have settled on a strategy for solving your problem, create an algorithm that
solves the problem.

i. Print the following supporting information for your algorithm:

1. A listing of all variables, their corresponding data types and purpose in


the algorithm.
2. A listing of all constants, their corresponding value, data types and
purpose in the algorithm.

ii. Construct your algorithm. You must include these steps in this order:

1. An identification step: All variables used outlined in b) i) must be listed


immediately after the start. [1 mark]

2. An initialization step: ALL variables must be assigned an initial value at


the start of the algorithm. This includes arrays, all individual array
locations must be initialized. [1 mark]

3. Logic used to solve the problem. Ensure that:

a. The user is prompted before input is requested [1 mark]


b. Store the results of calculation in suitable variables [1 mark]
c. Use suitable loops and selection statements when needed. I.E.
use FOR loops for bounded iteration, WHILE and REPEAT..UNTIL
loops for unbounded iteration.
[2 marks]
d. All required results were outputted to the user. [1 mark]

PRINT the algorithm.

c. Your algorithm must be tested using trace tables.


i. Ensure that all variables and constants in your program is represented in your
trace tables. (include a column for “Output”) [1 mark].
ii. Demonstrate the change in values of variables correctly.[1 mark]
IT SBA 2016
Last Edit: 5/19/2016 8:38:34 AM

iii. You must create trace tables to test all scenarios [2 marks]:

1. The user enters 0 quadratic equations.


2. The user enters a quadratic equation where a = 0.
3. The user enters an equation where b2 is less than 4ac.
4. The user enters an equation where b2 is equal to 4ac.

NOTE: Step 1 above can be accomplished in one trace table, and steps 2 to 4
can be accomplished in another.

Each trace table should be accompanied by an explanation of what is being


tested and the given data.

Print your tables.

d. Use your algorithm to create a program which solves the problem.


i. Your program must compile with no errors. [1 mark]
ii. Use appropriate datatypes for all variables (e.g REAL for input data and
calculated roots, INTEGER for loop indexes or counters, CHAR for Single
Characters or keypresses etc). [2 marks]
iii. Include all variable initialization from your algorithm [1 mark]
iv. Include proper use of sequence from your algorithm[1 mark]
v. Use proper selection statements [2 marks]
vi. Use loops to traverse Arrays [3 marks]
vii. Prompt the user for every interaction.[1 marks]
viii. Make sure your code contains comments; AND Comments for date , Your name
, and a simple description of the program.[1 mark]
ix. Use indentation and proper spacing to make your code readable.[1 mark]

You must print the source code for your program and submit it within your report. Also, submit a soft
copy of your program.
IT SBA 2016
Last Edit: 5/19/2016 8:38:34 AM

Mark
Processes Key Skills Allocation Mark
Algorithm Development
Problem Statement Problem Is clearly defined
that Defines the Problem 1
Representing the solution in
flowchart or pseudocode Start of solution 1
Definition of variables :
identify variables 1
initialize variables 1
Processing:
Request for data 1
storing data 2
apropriate use of selection statements
loops 2
output results 1
Totals 10 0
Trace Table Development
All variables correctly
Constructing the trace table identified and used 1

Apropriate Test Data 1

DataSet Complete
Data set test ALL areas for robustness 2
Data set tests some areas [1]

Change in values correctly demonstrated 1


Totals 5 0

Program Working to Specification


The effectiveness with which the
program achieved
the objective Program Compiled 1

Output
output is correct for all values f teacher's
dataset 2
Output correct for Some Values [1]
The effectiveness with which the
language features Apropriate use of the features of the language
are used to achieve a working
solution Choice of datatypes correct for all variables 2
IT SBA 2016
Last Edit: 5/19/2016 8:38:34 AM

Choice of datatypes correct for Some variables [1]

Appropriate control structure use


appropriate initialization of variables 1
appropriate use of sequence 1
appropriate use of IF then Else 2
inefficient use of if then else [1]

aprop. Use of looping to manipulate arrays to


perform other tasks[1] 3
inefficient use of loop construct [1]
The effectiveness with which the
language Clarity of program

Program documentation through variable


names;
author of the program; date created; simple
are used to achieve clarity statement of the task that the program solves 1

readability, indentation, logical flow of control


easy to follow 1
user friendly 1

Totals 15 0

i
Image taken from http://www.simtutor.com/Algebra_Solve_Quadratic_Equations.php

S-ar putea să vă placă și