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!
Answer:
In Python:
word = input("Enter word: ")
print("Length: "+str(len(word)))
Explanation:
This prompts the user for word
word = input("Enter word: ")
This calculates and prints the length of the input word
print("Length: "+str(len(word)))
<em>The length of the word is calculated using the len keyword</em>
Explanation:
that's called a virus, and it can do much harm to your softwares
Answer:
primul_copil = int(input("Introduceți vârsta primului copil: "))
aldoilea_copil = int(input("Introduceți vârsta celui de-al doilea copil: "))
def copilmai_mare(varsta1, varsta2):
if varsta1 > varsta2:
diferenta = varsta1 - varsta2
print("copilul mai mare este varsta1 cu diferența de vârstă de: ", diferenta )
else:
diferenta = varsta2 - varsta1
print("copilul mai mare este varsta2 cu diferența de vârstă de: ", diferenta )
copilmai_mare(primul_copil, aldoilea_copil)
Explanation:
Programul python de mai sus definește o funcție "copilmai_mare" care ia două argumente "varsta1" și "varsta2". Diferența dintre vârstele copiilor este comparată, iar cel mai mare copil și diferența sunt tipărite pe ecran.
Answer:C )On-scene
Explanation: ICS is referred as the Incident Command System .These are the methods that are provided for the controlling of the emergency situation. These solutions work on the time of the current situation of emergency by commanding and the coordination.
The other options are incorrect because they don't provided the solution for the emergency situation at on-scene time rather work in the later time or off -site.Thus, the correct option is option(C).