Section: Bugs in hospital project Review the flowchart, pseudocode, and C++ code from the hospital project and provide information of 1. The line number or flowchart node the bug occurs in. 2. What type of bug this is. 3. How the bug affects the program. 4. A fix for the bug. The code has been provided on the following pages.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Section: Bugs in hospital project
Review the flowchart, pseudocode, and C++ code from the hospital project and provide information
of
1. The line number or flowchart node the bug occurs in.
2. What type of bug this is.
3. How the bug affects the program.
4. A fix for the bug.
The code has been provided on the following pages. 

M Gmail
E
PDF CMP1041_Assessment_2_Brief_Ps x PDF CMP1042_Assessment_3_CaseStu X PDF CMP1041_Assessment_3_Brief_W X +
Ⓒ File | C:/Users/dell/Downloads/CMP1041_Assessment_3_Brief_Written_Assignment_v2.0_12052022%20(1).pdf
I
YouTube
6 of 13 Q
Maps
Type here to search
Untitled Project - S...
LO
New Tab SST Plagiarism Checker... 19
+
0: Start
1:
ܗ ܣ ܬ ܩ ܩ ܝ ܣ ܘ ܐ
2:
3:
4:
5:
6:
7:
8:
9:
10: Stop
IF TSH> 5.0
}
CD Page view
//Hypothyroidism (underactive thyroid), Hyperthyroidism (overactive thyroid)
//TSH normal values are 0.5 to 5.0 mIU/L.
O
//lf TSH is over 5.0 thyroid is underactive, the patient may have Hypothyroidism.
//lf TSH is less than 0.5 thyroid is overactive, the patient may have Hyperthyroidism .
READ TSH level
ELSE IF TSH < 0.5
#include <iostream>
using namespace std;
int main() {
//define TSH variable as a real number
float TSH=0.0;
//Prompt the user to input TSH
PROMPT "Alert: Patient may have Hyperthyroidism"
} else {
D (135) (ENG SUB] Ch...
A Read aloud | TAdd text
PROMPT "Alert: Patient may have Hypothyroidism"
cout<<"Input TSH value: ";
//Read TSH value
cin >> TSH;
if (TSH> 5.0){
cout << "Alert: Patient may have Hyperthyroidism";
}else if (TSH < 0.5){
cout << "Alert: Patient may have Hypothyroidism";
I
return 0;
Onboarding | Data... ; Self learning
cout << "Thyroid function is normal ";}
O
P
Draw
W
Networking-2(1).pdf
Highlight
R
Erase
m
76°F Mostly sunny
dmaic
만
你
50
{"
60
Activate Windows
Go to Settings to activate Windows.
›)
N
{}
66
4:58 PM
10/17/2022
X
E
♂
A
FD
Transcribed Image Text:M Gmail E PDF CMP1041_Assessment_2_Brief_Ps x PDF CMP1042_Assessment_3_CaseStu X PDF CMP1041_Assessment_3_Brief_W X + Ⓒ File | C:/Users/dell/Downloads/CMP1041_Assessment_3_Brief_Written_Assignment_v2.0_12052022%20(1).pdf I YouTube 6 of 13 Q Maps Type here to search Untitled Project - S... LO New Tab SST Plagiarism Checker... 19 + 0: Start 1: ܗ ܣ ܬ ܩ ܩ ܝ ܣ ܘ ܐ 2: 3: 4: 5: 6: 7: 8: 9: 10: Stop IF TSH> 5.0 } CD Page view //Hypothyroidism (underactive thyroid), Hyperthyroidism (overactive thyroid) //TSH normal values are 0.5 to 5.0 mIU/L. O //lf TSH is over 5.0 thyroid is underactive, the patient may have Hypothyroidism. //lf TSH is less than 0.5 thyroid is overactive, the patient may have Hyperthyroidism . READ TSH level ELSE IF TSH < 0.5 #include <iostream> using namespace std; int main() { //define TSH variable as a real number float TSH=0.0; //Prompt the user to input TSH PROMPT "Alert: Patient may have Hyperthyroidism" } else { D (135) (ENG SUB] Ch... A Read aloud | TAdd text PROMPT "Alert: Patient may have Hypothyroidism" cout<<"Input TSH value: "; //Read TSH value cin >> TSH; if (TSH> 5.0){ cout << "Alert: Patient may have Hyperthyroidism"; }else if (TSH < 0.5){ cout << "Alert: Patient may have Hypothyroidism"; I return 0; Onboarding | Data... ; Self learning cout << "Thyroid function is normal ";} O P Draw W Networking-2(1).pdf Highlight R Erase m 76°F Mostly sunny dmaic 만 你 50 {" 60 Activate Windows Go to Settings to activate Windows. ›) N {} 66 4:58 PM 10/17/2022 X E ♂ A FD
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education