COIT20245 Assignment 2: MapAnalyzer - Data Analysis Program
VerifiedAdded on 2025/05/03
|6
|593
|479
AI Summary
Desklib provides solved assignments and past papers to help students succeed.

COIT20245 ASSIGNMENT 2
MAPANALYSER
MAPANALYSER
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Table of Contents
Limitations.......................................................................................................................................3
Test Plan..........................................................................................................................................4
Test results.......................................................................................................................................5
Limitations.......................................................................................................................................3
Test Plan..........................................................................................................................................4
Test results.......................................................................................................................................5

Limitations
This program is built on the concepts of object-oriented programming in Java and this program
has some limitations too. In order to achieve the full functionality of the desired programs, we
implemented concepts of oops like methods, objects, classes, etc. Object-oriented programming
has many limitations and some of them are encountered in this program.
The following are the limitations of this program:
1. This is not suitable for working with large datasets. We have used various algorithms and
programming logic and some them are very accurate when we are dealing with small
dataset but when it comes to a large number of variables and variety of dataset we can no
longer rely on this program. As we have used Array and HashMap for storing the
information. But, in case of the array, we can only use a single type of data throughout
and in map storing large numbers in a single map can become tricky when we have to
perform operations on it. Iteration over a large map or array is a complex process, as we
have to create a number of loops and conditional statements.
2. This program is developed in Java and we all know that Java itself has its limitations. The
compiler is not well optimized which means even though we can develop the perfect
code, it can become void at any instance after running it several times. It takes longer
time to compile which means that when we take a large amount of dataset, it can run our
program obsolete and even crash it.
3. Memory management is an issue with this program which means we have to properly
create objects and classes so that they can be initialized and reused at any required
moment. We have used Array and HashMap for storing the data values which means we
have to keep track of all the data, this program is running in endless loop which means
the data must be kept on reoccurring as many time as we are calling it, so due to
limitations of this programming at some point we will get garbage values instead of
results.
This program is built on the concepts of object-oriented programming in Java and this program
has some limitations too. In order to achieve the full functionality of the desired programs, we
implemented concepts of oops like methods, objects, classes, etc. Object-oriented programming
has many limitations and some of them are encountered in this program.
The following are the limitations of this program:
1. This is not suitable for working with large datasets. We have used various algorithms and
programming logic and some them are very accurate when we are dealing with small
dataset but when it comes to a large number of variables and variety of dataset we can no
longer rely on this program. As we have used Array and HashMap for storing the
information. But, in case of the array, we can only use a single type of data throughout
and in map storing large numbers in a single map can become tricky when we have to
perform operations on it. Iteration over a large map or array is a complex process, as we
have to create a number of loops and conditional statements.
2. This program is developed in Java and we all know that Java itself has its limitations. The
compiler is not well optimized which means even though we can develop the perfect
code, it can become void at any instance after running it several times. It takes longer
time to compile which means that when we take a large amount of dataset, it can run our
program obsolete and even crash it.
3. Memory management is an issue with this program which means we have to properly
create objects and classes so that they can be initialized and reused at any required
moment. We have used Array and HashMap for storing the data values which means we
have to keep track of all the data, this program is running in endless loop which means
the data must be kept on reoccurring as many time as we are calling it, so due to
limitations of this programming at some point we will get garbage values instead of
results.
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Test Plan
Test case
number
Functionality Input Expected
Output
Actual output
1. Display the
record for a
specified
person
The input for this
test case is the id of
the person, which is
stored is an array
that we have
declared in
record.java file
The
expected
output will
be the
details of
the
respective
person
whose id
we will
enter in the
system.
2. Display
records for all
persons with
MAP values
within a
specified
range.
The input provided
will contain two
values of ranging
blood pressure.
The
expected
output will
be the data
of patients
who have
their blood
pressure in
that range.
3. Display the
minimum,
maximum and
median MAP
values
The input will only
be the calling of the
function for all
three values which
are already declared
in the system.
The
expected
output will
be a lowest,
highest and
median
value from
the dataset
of all
person.
4. Exit
Application
The input will only
be calling of exit
function.
The output
will print
“exit…”
and abort
the
program.
Test case
number
Functionality Input Expected
Output
Actual output
1. Display the
record for a
specified
person
The input for this
test case is the id of
the person, which is
stored is an array
that we have
declared in
record.java file
The
expected
output will
be the
details of
the
respective
person
whose id
we will
enter in the
system.
2. Display
records for all
persons with
MAP values
within a
specified
range.
The input provided
will contain two
values of ranging
blood pressure.
The
expected
output will
be the data
of patients
who have
their blood
pressure in
that range.
3. Display the
minimum,
maximum and
median MAP
values
The input will only
be the calling of the
function for all
three values which
are already declared
in the system.
The
expected
output will
be a lowest,
highest and
median
value from
the dataset
of all
person.
4. Exit
Application
The input will only
be calling of exit
function.
The output
will print
“exit…”
and abort
the
program.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Test results
The initial stage of the program, option to choose
For test case 1:
To display the records of a person by their respective id
For test case 2:
For displaying the values between the upper bound and lower bound given by the user
The initial stage of the program, option to choose
For test case 1:
To display the records of a person by their respective id
For test case 2:
For displaying the values between the upper bound and lower bound given by the user

For test case 3:
To calculate the highest, lowest and median values:
For test case 4:
To exit the application:
To calculate the highest, lowest and median values:
For test case 4:
To exit the application:
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide
1 out of 6
Related Documents

Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2025 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.