0% found this document useful (0 votes)
23 views

Name: Rahul Sharma Roll No. N268 Div: Mba-Tech CS B3 Sap Id: 70471118075 Experiment 1 / Task No.01

The document discusses writing a program for matrix addition in Java. It lists the aim, prerequisites, and outcomes of the program. It then discusses possible reasons for failure of the program, such as entering an invalid matrix size or value, and ways to improve the quality, such as exception handling, allowing for larger sizes and data types, and optimizing loops.

Uploaded by

Rahul Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Name: Rahul Sharma Roll No. N268 Div: Mba-Tech CS B3 Sap Id: 70471118075 Experiment 1 / Task No.01

The document discusses writing a program for matrix addition in Java. It lists the aim, prerequisites, and outcomes of the program. It then discusses possible reasons for failure of the program, such as entering an invalid matrix size or value, and ways to improve the quality, such as exception handling, allowing for larger sizes and data types, and optimizing loops.

Uploaded by

Rahul Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Name: Rahul Sharma Roll No.

N268 Div: Mba-Tech CS B3


Sap Id: 70471118075
Experiment 1 / Task No.01
A.1 Aim: Write a program in java language for Matrix Addition. Introspect the causes for its
failure and write down the possible reasons for its failure. Analyse to improve the quality of
the program by considering its execution time.

A.2 Prerequisite: Coding Knowledge, SE knowledge, OOSE knowledge

A.3 Outcome: Comparison of quality of the software in terms of memory management, time
taken, accuracy etc.

A.4 Theory: Software quality is conformance to explicitly state functional and performance
requirements, explicitly documented development standards, and implicit characteristics that
are expected of all professionally developed software. Quality is fitness for use.

Code:
Output:

A4. Software quality is conformance to explicitly state functional and performance requirements,
explicitly documented development standards, and implicit characteristics that are expected of all
professionally developed software. Quality is fitness for use. 

Possible causes of failure:


● User entering matrix size more than allotted
● User enters a value outsize the integer range
● User enters a character or a floating value as the matrix order or element size
Improving the quality by:
● Making use of exception handling to handle unexpected and run time errors
● Keeping large number for matrix size
● Have float/double for matrix elements to account for decimal or large integer numbers
● Reducing the number of loops for faster execution

You might also like