Answer:
Written in Python:
dollars = int(input("Amount: "))
numFive = int(dollars/5)
numOnes = dollars%5
print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")
Explanation:
This line prompts user for input
dollars = int(input("Amount: "))
This line calculates the number of 5 that can be gotten from the input. This is done using integer division
numFive = int(dollars/5)
This line gets the remaining ones. This is done by using the modulo sign to get the remainder when input is divided by 5
numOnes = dollars%5
This line prints the required output
print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")
Answer:
write the sly flowchart
Explanation:
#stdlib.etc
main()
{
int temp;
bool fan = false;
print("enter the frigin temperature: ");
read(temp);
if (temp > 25)
{
fan = true;
print("the fan is on");
}
else
{
print("the fan is off");
}
return 0;
}
Answer:
1. Computer Network - a group of computers that are Interconnected in order to share Information or documents the component in the body of the computer that stores all of your files and folders
2. CPU - the central processing unit or part Inside the body of the computer that enables the computer to function,
sometimes referred to as the brain of the computer
3. Hard Drive - The componet in the body of the computer that stores all of your files and folders
4. Hardware - Physical parts of the computer or technical equipment
5. Internet - Interconnected computer networks throughout the world that everyone can use
6. Laptop - A small mobile computer
7. Motherboard - The main board in the body of the computer that contains chips and other compnents
8. Software - A computer program or a set of instructions for the hardware to perform
The above question has multiple choices as below
<span>A. Data links
B. The post office
C. Driving a car
D. A train
The answer is (B) The Post Office.
In layman’s terms, transport layer is similar to the post office functions of delivering parcels and letters at the agreed delivery deadlines. It also notices any dropped info and re-transmits it.
Just like the post office, the transport layer directs messages and information between specific end users. If by mistake you write a letter to the wrong person, the letter will be returned and the postal employee will stamp it as address unknown.
</span>