Problem Solving and Programming CSE1001
Problem Solving and Programming CSE1001
Prof. Tulasi Prasad Sariki
September 17, 2019
Prof. Tulasi Prasad Sariki
CSE1001
September 17, 2019 1 / 42
Introduction to Tuples and Sets
Tuples and Sets
Prof. Tulasi Prasad Sariki
CSE1001
September 17, 2019 2 / 42
Introduction to Tuples and Sets
Problem
A hospital has received a set of lab reports. Totally five tests are conducted in the lab and the report is prepared in such a way that the nth number correspond to value of testn. Given the details of a test made for a patient, write an algorithm and the subsequent Python program to print if the test result is normal or not normal by referring the values in Table. Since the value is sensitive, provide a mechanism so that the values do not get altered.
Name of the Test Test1 Test2 Test3 Test4 Test5
Minimum Value 20 35.5 12 120 80
Maximum Value 30 40 15 150 120
Prof. Tulasi Prasad Sariki
CSE1001
September 17, 2019 3 / 42
Introduction to Tuples and Sets
Input
PAC For Lab Test Problem
Processing
Output
Test name and a Check if the observed Print 'Normal' or
pair of values in- value is in the range of 'Abnormal'
dicating the mini- permissible values for the
mum and the max- test and print 'Normal' or
imum value for the 'Abnormal'
five tests. Name
of the test and the
value observed
Prof. Tulasi Prasad Sariki
CSE1001
September 17, 2019 4 / 42
Introduction to Tuples and Sets
Pseudocode - For Lab Test Problem
FOR i =0 to 5 READ test Namei READ minimumi READ maximumi Map test Namei to minimumi and maximumi
READ test Name Chk READ observed Value END FOR IF observed Value>min of test Name Chk and observed Value ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- problem solving methods
- types of problem solving methods
- real life problem solving worksheets
- 5 why problem solving form
- 20 problem solving techniques
- list of problem solving techniques
- problem solving methods and techniques
- systematic problem solving examples
- list of problem solving tools
- problem solving examples in life
- examples of problem solving situations
- free problem solving skills worksheets