Answer:
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>int main()</em>
<em>{</em>
<em> int myNewAge;</em>
<em> int myCurrentAge = 29;</em>
<em> int currentYear = 2020;</em>
<em> </em>
<em>myNewAge = myCurrentAge+(2050-currentYear);</em>
<em />
<em>cout<<"My Current Age is "<<myCurrentAge<<". I will be "<<myNewAge<<" in 2050"<<endl;</em>
<em> return 0;</em>
<em>}</em>
Explanation:
The program is written in C++ language as required. firstly, we declare the three variables:
<em> </em><em>int myNewAge;</em>
<em> int myCurrentAge = 29;</em>
<em> int currentYear = 2020;</em>
Then we calculate the new age as: <em>myNewAge = myCurrentAge+(2050-currentYear);</em>
Using multiple cout operators (<em> </em><<) we display the output nicely as required by the question with this statement
<em>cout<<"My Current Age is "<<myCurrentAge<<". I will be "<<myNewAge<<" in 2050"<<endl;</em>
Answer:
Explanation:
The following Python program has a function called addDigits which takes a number as a parameter and returns the sum of the digits. Then the program creates a loop that keeps creating random numbers between 222 and 1000 and divides it by the value returned from the function addDigits. If the remainder is 0 is prints out a statement and breaks the loop, ending the program. The picture below shows the output of the program.
import random
def addDigits(num):
sum = 0
for x in str(num):
sum += int(x)
return sum
sum = addDigits(random.randint(222, 1000))
while True:
myRandomNum = random.randint(2, 99)
if (sum % myRandomNum) == 0:
print("No remainder between: " + str(sum) + " and " + str(myRandomNum))
break
B - because you should always be honest when it comes to working your hours and getting paid the right amount.
The answer to this question would be:
database/records
They all have in common the same files.
<em><u>Answer</u></em>
5 hours
<em><u>Explanation</u></em>
The two working together can finish a job in

Also, working alone, one machine would take one hour longer than the other to complete the same job.
Let the slower machine working alone take x hours. Then the faster machine takes x-1 hours to complete the same task working alone.
Their combined rate in terms of x is

This should be equal to 20/9 hours.

Multiply through by;





Factor to get:


It is not feasible for the slower machine to complete the work alone in 4/9 hours if the two will finish in 20/9 hours.
Therefore the slower finish in 5 hours.