Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4.) Write a function called doctor that has no parameters. The function will ask the user to enter his/her systolic blood pressure reading. It will

image text in transcribed

4.) Write a function called doctor that has no parameters. The function will ask the user to enter his/her systolic blood pressure reading. It will then ask for the diastolic reading. The function then prints either "Your blood pressure is normal." or "Your blood pressure is high." depending on the values entered. This function should use the function you wrote in the previous question. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green, and user input is in red) doctor () Enter your systolic reading: 119 Enter your diastolic reading: 79 Your blood pressure is normal doctor () Enter your systolic reading: 133 Enter your diastolic reading: 79 Your blood pressure is high

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions