Answer:
I am going to use the Python programming language to answer this. The source code is given below:
print("Enter your tweet here")
user_tweet = input()
decoded_tweet = user_tweet.replace('TTYL', 'talk to you later')
print("This is the decoded tweet: ")
print(decoded_tweet)
Explanation:
In the program the replace() module was used to replace 'TTYL' with 'talk to you later.'
Attached is the screenshot of the output.
Answer:i would love to help but are there any answer choices?
Explanation: please provide answer choices for an accurate answer
Answer:see explanation
Explanation:
Hello, from your question I see that you need a program which based on countNum's value prints ready then all the numbers to 1 and finally go!, I'd appreciate if you provided information about the numbers after the example you gave as I do not know if they are to be printed too.
The solution I provide includes the countdown to 1 printing newline after each number and text. Try it out!
#include <stdio.h>
int main(void)
{
int countNum;
int i;
countNum = 22;
for ( i = countNum; i > 0; i--) {
if (i == countNum){
printf("Ready!\n");
}
printf("%d\n",i);
}
printf("Go!\n");
return 0;
}
Answer:
5) 3 0 0
Explanation:
Given data
int [] val = { 3, 10, 44 };
The total number of parameters of given array are 3, so total length of array is also 3.
The indexing of array starts with '0', Therefore the indexes of array with length zero are: {0,1,2}
The value of array at index 0 is = 3
similarly
value at index 1 = 10
value at index 2 = 44
Here, Int i = 1 is storing the value '1' in integer variable i.
In addition to that, any value of index 'i' of an array is selected using array[i].
Therefore,
val[i] = i-1 is copying the value (i-1 = 1-1 = 0) to the index '1' of the array because i = 1.
So value at index 1 would be = val[1] = 0
The term i++ is incrementing the value of i, it makes i =2
val[i] = i-1 is copying the value (i-1 = 1-1 = 0) to the index '2' of the array because i = 2 now.
So value at index 2 would be = val[2] = 0
Hence, the output would be {3 0 0}. So 5th option is correct.