Arduino_CSE ece ppt for working and principal of arduino.ppt
Â
Aakarsh 038 csit142_lab_work (1)
1. Software Engineering and Modelling
CSIT142
Date of Submission- 17/03/2021
Practical Record
Submitted To:
Mr. Shambhu Kumar Jha
By
Aakarsh Mehrish (B.Sc.IT 4)
A1004919038
DEPARTMENT OF AMITY INSTITUTE OF
INFORMATION AND TECHNOLOGY
3. Question-1:
Program to Find the Transpose of a Matrix.
Test Case Table:
Test
case
id
Test
Case
Written
by
Date on
Which Test
case is
developed
Test case
Executed
by
I/P Data set Expected
output
Actual
o/p
Remarks
TC1 Aakarsh 05-01-2021 Aakarsh Enter rows and columns: 3
3
Enter matrix elements:
Enter element a11: 2
Enter element a12: 3
Enter element a13: 4
Enter element a21: 5
Enter element a22: 6
Enter element a23: 7
Enter element a31: 8
Enter element a32: 9
Enter element a33: 1
Transpose
of the
matrix:
2 5 8
3 6 9
4 7 1
Transpose
of the
matrix:
2 5 8
3 6 9
4 7 1
successful
TC2 Aakarsh 05-01-2021 Aakarsh Enter rows and columns: 0
0
Please
enter
valid rows
and
columns
error Fail
TC3 Aakarsh 05-01-2021 Aakarsh Enter rows and columns: x Please
enter
valid rows
and
columns
error Fail
TC4 Aakarsh 05-01-2021 Aakarsh Enter rows and columns: 2
3
Enter matrix elements:
Enter element a11: 10
Enter element a12: 20
Enter element a13: 30
Enter element a21: 40
Enter element a22: 50
Enter element a23: 60
Transpose
of the
matrix:
10 40
20 50
30 60
Transpose
of the
matrix:
10 40
20 50
30 60
successful
4. Question-2:
C program to find the biggest of three numbers
Test Case Table:
Test
case id
Test Case
Written
by
Date on
Which Test
case is
developed
Test case
Executed
by
I/P Data set Expected
output
Actual o/p Remarks
TC1 Aakarsh 05-01-2021 Aakarsh Enter the
values of
num1,
num2 and
num3
100
10
1
num1 = 100
num2 = 10
num3 = 1
num1 is the
greatest
among three
num1 = 100
num2 = 10
num3 = 1
num1 is the
greatest
among
three
Pass
TC2 Aakarsh 05-01-2021 Aakarsh Enter the
values of
num1,
num2 and
num3
-10
20
111
num1 = -10
num2 = 20
num3 = 111
num3 is the
greatest
among three
num1 = -10
num2 = 20
num3 = 111
num3 is the
greatest
among
three
Pass
TC3 Aakarsh 05-01-2021 Aakarsh Enter the
values of
num1,
num2 and
num3
20
20
20
Please try
again, all
values are
same.
num1 = 20
num2 = 20
num3 = 20
num3 is the
greatest
among
three
Fail
TC4 Aakarsh 05-01-2021 Aakarsh Enter the
values of
num1,
num2 and
num3
x
Please give
valid input.
num1 = 0
num2 = 1
num3 = 0
num2 is the
greatest
among
three
Fail
5. Question-3:
Program to Find Roots of a Quadratic Equation.
Test Case Table:
Test
case
id
Test
Case
Written
by
Date on
Which
Test case
is
developed
Test case
Executed
by
I/P Data set Expected
output
Actual o/p Remarks
TC1 Aakarsh 05-01-
2021
Aakarsh Enter
coefficients
a, b and c:
1
7
12
root1 =
-3.00
and
root2 =
-4.00
root1 = -
3.00 and
root2 = -
4.00
pass
TC2 Aakarsh 05-01-
2021
Aakarsh Enter
coefficients
a, b and c:
1
-2
1
root1 =
root2 =
1.00
root1 =
root2 =
1.00
pass
TC3 Aakarsh 05-01-
2021
Aakarsh Enter
coefficients
a, b and c:
abc
Please
enter
valid
input
root1 = -
1.#R+1.#Ri
and root2
= -1.#R-
1.#Ri
fail
TC4 Aakarsh 05-01-
2021
Aakarsh Enter
coefficients
a, b and c:
9x
Please
enter
valid
input
root1 = -
0.00+0.00i
and root2
= -0.00-
0.00i
fail
6. Question-4:
Program to determine the type and area of a triangle.
Test Case Table:
Test
case id
Test
Case
Written
by
Date on
Which
Test case
is
developed
Test case
Executed
by
I/P Data
set
Expected
output
Actual o/p Remarks
TC1 Aakarsh 05-01-
2021
Aakarsh Enter
sides of
a
triangle:
a: 8
b: 9
c: 10
Triangle is
scalene.
Area of
triangle
34.20.
Triangle is
scalene.
Area of
triangle
34.20.
pass
TC2 Aakarsh 05-01-
2021
Aakarsh Enter
sides of
a
triangle:
a: 7
b: 7
c: 7
Triangle is
equilateral.
Area of
triangle
21.22.
Triangle is
equilateral.
Area of
triangle
21.22.
pass
TC3 Aakarsh 05-01-
2021
Aakarsh Enter
sides of
a
triangle:
a: a
Please
enter valid
input
b: c: Sides
don't make
a triangle.
Fail
TC4 Aakarsh 05-01-
2021
Aakarsh Enter
sides of
a
triangle:
a: 4%
Invalid
input
b: c: Sides
don't make
a triangle.
fail
8. A Patient Information System for Mental
Healthcare
1. Introduction:
1.1 Purpose:
The purpose of this document is to build an online system for a healthcare to manage
the information of mental health patients to facilitate their treatment.
1.2 Intended Audience and Reading Suggestions:
This project is a prototype for a patient information system for mental healthcare and it
is restricted within college premises. This is based on a case study for the lab work.
This project is useful for the healthcare staff, government health service managers,
patients and their relatives.
1.3 Project Scope:
The purpose of the online patient information system is to facilitate the treatment of the
mental health patients and to create a convenient and easy-to-use application for
healthcare staff, trying to monitor the patients.
9. 2. User Requirements:
Name of User Group Description
Receptionists • Making appointments
• Maintaining Record of Patient
• Making re-appointments
Clinical Staff • Includes (Doctor, Nurses and other staff)
• Doctor access and manage your medical
treatment
• Nurses provide ongoing care
Health Visitor • Providing health advice
and health education programmes.
• Visiting Hospital on daily basis
• Promoting good mental health.
Management Staff • Using Advance Technology
• Develop managed care system
• Identify areas of vulnerability
3. System Requirements:
System Requirements Description
Advance Technology • Use of Advance software
• Time to time Updates
Security • All PCs used to run the MHCPMS
system shall have a static IP address and
access and update requests shall only be
accepted from PCs whose address is
registered with the server.
10. 4. Functional Requirements:
4.1 The system should be able to record all the details regarding the appointment of the
patient and its status if he/she missed the appointment or not. It should be able to
generate repeat prescriptions for patients when these are requested.
4.2 The system should be able to give access to the clinical staff to read and update the
records of the patient, who is attended for a consultation, with details of the consultation
and the treatment prescribed. It should also allow the doctors to access these records
outside of consultations.
4.3 The system must include a role-based access control system and must only allow the
system users to access the information of their concern. It should take regular backups
of the system information and store it at a secure location different from the main data
server.
4.4 The system shall generate weekly reports for each clinic showing the number of patients
attending the clinic on each day and the total number of patients who have attended for
mental health treatment. The reports should also summarize the total number of patients
suffering from each condition and the total amount of each drug prescribed as
medication.
5. Non-Functional Requirements:
5.1 Safety:
Patients may cause harm to themselves or others. The provisions of the Mental Health
Act must be considered.
5.2 Usability:
The system must be used by a range of staff, often working under time pressure and with
different levels of experience using computer-based information systems.
5.3 Privacy:
System shall maintain the patient privacy according to the Data Protection Act and local
ethical guidelines.
5.4 Operational Cost:
The maintenance costs which include hardware and software costs and running costs
should be reasonable.
11. 6. Use Case Diagram:
Receptionist
Clinical staff
Medical record staff
Health services manager
Patient
12. 7. Data Flow Diagram
Only
concerned
data
Only concerned data
Only concerned data
Patient
Health services
manager
Medical record
staff
Clinical staff
Receptionist
0
Make the
appointment
1.2
Patient
appointment
details
1
Record data and
update
1.1
Patient’s behavior,
treatment and
prescription details
4
Weekly report of
patient’s
information
3
Backup of system
database
2
Store data (Data
center)
(All information)
Only
concerned
data
14. Website – W3Schools.com
Date – 9th
March
Time – 9:15 am
1. Using DeadLinkChecker.com, 2000 URLs were tested, 1983 links were
OK while 7 were broken.
2. The website uses simple GUI that is user-friendly.
3. The content on website uses correct grammar and spellings.
4. The website uses consistent font.
5. The website uses colour combination of green and white and it has the
same layout on (Internet Explorer and Chrome). It also has appropriate
version for mobile.
6. All title bar icons lead to relevant pages.
7. The bar works fine.
8. Scroll bar is present on the website and it is working properly.
15. Website – chordify.com
Date – 9th
March
Time – 9:15 am
1. Using DeadLinkChecker.com, 31 URLs were tested, 31 links were OK.
2. The website uses simple GUI that is user-friendly.
3. The content on website uses correct grammar and spellings.
4. The website uses consistent font.
5. The website uses colour combination of blue and white and it has the
same layout on (Internet Explorer and Chrome). It also has appropriate
version for mobile.
6. All title bar icons lead to relevant pages.
7. The bar works fine.
8. Scroll bar is present on the website and it is working properly.
***********