Question

In: Civil Engineering

Matlab: Write a program that receives the Total Cholesterol, LDL, HDL and Tryglycerides of a patient...

Matlab: Write a program that receives the Total Cholesterol, LDL, HDL and Tryglycerides of a patient and then use IF and AND (&&) to determine that patient is healthy or not using the following the normal level of

Total Cholesterol : below 200 mg/dl

LDL : below 130 mg/dl

HDL : above 35 mg/dl

Tryglycerides : below 200 mg/dl

If the patient is healthy show “Good health”, if not then show “See a Doctor”.

Solutions

Expert Solution

MATLAB CODE:

function HealthTest()

    %prompt and read Total Cholesterol from the user

    totalChol = input('Enter value of the Total Cholesterol : ');

    %prompt and read LDL from the user

    LDL = input('Enter value of the LDL : ');

    %prompt and read HDL from the user

    HDL = input('Enter value of the HDL : ');

    %prompt and read Tryglycerides from the user

    Tryglycerides = input('Enter value of Tryglycerides : ');

    %display message to the user

    display('Test Result : ')

    %check all the value are normal or not

    if (totalChol < 200) && (LDL < 130) && (HDL > 35) && (Tryglycerides < 200)

        %display message to the user

        display('Good health')

    else

        %display message to the user

        display('See a Doctor')

    end


Related Solutions

Total cholesterol content in HDL is higher than that of LDL. Group of answer choices True...
Total cholesterol content in HDL is higher than that of LDL. Group of answer choices True False Flag this Question Question 581 pts LDL uptake in cells is mediated by receptors. Group of answer choices True False Flag this Question Question 591 pts Both even- and odd-carbon chain fatty acids are catabolized by beta-oxidation. Group of answer choices True False Flag this Question Question 601 pts Carnitine is a carrier for fatty acid for transportation from the cytosol to the...
why is HDL sometimes called "good cholesterol" and LDL termed "bad cholesterol"? and what are some...
why is HDL sometimes called "good cholesterol" and LDL termed "bad cholesterol"? and what are some lifestyle changes that can be made to encourage a healthier ratio of HDL: LDL?
Distinguish between "good" and "bad" cholesterol. In your discussion, include descriptions of HDL and LDL explaining...
Distinguish between "good" and "bad" cholesterol. In your discussion, include descriptions of HDL and LDL explaining which type of cholesterol is detrimental to your health and why. Format: 12 point font, Times New Roman, double-spaced, APA format.
Laboratory Values: Fasting blood glucose, total cholesterol, LDL-C, HDL-C, and triglycerides were all within normal ranges...
Laboratory Values: Fasting blood glucose, total cholesterol, LDL-C, HDL-C, and triglycerides were all within normal ranges Graded Exercise Test Results (Balke-Ware Treadmill Test Protocol): VO2 Peak: 19.46 ml/kg/min Peak Exercise HR: 135 bpm Peak Exercise BP: 182/90 mmHg Notes: No ECG abnormalities 8. Briefly describe the Balke-Ware exercise test protocol. For what population(s) is this test useful? Do you agree with the use of the Balke-Ware exercise test protocol for Lisa? If not, what other test protocol and/or mode of...
10)Two types of cholesterol transport proteins, low-density lipoproteins (LDL) and high-density lipoproteins (HDL), bind to cholesterol...
10)Two types of cholesterol transport proteins, low-density lipoproteins (LDL) and high-density lipoproteins (HDL), bind to cholesterol and carry it through the bloodstream. Familial hypercholesterolemia (FH) is characterized by high cholesterol levels in the blood, which can lead to cardiovascular disease. FH is associated with a loss-of-function mutation of a gene that encodes LDL receptors in liver cells. Individuals who are heterozygous produce lower-than-normal amounts of the LDL receptors, and individuals who are homozygous for the mutant allele have no LDL...
1.) Which of the following are considered desirable levels for total cholesterol and HDL-cholesterol? a.) <220...
1.) Which of the following are considered desirable levels for total cholesterol and HDL-cholesterol? a.) <220 mg/dl, >60 mg/dl b.) <200 mg/dl, >60 mg/dl c.) <240 mg/dl, >40 mg/dl d.) <200 mg/dl, <60 mg/dl 2. Which of the following is NOT considered a component of health-related physical fitness? a.) Agility b.) Cardiorespiratory endurance c.) Muscle endurance d.) Flexibility e.) Body composition 3.) An optics check cassette is used with the Cholestech a.) to ensure that the display is readable. b.)...
Cholesterol, Triglycerides, HDL, LDL Select one: a. Common Test for Lavender Top Tubes b. Coronary Risk...
Cholesterol, Triglycerides, HDL, LDL Select one: a. Common Test for Lavender Top Tubes b. Coronary Risk Profile c. Serology (Immunology) Section d. Capillary Blood
which of the following is a risk factor for heart disease? Total blood cholesterol LDL lower...
which of the following is a risk factor for heart disease? Total blood cholesterol LDL lower than 100mg Vigorous Physical exercise HDL greater than 60mg
Describe the difference between HDL and LDL, from a chemical standpoint.
Describe the difference between HDL and LDL, from a chemical standpoint.
23. What are the reference methods for the following? 1. Triglycerides 2. Total cholesterol 3. HDL-C...
23. What are the reference methods for the following? 1. Triglycerides 2. Total cholesterol 3. HDL-C 4. LDL-C 5. Lipoproteins (HDL, VLDL, Lp(a), LDL, Chylomicrons 24. What are the NCEP and ATP classifications of LDL, Total, and HDL Cholesterol? 25. What is the typical reference interval for triglycerides? please can you add your reference of your answers thank you
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT