Answer:
def calculate_score(setss):
num1, num2, num3= setss
if num1 >= 0 and num1 <=10 and num2>= 0 and num2<=10 and num3>= 0 and num3<=10:
print(num1+ num2+num3)
else:
print("Out of range")
Explanation:
<em>I've added the full source code as an attachment, where I used comments as explanation</em>
Answer:
Your program would run without error if you declared the first and second string variables before using them:
Modify the following:
first=input.nextLine();
second=input.nextLine();
to:
String first=input.nextLine();
String second=input.nextLine();
Explanation:
Required
Program to print two strings in forward and reversed order
<em>The program you added is correct. The only thing that needs to be done is variable declarations (because variables that are not declared cannot be used).</em>
<em></em>
So, you need to declared first and second as strings. This can be done as follows:
<u>(1) Only declaration</u>
String first, second;
<u>(2) Declaration and inputs</u>
String first=input.nextLine();
String second=input.nextLine();
Answer:
B) You use parentheses around the data values
Explanation:
It was C) on my end, but the answer is still the same :)
Answer:
Inputs are very helpful
Explanation:
Inputs can be inputing a string, interger, or basically any value. If you want to have an output you need an input and compiler (with minor differences).
Lets say y is out input our compiler is y + 5, and out output is x.
y + 5, that makes x 10.
Hope this helps :D