You are on page 1of 39

Contents

Introduction: .......................................................................................................................... 2
Task-1: .................................................................................................................................. 2
Present a grid of text boxes to the user: ............................................................................ 2
Implement the referencing format for individual cells (A1): ................................................. 3
Implement the referencing format for ranges of cells (A1:A5): ............................................ 3
Implement the SUM formula: ............................................................................................. 4
Implement the MEDIAN formula: ....................................................................................... 4
Implement the MEAN formula: ........................................................................................... 5
Implement the MODE formula: .......................................................................................... 6
Support arithmetic functionality between two numbers/ cells as shown in the example above.
.......................................................................................................................................... 6
Task-2: Testing ..................................................................................................................... 7
Blackbox Testing: .............................................................................................................. 7
Whitebox Testing: .............................................................................................................. 9
Task 3 – 25 Marks ............................................................................................................... 11
Class Diagram: ................................................................................................................ 11
Code: .................................................................................................................................. 12
Introduction:
A local company want to launch a product to a market as a Competitors for Google and
Microsoft. Their first, product is like a spreadsheet application like an Excel and google sheets
where user can store the data like: text, numbers and statically data etc and they want us to
develop an application from a concept as a proof for investors to convince them so that their
funding are well secured. Product has to be developed in a fixed amount or budget.
Basically, it is like an Excel sheets where all the text field are aligned in 26*26. Basically, user
can perform arithmetic calculations like add, subtract, multiply, Divide etc. User also perform
various Static preformation like: Mode, Median, Average, Sum, Mean etc. based on the valued
of others text fields etc. Along with that validation also should be done if user enters others
than defined functions in this software error message should also be displayed. Task is done
by fulfilling all the requirements and limits. This system also should be fully tested from
Blackbox and Whitebox testing along with Unit testing and etc.
All the documents are mainly categorized intro three sections task1, task2 and task3 etc.
Task1 proves the complete description of an program and how to use it, task 2 shows the
testing i.e both Blackbox, Whitebox and unit testing etc. while task3 shows the documentation
like class diagram of system. Above from these full code of a system is also given.

Task-1:
The program is made by fulfilling all the requirement as much as possible with perfection. All
the process and explanation with pictures are also mentioned here. All the task is done and
full document is in the below.

Present a grid of text boxes to the user:


Basically, In the program there is a grid of textboxes with 26*26 layout. 26 textboxes are in the
horizontally with name ascending from A-Z. another 26 textboxes in vertically from 1-26. It is
just like an excel sheets.
Figure 1:Grid Boxes of TextFields

Implement the referencing format for individual cells (A1):


Referncing format in the A1 cells are done and sum of two data are done by referncing the
format of two data. Data should be entered justlike shown in the below pictures.

Figure 2:Referencing the format in A1

3:Value after Referencing

Implement the referencing format for ranges of cells (A1:A5):


Referencing the format of ranges from A1 to A5 by an multiplicaation insinct and the result of
that instict in the second figure. Data should be entered justlike shown in the below pictures.

Figure 4:Referencing the format A1:A5

Figure 5:Results of referencing format A1:A5


Implement the SUM formula:
 Sum formula basically add the values of data more than one like a+b. Data should be
entered justlike shown in the below pictures.
 First image shows the values in the fields in A1 and B1 and third one of C1 fields with
the functions of Sum of A and B with shown syntax.
 Second figure shows the given result sum in dialogue and third figure with final result
sum in C.

Figure 6:Initial Sum Figure 7:Message Sum Dialogue

Figure 8:Sum Results

Implement the MEDIAN formula:


Median is a number in statics that basically tell the middle of given data set. Its formula is
(n+1)/2 where ‘n’ is a number of items in set.
2 and 5 are the value entered in A1 and B1 while D is Median value of these two.
In Figure 5: values are given in the sheets while in figure 6 a dialogue is shown with median
value.
In Figure 7: In D1 Median value is set on this D1 Fields.
Data should be entered justlike shown in the below pictures.

Figure 9:Median Intial Figure 10:Median Dialogue

Figure 11:Median final data


Implement the MEAN formula:
Mean is an average value of the given data set. It’s given formula is x̄ = (Σ xi ) / n where Σ xi=
sum of all the values and n= number of items.

 There are data in the fields of a sheet and E1 is a field where mean is calculated from
A1 and C1 fields by entering given value as in figure.
 Figure 9 is a dialogue message with mean value while figure 10 is the mean value set
on Sheet fields.
 Data should be entered justlike shown in the below pictures.

Figure 12:Mean Original Data Figure 13:Mean Dialogue

Figure 14:Mean value in text field is set


Implement the MODE formula:

The mode is defined as the value in the data, which occur the greatest number of times in an
array of data. (ref mode)
Two values are entered in F1 fields of sheet i.e A1 and B1 fields i.e 1 and 3 respectively. Data
should be entered justlike shown in the below pictures.

Figure 15:Mode value calculations

Results of the mode calculatiion of these two values.

Figure 16:Mode value results

Support arithmetic functionality between two numbers/ cells as


