Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part A - Calculate the following expressions given the following variables to two decimal places: a=2 b = 4.7 c=3 d = 4.2 1. answer1=b+a/cd

Part A - Calculate the following expressions given the following variables to two decimal places:

a=2

b = 4.7

c=3

d = 4.2

1. answer1=b+a/cd

2. answer2=(a+b)/cd

3. answer3=d*-bfloat(c/a)

4. answer4=ab*(c%int(d))

5. answer5=d/a+(b*c)

Part B Show the contents of each set of variables after each statement below. Take the previous statements into account (i.e. changes from earlier statements are applied) and list all three variables at each step:

 a = 40 b = 20 c = 50 

1.a = b

2.c = a

3.b = c

 d = 25 e = 35 f = 15 

4.d = f

5.f = e

6.e = d

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Describe S. Truett Cathys self-concept and self-efficacy.

Answered: 1 week ago

Question

how would you have done things differently?

Answered: 1 week ago

Question

3. What information do participants need?

Answered: 1 week ago