Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with 3-7 Python language 3. Let's consider this assignment: salary = 55000 vacation = 250 Using Boolean expression, test if salary is

Please help me with 3-7

image text in transcribed

Python language

3. Let's consider this assignment: salary = 55000 vacation = 250 Using Boolean expression, test if salary is equal to 55000 and vacation is equal to 200. Use print to display the output. Using Boolean expression, test if salary is equal to 55000 or vacation is equal to 200. Use print to display the output. 4. Let's consider the following assignments: points = 14 Write a print statement that returns the remainder of points divided by 3 using a special operator (not the division one). Write another print statement that returns the integer part of points divided by 3 using a special operator (not the division one) 5. Use the floating point formatting operator (%), round the following numbers to the precision of 3 digits with 20 spaces for each number. Use a single print to display the output. 5.29679 12.67908 6. Use print to display your city and street name so the output looks like the one provided in the sample run below. Make sure to write two print statements only. 7. Use the round function to round the following float number to 3 decimal digits, and then print it: 90.09876 D Focus

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions