Answer:
1) A string is "non-numeric data". In other words, it is text.
2) False, a runtime error means that there is a problem, but it will be with the software, not the hardware.
3) An impossible task such as dividing five by zero is a logical error. Not using quotes on a string would be a syntax error, printing an inaccurate statement is not an error at all (as far as the program is concerned anyway), and using camelcase on a variable with multiple words is a common convention.
4) variableName = "value"
5) The code provided here is illegible, so I can't give a straight answer. It seems to be missing operators.
Answer:
import java.util.Scanner;
public class num4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int sumOdds =0;
int sumEvens =0;
int num;
do{
System.out.println("Enter positive integers");
num = in.nextInt();
if(num%2==0){
sumEvens+=num;
}
else if (num%2!=0){
sumOdds+=num;
}
}while (num>0);
System.out.println("The sum of evens: "+sumEvens);
System.out.println("The sum of odds: "+sumOdds);
}
}
Explanation:
- Import Scanner class to prompt and receive user input
- Declare the following variables and initialize them int sumOdds =0, int sumEvens =0, int num;
- Create a do....while loop That continously prompts user to enter a positive number. The loop should terminate when a negative number is enters (n<=0)
- Within the while loop use an if condition with the modulo (%) operator to determine even and odd numbers and add to the respective variables
- Outside of the while loop Print sum of odds and sum of evens
Answer:
The answer is "Option c"
Explanation:
An Online questionnaire is a research study, that can be conducted across the internet by the targeted audience. It is the primary use for web-based ways to store feedback, and analyses by statistical apps and other choices were wrong, which can be described as follows:
- In option a, It is wrong because experimental is used in factor manipulation.
- In option b, It is not a secondary part of survey, that's why it is incorrect.
- Option d and Options e is used to in survey, but it's not correct.
ANSWER: The computer program will ✔ halt . A(n) ✔ recipe is an algorithm.
BRAINLIEST please and good luck!