A multilayer switch maybe?? I hope it’s right
I would say none of the above as A, B, and C do not seem like sensible answers.
Answer:
Following are the statement:
counterPointer = &counter;
Explanation:
The following statement is correct because in the question it is given that there is an integer data type variable i.e., "counter" and there is another integer data type pointer variable i.e., "counterPointer" and finally we write a statement in which the pointer variable points to the integer variable.
Answer:
#part 1
#read the amount
amount=int(input("enter the amount:"))
#find the dollars
doll=int(amount/100)
// find the cents
cent=amount%100
#print output
print("{} dollars and {} cents.".format(doll,cent))
#part 2
#read a floating point
temperature=float(input("enter the temperature:"))
#part 3
#read a word
firstWord=input("enter a word:")
Explanation:
In part 1, read amount and the find the dollars with the help of "/" operator. Then find the cents with "%" operator and print both.In part 2, read a point and cast it to float then assign it to variable "temperature".In part 3,Read a word and assign it to variable "firstWord".
Output:
enter the amount:4321
43 dollars and 21 cents.
enter the temperature:12.5
enter a word:hello