Answered step by step
Verified Expert Solution
Question
1 Approved Answer
test _ percent = 2 0 review _ time = 2 feel _ prepared = True #You may modify the lines of code above, but
testpercent
reviewtime
feelprepared True
#You may modify the lines of code above, but don't move them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
#You've been studying for your test for a few hours and you're
#trying to decide if you can go to bed or if you need to study
#longer.
#
#To go to bed, you need to feel prepared. Even if you "feel"
#prepared, you need to make sure you have prepared adequately:
#that means reviewing for at least hours reviewtime or
#at least hours if the test is worth percent or more of
#your grade.
#
#So to go to bed, you must feel prepared feelprepared must
#be True and you must have reviewed for or more hours
#reviewtime must be greater than or equal to If the
#test is worth or more testpercent is greater than
#or equal to you should have reviewed for or more hours
#reviewtime greater than or equal to
#
#Add your code below! It should print True if you can go to
#bed, False if you cannot.
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