import java.util.Scanner;
public class Eggs {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("How many eggs?");
int eggs = scan.nextInt();
int dozens = eggs / 12, ind = eggs - (dozens*12);
System.out.println("You ordered "+eggs+" eggs. That's "+dozens+" at $3.25 per dozen and "+ind+" loose eggs at 45 cents each for a total of $"+((dozens*3.25)+(ind*0.45))+".");
}
}
I hope this helps!
Add a score to your achieve of correctly answered questions. Which then will determine how much of a Genius you are.
Answer:
I think cold day instead
Explanation:
Higher temperatures increase the energy and therefore the movement of the molecules, increasing the rate of diffusion. Lower temperatures decrease the energy of the molecules, thus decreasing the rate of diffusion.
Answer:
1. the set of real numbers between 0.1 and 0.2
2. the set of all negative integers greater than negative 1 trillion
3. the set of all java and C programs
Explanation:
A set is countable if it is either finite or has the same cardinality as the set of positive integers. The inverse of this set type is uncountable.
The set of real numbers between 0.1 and 0.2, all negative integers greater than negative 1 billion, and a set of java and C programs are all countable sets, so are considered countably infinite.