Answer:
See attachment for flowchart
Explanation:
The flowchart is as follows:
Step1: Start
This begins the flowchart
Step 2: Input Score1, Score2, Score3
This gets user input for the three subjects
Step 3: Average = (Score1 + Score2 + Score3)/3
This calculates the average of the three subjects
Step 4: Print Average
This displays the calculated average
Step 5: Stop
This signals the end of the flowchart
<span>The impact of the printing press with the impact of the internet is that </span>internet is an easy access compared with the printing press. Changes affect society, there are more ways to access info today through the internet. internet spreads information faster and can be shared quickly.
Answer: b
The computer virus is simply a ___
b. Set of computer instructions or code
A cell is the basic unit for storing data in exel
Please provide the language you're using when you ask for programming help, otherwise you aren't going to get the answer that you are looking for.
Here it is in Java, and I'm assuming the number is given via user input? Otherwise, just remove the user input function and replace the integer with a value of your choice. Note, that this isn't the full code; only what is relevant to the question.
public static void main(String[] args) {
int num = numInput(10);
printDoubles(num, 100); // You can create a user input function for
// maxValue if you wanted to.
}
/**
* Receives user input between 0 and the absolute value of maxInput.
* @param maxInput The largest absolute value that can be input.
*/
private static int numInput(int maxInput) {
Scanner sc = new Scanner(System.in);
maxInput = Math.abs(maxInput);
int num = 0;
while (!(num > 0 && num <= maxInput)) {
num = sc.nextInt();
if (!(num > 0 && num <= maxInput)) {
System.out.println("Input too small or too large");
}
}
return num;
}
/**
* Continues to print out num doubled until maxValue is reached.
* @param num The number to be printed.
* @param maxValue The maximum value (not including in which num can be doubled to.
*/
private static void printDoubles(int num, int maxValue) {
if (num >= maxValue) {
System.out.println("No output.");
}
while (true) {
if (num >= maxValue) {
break;
}
if (num < maxValue) {
System.out.print(num + " ");
}
num *= 2;
}
System.out.println();
}