Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will explore Python as a calculator. We will go over the following basic operations: Addition+: E.g. 4 + 1 = 5) Subtraction: E.g. 4-1

You will explore Python as a calculator. We will go over the following basic operations: Addition+: E.g. 4 + 1 = 5) Subtraction: E.g. 4-1 =3) Multiplication : E.g. 4* 3 = 12). . . Division: E.g. 12 / 4 = 3 Exponentiation **: Raise the number to the left to the power of the number to the right, e.g. 4**2 = 16) . Modulo %: The remainder of the division of the number to the left with the number to the right, e.g. 16 % 3 = 1 Your task is to explore these operations. Write a program called calculations.py that prints the answers to the following in order: 1. 120 + 43 2.9382-450 . * 3.999 *999 4. 120/40 5. Calculate the answer to these problems: 1. A team of hungry programmers share 50 slices of pizza. If each programmer eats exactly 3 pieces of pizza, how many slices are left over in the end? 2. Guido earns $30.000 in his first year as a software engineer. Each year, he gets a 3.5% raise. What is Guido's salary after 5 years? (Learn more about exponential growth here ) The aim of this assignment is to explore

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago