Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

he Number Machine starts with two numbers, one represented by X , the other represented by Y , and has a big red button on

he Number Machine starts with two numbers, one represented by X, the other represented by Y, and has a big red button on it. Each time the button is pressed, the Machine first adds 3 to X, and secondly subtracts the new value of X from Y. This can also be shown in this way:
Step 1: X= X +3
Step 2: Y = Y- X
The starting value for X is 2, and the starting value for Y is 45. If the button is pressed three times, what is the sum of X and Y at the end?

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

LO 10-5 Differentiate among Theory X, Theory Y, and Theory Z.

Answered: 1 week ago

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago