Answer:
Following are the statement in C++ Language is given below
total=0; // variable declaration
cin >> amount; // Read the input
while(amount >=0) //iterating the loop
{
if(amount>0) // checking condition
total=total+amount; // perform operation
}
Explanation:
Following is the description of the statement
- Declared a variable "total" and initialized with them 0 to them.
- Read the input in the "amount" variable by using cin.
- iterating the loop when the amount is greater then 0.
- Checking the condition if(amount>0) then adding the total variable and amount and storing them into the total variable.
Answer:
Explanation:
The original Xbox: November 15, 2001
The original PS1: December 1, 1994
Xbox 360: November 22, 2005
Ps2: March 4, 2000
Ps3: November 11, 2006
Xbox One: November 22, 2013
Ps4: November 15, 2013
Nintendo Ds: November 21, 2004
Nintendo 3ds: February 26, 2011
Gameboy: April 21, 1989
Nintendo Switch: March 3, 2017
Answer:
theSentence = input('Enter sentence: ')
theSentence = theSentence.split()
sentence_split_list =[]
for word in theSentence:
sentence_split_list.append(word[1:]+word[0]+'ay')
sentence_split_list = ' '.join(sentence_split_list)
print(sentence_split_list)
Explanation:
Using the input function in python Programming language, the user is prompted to enter a sentence. The sentence is splited and and a new list is created with this statements;
theSentence = theSentence.split()
sentence_split_list =[ ]
In this way every word in the sentence becomes an element in this list and individual operations can be carried out on them
Using the append method and list slicing in the for loop, every word in the sentence is converted to a PIG LATIN
The attached screenshot shows the code and output.
Involvement is the answer just took it. thank you
Answer:
11. 1million square decimetres (from online)
20. assuming room is rectangular,
length= (p - 2b)/2
because perimeter= 2 length + 2 breadth for rectangular