shown in the example above.
Arithmetic Functionality are basically Add, Subtract, Multiply and subtract etc. between two
numbers. Data should be entered justlike shown in the below pictures.
#Multiplication:
Two number are multiplied to F1 fields and after that it will give results.

Figure 17:Multiplication between two number

Figure 18:Multiplication Result between two data

#Addition:
Two numbers are added i.e 2+4 in G1 fields and data is shown and setup in G1 text fields.
Figure 19:Addition done

Figure 20:Addition results

#Subtraction:
Subtraction of two numbers in H1 fields of sheet and the result of the subtraction

Figure 21:Subtraction of two numbers

Figure 22:Subtraction results

Task-2: Testing
Testing is a phenomenon of appraising system or it’s components with the intent to find
whether it matches or meet the requirement or not. There are many types of testing approach
but we follow the two of them here. Testing is executing a system in order to identify any gaps,
errors, or missing requirements in contrary to the actual requirements. (ref test)

Blackbox Testing:
It is defined as the testing technique in which functionality of the application under test. (AUT)
is tested without looking at the internal code structure, implementation details and knowledge
of internal path of the software (ref Blackbox). It basically focusses on input and output.
Test ID 1:

Figure 23:Sum of two data Figure 24:Result of Sum

Test ID 2:

Figure 25:Test of Media Figure 26: Result of test of Median value


Test ID 3:

Figure 27:Testing two Parameters

Figure 28: Result of two test

Test ID 4:

Figure 29:Test of Addition of two data

Figure 30: Result of test of addition of two data

Test ID 5:

Figure 31:Test of Arithemetic Subtraction of two Number

Figure 32:Result of test of two arithmetic subtraction of two data

ID Test Case Test Data Expected Data Actual Data Status


1 Test for Sum of two data 2 and 5 7 7 Passed
2 Test for Median of two data 2 and 5 3.5 3.5 Passed
3 Test for Mean of Two data 2 and 7 4. 4. Passed
666666666666667 666666666666667
4 Test for Arithmetic Multiplication 2 and 3 6 6 passed
of Two data
5 Test for Arithmetic Addition of 2 and 4 6 6 passed
two data
6 Test for Arithmetic Multiplication 8 6 2 passed
of two data

The testing done for this and it’s process image is given in above and respective testing Id is
also given.
Whitebox Testing:
White boxing is such a testing technique that examines the structure of an program and
basically derives the test data from the program or logic. I basically test whether the code is
performing according to requirement and criteria meet.
NUNIT:
It is same like JUnit Like in Java. It is an evolving and open source testing approach designed
for writing and running the test in Microsoft .net programming languages and it’s respective
frameworks. It is an aspects of the Test development (TDD) approach.
ID Test Case Test Data Expected Data Actual Data Status

1 Test Case for adding the two numbers i.e First parameter:10 15 15 Passed
Sum Second parameter:5
2 Test Case for Subtracting two numbers i.e First parameter:10 5 5 Passed
Subtraction Second parameter:5
3 Test Case for Multiplying two Numbers First parameter:10 50 50 Passed
Second parameter:5
4 Test Case for Calculating Mean Value Data: 5,10,15 10 10 Passed
5 Test Case for Calculating the Mode value Data:5,5,15,15 10 10 passed

Testing Log:
The testing log of all the test is in the below images where all the status of a test is given.
Basically, five testing are done and process is done according to upper table values and
gained respective results.

Figure 33:Testing Log


Code For Testing:

Figure 34:NUnit Testing


Task 3 – 25 Marks
Class Diagram:
Class diagram is a diagram that clear out the structure of a specific system by modeling its
operations, classes and attributes and relationship amid the objects. It was a basically a
standardized model which is used to illustrates an object-oriented programming method.
It basically has a two main Classes and their brief discussion are:
Calculations: In this class all the business logic is done like defining attributes, variable and
methods.
Excel: It is a class where the user interface or view is defined and it is the thing that user see
from their eyes. All the thing users is defined here. In this class Calculations is used through
the direct associations as show in the Class diagram. It has some defined Constructors,
variables, attributes and inbuilt function needed for the UI.
Direct association is used from the class Excel of Calculations class to use the Calculation
class variables, methods and etc.

Figure 35: Class Diagram of an Excel Program


Code:

Calculation Class: It is the class where all the attributes, variables and functions are written.
It contains the business logic that are implemented later in the Excel class which is view
sections.
Excels: It is the class that contain all the component related to the View of GUI or graphical
interface that can see by the users. It contains many thing generated automatically while
creating an GUI and many custom made methods.
References:

1. Guru99.com. (2019). What is BLACK Box Testing? Techniques, Example & Types.
[online] Available at: https://www.guru99.com/black-box-testing.html [Accessed 27
Jul. 2019].

2. www.tutorialspoint.com. (2019). Software Testing Tutorial. [online] Available at:


https://www.tutorialspoint.com/software_testing/ [Accessed 27 Jul. 2019].

3. www.tutorialspoint.com. (2019). Mode Program In C. [online] Available at:


https://www.tutorialspoint.com/learn_c_by_examples/mode_program_in_c
[Accessed 27 Jul. 2019].

You might also like