Question: . 1-Use C++ A-Write a loop to print the first 10 powers of 3, namely 30 = 1, 31 = 3, 32 = 9, ...,
.
1-Use C++
A-Write a loop to print the first 10 powers of 3, namely 30 = 1, 31 = 3, 32 = 9, ..., 39 = 19683.
B- Write a program to compute, and output to the screen, the terms of a sequence as it converges to 0. The sequence begins with a value k and is then repeatedly divided by 4 until it is (essentially) equal to 0. For example, the sequence induced by k = 12 is 12/4 = 3, 3/4 = 0.75, 0.75/4 = 0.1875, 0.1875/4 = 0.046875, 0.046875/4 = 0.01171875, ... Your submission should include a screenshot of the execution of the program using each of the values k = 7, 0.1 and 1.9.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
