Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started