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:
385
Explanation:
There was no question so I simply run the program for you and included the output.
The program seems to calculate: 
Answer:
B. Which customer most frequently purchases bread.
Explanation:
As per the scenario, the data we are receiving from the sales record of the bakery is :
The date on which the items are sold
Each items name which are sold
The number of each item sold and
The price of each item sold
These data are required to estimate how much the company has earned the profit during a given period of time.
So from the above scenario, there is no data given about the customer i.e customer name, customer number, etc. So there is no chance to track the details of a customer purchase history.
Therefore, the most appropriate answer is option B
Answer:
D
Explanation:
All three of A, B and C are required to harden a host. Thus, All of the above makes the best option.
Hardening simply refers to making your data impossible to be penetrated. More like bulletproof.
To do this, ensure measures like
- Regular Program cleanup
- Patches management
- service pack installation
- service or usage policies
...among others.
Cheers