1. Add parenthesis to the following expression so that it returns 4.0 as the answer. You must not add or delete any other operators and/or operands. 20 / 4 + 6 * 2 2. Add parenthesis to the following expression so that it returns 27 as the answer. You must not add or delete any other operators and/or operands. 3 ** 3 + 9 % 4 // 2 3. Fill out the following expression with logical operators so that it returns False as the answer. You must not add or delete any other operators and/or operands. 4.5 / 2 >= 5 - 3 (3 1 + 2 5 * 2 < 2 * 5) ==
1. Add parenthesis to the following expression so that it returns 4.0 as the answer. You must not add or delete any other operators and/or operands. 20 / 4 + 6 * 2 2. Add parenthesis to the following expression so that it returns 27 as the answer. You must not add or delete any other operators and/or operands. 3 ** 3 + 9 % 4 // 2 3. Fill out the following expression with logical operators so that it returns False as the answer. You must not add or delete any other operators and/or operands. 4.5 / 2 >= 5 - 3 (3 1 + 2 5 * 2 < 2 * 5) ==
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question

Transcribed Image Text:1. Add parenthesis to the following expression so that it returns 4.0 as the answer. You must
not add or delete any other operators and/or operands.
20 / 4 + 6 * 2
2. Add parenthesis to the following expression so that it returns 27 as the answer. You must
not add or delete any other operators and/or operands.
3 ** 3 + 9 % 4 // 2
3. Fill out the following expression with logical operators so that it returns False as the
answer. You must not add or delete any other operators and/or operands.
4.5 / 2 >= 5
(3
1 + 2
5 * 2 < 2 * 5)
==
4. Add string conversion operations to the following print statement such that it prints
aaaaa525252 to the console. You must not add or delete any other operators and/or
operands.
Expert Solution

Step 1
According to our guidelines, we are allowed to solved only the first three sub-parts. Please post the other questions separately.
In expressions containing parenthesis, we need to solve the inside parenthesis first and then open the other parenthesis likewise.
Please refer to the following steps for the complete solution of the problem above.
Step by step
Solved in 4 steps

Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education