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
The USE statement switches to a different database.
The nursing usually takes up to 18 months, i.e. one year and a half.
The baby dolphin may however remain with his mum for up to 3-6 years.
<span>The answer is highlight cells, select the Insert tab, click on the number, select Date from the category box, highlight the correct format, and click OK.</span>
Answer:
We can periodically take a snapshot of the Domain Name System (DNS) caches in the local Domain Name System (DNS) servers.
Explanation:
We can periodically take a snapshot of the Domain Name System (DNS) caches in the local Domain Name System (DNS) servers. The Web server that appears most frequently in the Domain Name System (DNS) caches is the most popular server. This is because if more users are interested in a Web server, then Domain Name System (DNS) requests for that server are more frequently sent by users. Thus, that Web server will appear in the Domain Name System (DNS) caches more frequently.