Answer:
13
Explanation:
int numA = 4;
whilie (numA < 12){
numA += 3;
}
System.out.print(numA);
numA numA < 12
4 true <em>⇒ numA increases by 3, loop continues </em>
7 true <em>⇒ numA increases by 3, loop continues </em>
10 true<em> ⇒ numA increases by 3, loop continues</em>
13 false <em>⇒ loop stops, program them prints out value of numA </em>
Answer:
Car car = new Car();
Explanation:
Here we declare a variable called car which is a reference to an object of type Car.
Next we create a new object of type Car by using the new keyword. Here we are invoking no argument constructor of class Car. In case the car class has other constructors which take additional arguments, we could have initialized our object using the corresponding version of new.
The reference variable car is initialized then to the newly created object of type Car as described in the previous step. Now we can use the car reference variable to invoke relevant methods defined in the Car class.
A good algorithm should have these three components: C. steps, order, and outcomes.
<h3>What is an algorithm?</h3>
An algorithm simply refers to a standard formula which is made up of a set of finite steps and instructions that are executed on a computer system, in order to enable a software solve a particular problem under appropriate conditions.
In Computer technology, there are three (3) components that a good algorithm should have these include the following:
Read more on algorithm here: brainly.com/question/24793921
#SPJ1
Answer:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.println("How many cookies did you eat today");
int numOfCookies = in.nextInt();
double numCalories = (numOfCookies*300)/4;
System.out.println("The total number of calories you consumed in "+numOfCookies+" cookies is " +
" "+numCalories);
}
}
Explanation:
This code is implemented in Java.
- We know from the question that 4 cookies contain 300 calories
- Therefore number of calories consumed = (number of cookies eaten*300)/4
- To implement this in java we used the scanner class to prompt user for the input
- save the input to a variable and write mathematical expression for the number of calories consumed
- Then output the result
Answer:
The answer of the following question is Encryption.
Explanation:
Encryption is the second layer of the OSI Layer. It helps reduce the maintenance charges and offload complexity.
Encryption has presents in layer 3 and layer 4 which is IPSec in layer 3 and SSL, TSL in layer 4. of OSI Model.
<u>Note</u>- Only the Encryption can protect the data itself