Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me! it mus be written in C language, if you could write a little report that woukd be great!! thank you so much

please help me! it mus be written in C language, if you could write a little report that woukd be great!! thank you so much image text in transcribed
image text in transcribed
image text in transcribed
Well, this is an interesting one Do you know about Blood Pressure? It is one of those measurements you get at a clinic or the hospital, and is used to monitor your cardiovascular health. Hypertension can be a sign of many issues, so it is important to identify whether a reading belongs to one of multiple categories Blood pressure is measured with two numbers Systolic Pressure, or the pressure when the heart pumps blood through the arteries, and Diastolic Pressure, which is the pressure of the blood in between heartbeats. The following chart taken from The American Heart Association website, shows the measurements and the categories they belong to CATEGORY SYSTOLIC DIASTOLIC Normal 140 or >90 Stage 2 Hypertension Hypertensive Crysis > 180 and/or >120 I will provide you with a basic inc file that covers the Normal category, based on a user's input THE CHALLENGE This week's challenge is simple: 1. Complete the main file with code that prints out the Blood Pressure Category based on the user's readings, plus one more of the user's Systolic pressure is less than their Diastolic pressure, it should just print TERROR 2. The Challenge in this case, is to do it with the minimum amount of statements possible. It turns out that if statements can be computationally expensive, so minimizing the number of them can be efficient, particularly if you plan to implement such a code in a simple device that has a weak processor and small memory THE DELIVERABLES You have to turning 1. Your complete a file. It should be able to properly identify all above Blood Pressure ches, and it should have comments that clarify the code when necessary. 2. A small report. You can find the format for this report in the spotle in this report you must explain your reasoning for the number of if statements used as well as any ideas you do not know how to implement, but you believe to be possible, on how to reduce the number of if statements in the code THE GRADING RUBRIC Code quality for main.c: Points 60 Rubric Code properly covers all cases Code covers most cases but fails in some tests Code doesn't compile/run bot the logic is sound in general Code doesn't compile/run or is missing too much logic 50 40 10-30 Coding style for main.c. Points 10 Rubric Code has readable variable names, clear comments. readable formatting Some variable names and comments are under Variable names are confusing the code overall is hard to read B 1-5 Quality for REPORT.nd file Points 30) Rubric The report is well written with clear and structured ideas and shows creative resoning in attempting to solve the challenge The report is a bit undeaunstructured with some solid reasoning and experimentation The report is poorly written repetitive or presents shallow ideas The report is literally just a sentence 25 10-15

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

???? Explain how income inequality in America has changed over time

Answered: 1 week ago