Answer:
Following are the program in python language
def prob3_6(k): #function definition
c = 0 #variable declaration
while k != 1: #iterating the while loop
print(k) #print k
if k % 2 == 0:#check if condition
k= k // 2 #divisible by 2
else: #else condition
k = k * 3 + 1
c = c + 1
print(k) #print k
print c #print count
prob3_6(3)#function call
Output:
3
10
5
16
8
4
2
1
7
Explanation:
Following are the description of program
- Create a function "prob3_6" in this function we passing an integer parameter of type "int" named "k".
- Inside that function we declared a variable "c" of type "int" that is used for counting purpose .
- After that we iterated the while for print the value of when it is not equal to 1 .
- We check if condition when k gives 0 on modulus then k is divisible by 2 otherwise else block will be executed in the else part we multiply by 3 to k and add 1 to the k variable .
- Finally print "k" and "c"
Answer:
You will need to implement a for loop ( I am assuming this is java)
Explanation:
int count20s = 0;
for(int x =0; x< customerAges.length;x++){
if(20 <= customerAges[x] && customerAges[x] <= 29){
count20s++;
}
Answer:
ROM : Read Only Memory.
RAM : Random Ascess Memory.
Answer:
the two on the bottom and the two on the top
Explanation:
move the two on the bottom apart and the two on the top inward
Answer:
The answer is "Option A".
Explanation:
The dynamic search ads also known as interactive contextual ads, that utilizes google advanced website browsing technologies to dynamically address relevant results requests based on the quality of a chain's website. These ads are beneficial for strategies, and other choices were wrong which can be described as follows:
- In option B, It helps to upload all the dynamic search ads URLs quickly.
- In option C, It helps to control computer service.
- In option D, It increases the network traffic.