Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Get user input for num1 and num2. Write a Boolean expression that tests if the value stored in the variable num1 is equal to the

Get user input for num1 and num2. Write a Boolean expression that tests if the value stored in the variable num1 is equal to the value stored in the variable num2. Assign a value to the variables listed in this problem (time, maxTime, cost, and maxCost). Write a Boolean expression that tests if the value stored in the variable time is less than the value stored in the variable maxTime or if the value stored in the variable cost is less than the value stored in the variable maxCost Assign a value to weight and cost. Write a Boolean expression that tests if the value stored in weight is < 10 and the value store in cost is not greater than 20.00

num1 = int(input()) num2 = int(input()) ## add a line here to test and output if num1 is equal to num2 ## similar to the way this tests if num1 is greater than num2 ## print(num1 > num2)

time = int(input()) maxTime = int(input()) cost = int(input()) maxCost = int(input()) ## add a line here to test and output if the value stored in the ## variable time is less than the value stored in the variable maxTime ## or if the value stored in the variable cost is less than the value ## stored in the variable maxCost

weight = int(input()) cost = int(input()) ## add a line here to test and output if the value stored in weight ## is < 10 and the value store in cost is not greater than 20.00

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

Step: 3

blur-text-image

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

Under what conditions is media access control unimportant?

Answered: 1 week ago