Answer:
Explanation:
The following is written in Python and uses exception handling to do exactly as requested. It then goes adding all of the integer values to an array called num_list and finally adding them all together when the function ends.
def in_values():
num_list = []
while True:
try:
num = input("Input non-zero floating point: ")
num = int(num)
if num == 0:
break
else:
num_list.append(num)
except ValueError:
print("No valid integer! Please try again ...")
try:
num = input("Input non-zero floating point: ")
num = int(num)
break
except ValueError:
break
sum = 0
for number in num_list:
sum += number
return sum
Answer:
The JavaScript statement is
var str1 = "Information Technology";
var result = str1.toUpperCase();
Explanation:
JavaScript is used to validate the client side it means it provide the client side validation.
Following are the function of JavaScript that converted the string into uppercase.
function val()
{
var str1 = "Information Technology ";
var result = str1.toUpperCase();
}
The toUpperCase() function convert the string into uppercase in JavaScript
OUTPUT
INFORMATION TECHNOLOGY
Loop is a control structure that causes a statement or group of statements to repeat.Before entering a loop, the first input, or the accumulator where the total will be kept is retrieved to an initial value, usually zero.
All parts of a statement must be true for it to be true