Professional Documents
Culture Documents
Excel Project
Excel Project
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.
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.
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.
#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
#Subtraction:
Subtraction of two numbers in H1 fields of sheet and the result of the subtraction
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:
Test ID 2:
Test ID 4:
Test ID 5:
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.
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].