Question: Write a program that asks the user how many hours they have fasted and their current blood sugar level. If they have fasted less than

Write a program that asks the user how many hours they have fasted and their current blood sugar level. If they have fasted less than 2 hours, then output You need to fast at least 2 hours to perform this test. If they fasted at least 2 hours but less than 8 hours, then output Your blood sugar level is high if it is more than 140, and Your blood sugar level is normal otherwise. If they have fasted for at least 8 hours, then the threshold changes to 100 (instead of 140).

Code on Google Collab..................

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!