Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 44

Introduction

Spreadsheet is very important and need to our life. As it is mainly used in business field. As it is very
difficult to make spreadsheet. It need many knowledge to make. Spreadsheet is a software which is
made by using various code. It contain 26 by 26 grid used for calculation. User are allowed to calculate
their work own it. With the help of this software it will be easier in our works.

TASK 1

This program Simple Spreadsheet contains many code/algorithm which makes the company
satisfy with all the requirement. This program contains many technique like function, objects,
classes, loop any many more.
Function: A function is a section of name in a program which perform specific task or we can
say it is a type routine.
Selection: This program allows us to expression or value to execute. It control flow of the
program
Loops: It help us in executing a statement until it is satisfied. It help in doing more amount of
task.
Class: It create a individual objects. We can say it a group of objects same type property.

Now, given below shows the all the code to create simple spreadsheet and all requiredments
are fullfilled which the assignments have asked. Below shows the screenshot of source code of
spreadsheet of 26 by 26 grid
Figure 1: Spreadsheet design

Spreadsheet of design and its code is shown below:

Figure 2: code of spreadsheet


From the above source code simple spreadsheet is created which is shown below:

Figure 3: Spreadsheet
Figure 4: Class All Operation
Figure 5: class grid

Figure 6: class operation


Figure 7: Class Unit test
Figure 8: Complete spreadsheet

Four feature of OOP are shown below:

 Encapsulation: It gives us the knowledge of bundling of data and the work in one unit.
Figure 9: Encapsulation

 Inheritance: It is a programming language which help us to derive a class from next


class with attributes or methods.

Figure 10: Inheritance


 Polymorphism: It is a main concept of OOP.

Figure 11: Polymorphism

 Abstraction: It is a main idea of OOP. It handle useless data or details.

Figure 12: Abstraction

Now adding formula in spreadsheet and the screenshot is shown below:


Now, adding formula of SUM as shown below:

Figure 13: Inserting SUM


Now, using the formula of mean as shown below:

Figure 14: Inserting mean


Now, using the formula of the median:
Figure 15: Inserting median
Now, using the formula of mode as shown below:

Figure 16: Inserting mode


Now, using the formula of multiply as shown below:
Figure 17: Inserting multiply
Showing barchart of seleted data as shown below:
Figure 18: Bar chart
TASK 2: Testing

Black Box Testing: It a testing which is tested by looking code structure, details and information of path.
In this testing simply the initial code is tested. If any problem are shown then they are re-tested. It will
test only the selected inputs given by the user.

Testing

Serial Number Description Expected Result Actual Result Pass/Fail


1 Incomplete grid If any grid is not All grid where Pass
26 by 26 is not completed error complete of 26 by
allowed will occur 26

Figure 19: Complete Spreadsheet

Serial Number Description Expected Result Actual Result Pass/Fail


2 Incorrect answer If any formula is Error is occurred Fail
is not allowed wrong then as wrong formula
answer in was inserted
incorrect
Figure 20: Incorrect formula

Serial Number Description Expected Result Actual Result Pass/Fail


3 Testing the SUM If correct formula Error was not Pass
in decimal point is implemented occurred as the
then error may result was shown
not occur as expected

Figure 21: Inserting formula


Figure 22: Correct answer was displayed

Serial Number Description Expected Result Actual Result Pass/Fail


4 Testing the Mode If correct formula Error was not Pass
in the is implemented occurred as the
spreadsheet then error may result was shown
not occur as expected
Figure 23: Inserting mode formula

Figure 24: Showing answer of Mode


Serial Number Description Expected Result Actual Result Pass/Fail
5 Testing the Mean If correct formula Error was not Pass
in the is implemented occurred as the
spreadsheet then error may result was shown
not occur as expected

Figure 25: Using formula of mean

Figure 26: Answer of mean

Serial Number Description Expected Result Actual Result Pass/Fail


6 Testing the If correct formula Error was not Pass
Multiply in the is implemented occurred as the
spreadsheet then error may result was shown
not occur as expected
Figure 27: Solution of Multiply

Figure 28: Answer of Multiply

Serial Number Description Expected Result Actual Result Pass/Fail


7 Testing the If correct formula Error was Fail
Multiply in the is implemented occurred as the
spreadsheet using then error may result was shown
incorrect syntax not occur as expected
Figure 29: Error of Multiplication

Figure 30: Multiplication with error syntax


Serial Number Description Expected Result Actual Result Pass/Fail
8 Exiting the If code is correct Error was not Pass
Spreadsheet by then it will be exit shown as it was
clicking exit or error will be exited
button shown

Figure 31: Clicking exit button


Figure 32: Correct syntax of exit

Serial Number Description Expected Result Actual Result Pass/Fail


9 Opening new If code is correct Error was shown Fail
spreadsheet by then it will be as there was
clicking on the created new or incomplete grid
new option error will be
shown
Figure 33: Incomplete Grid

Serial Number Description Expected Result Actual Result Pass/Fail


10 Using incorrect If code is correct Error was shown Fail
syntax or formula then it will be as there was
of Sum shown else error incorrect formula
will be occur

Figure 34: Incorrect syntax


Figure 35: Error shown

Serial Number Description Expected Result Actual Result Pass/Fail


11 Using formula If code is correct Error was not Pass
and checking the then it will be shown as there
Bar Chart whether shown else error was correct
it will display or will be occur formula
not
Figure 36: Showing Bar Chart

Serial Number Description Expected Result Actual Result Pass/Fail


12 Using formula If code is correct Error was not Pass
and checking the then it will be shown as there
Median whether shown else error was correct
it will display or will be occur formula
not
Figure 37: Using Median syntax

Figure 38: Showing result


Serial Number Description Expected Result Actual Result Pass/Fail
13 Using formula If code is correct Error was not Pass
and checking the then it will be shown as there
Bar chart whether shown else error was correct
it will display or will be occur formula
not

Figure 39: Bar chart number

Figure 40: Showing details of A1, B1, C1, D1


Serial Number Description Expected Result Actual Result Pass/Fail
14 Using formula If code is correct Error was not Pass
and checking the then it will be shown as there
Sum in in Column shown else error was correct
whether it will will be occur formula
display or not

Figure 41: Checking Sum in Column

Figure 42: Answer of Sum


Serial Number Description Expected Result Actual Result Pass/Fail
15 Using formula If code is correct Error was not Pass
and checking the then it will be shown as there
Mean in in shown else error was correct
Column whether will be occur formula
it will display or
not

Figure 43: Value of mean in column way

Figure 44: Shown the answer of mean

Here are the 15 testing of spreadsheet with error and without as shown above
Now, testing the unit testing of all operation are shown below:

Figure 45: Testing Multiply


Figure 46: Testing Mean

Figure 47: Testing Median


Figure 48: Testing Mode
Task 3: Class Diagram

We can say that class diagram is a structural diagram which helps us to show their classes with
their relationship between them. Different class with different attributes is shown. Class Diagram
is very helpful to everyone and for the developers.

Figure 49: UML Class Diagram


Conclusion
Simple Spreadsheet was created by using variety of software like class, function, loop and many
more. I have create the simple spreadsheet as it was asked to make. I have completed all the required
which were given to us. This spreadsheet help in various ways like in office, school, in bank, business
field too. To make it need many idea and knowledge and at last I have completed all the task given to
mw with testing too.

You might also like