Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

test _ percent = 2 0 review _ time = 2 feel _ prepared = True #You may modify the lines of code above, but

test_percent =20
review_time =2
feel_prepared = 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 2 hours (review_time), or
#at least 4 hours if the test is worth 20 percent or more of
#your grade.
#
#So, to go to bed, you must feel prepared (feel_prepared must
#be True), and you must have reviewed for 2 or more hours
#(review_time must be greater than or equal to 2). If the
#test is worth 20% or more (test_percent is greater than
#or equal to 20), you should have reviewed for 4 or more hours
#(review_time greater than or equal to 4).
#
#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

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

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students explore these related Databases questions