Complete Question:
Part A: Write the QuartsToGallons Java class that declares a named constant to hold the number of quarts in a gallon (4). Also declare a variable to represent the number of quarts needed for a painting job, and assign an appropriate value—for example, 18. Compute and display the number of gallons and quarts needed for the job. Display explanatory text with the values, for example:
A job that needs 18 quarts requires 4 gallons plus 2 quarts.
Answer:
The complete code is given in the explanation section
Explanation:
import java.util.Scanner;
public class QuartsToGallons {
public static void main(String[] args) {
final int NUMBER_OF_QUARTS = 4;
int numJobs;
Scanner in = new Scanner(System.in);
System.out.println("Enter number of paint in quarts for the painting job?");
numJobs = in.nextInt();
int numGallons = numJobs / NUMBER_OF_QUARTS;
int numQuarts = numJobs % NUMBER_OF_QUARTS;
System.out.println("The painting Job of " + numJobs + " quarts requires "
+ numGallons + " gallons and " + numQuarts + " quarts of paint.");
}
}
Answer:
1) Right Click anywhere on your PC's Desktop screen
2) Select Personalize
3)The 'Settings' window is gonna appear
4) On the left hand side find taskbar(click it)
5) Find 'Automatically hide the taskbar in desktop mode'
6) Click On.
Hope it helps :D
Answer:
The probability that all five are still good two years later is 0.498.
Explanation:
Let <em>X</em> = number of internet sites that vanishes within 2 years.
The probability of an internet site vanishing within 2 years is: P (X) = <em>p</em> = 0.13.
A paper consists of <em>n</em> = 5 internet references.
The random variable <em>X</em> follows a Binomial distribution with parameters <em>n</em> = 5 and <em>p</em> = 0.13.
The probability mass function of a Binomial distribution is:
Compute the probability of <em>X</em> = 0 as follows:
Thus, the probability that all five are still good two years later is 0.498.
C would be the correct answer to this question
For technology:
<span>It is an open-source operating system used for smartphones and tablet computers.
</span><span>In science fiction:
It is a robot with a human appearance.</span>