Answer:
Explanation:
The following code is written in python and divides the amount of cents enterred in as an input into the correct amount of quarters, dimes, nickels and pennies. Finally, printing out all the values.
import math
#First we need to define the value of each coin
penny = 1
nickel = 5
dime = 10
quarter = 25
#Here we define the variables to hold the max number of each coin
quarters = 0
dimes = 0
nickels = 0
pennys = 0
cents = int(input("Please enter an amount of money you have in cents: "))
if cents > 0 and cents <= 100:
if cents >= 25:
quarters = cents / quarter
cents = cents % quarter
if cents >= 10:
dimes = cents/dime
cents = cents % dime
if cents >= 5:
nickels = cents /nickel
cents = cents % nickel
if cents > 0:
pennys = cents / penny
cents = 0
print("The coins are: "
"\nQuarters", math.floor(quarters),
"\nDimes", math.floor(dimes), "\nNickels", math.floor(nickels), "\nPennies", math.floor(pennys))
else:
print("wrong value")
Google it.
////////////////
Answer:
The period from 1959-1965 was the second generation. Transistors that are cheaper, consumed less power, were used in this generation, were more compact, were more reliable, and were faster than first-generation vacuum tubing machines.
Explanation:
The primary memories and the magnet tapes and magnetic discs were used as secondary storage equipment in this generation.
The montage language and high programming languages such as FORTRAN, COBOL, have been used in this generation. The computers used batch processing and operating system multi-programming.
A memory is like the brain of human beings. It is used for storing information and instructions. Computer memory is the storage space on the computer that processes data and saves instructions for processing.
The memory is split into many small parts known as cells. There is a unique address for each location or cell, which varies from 0 to memory minus one.
There are three basic types of memory:
Memory Cache
Main Memory/Primary Memory
The Memory of a Second Kind
Answer:
Powerpoint Online
Explanation:
Powerpoint is used to create presentations.
Answer:
The answer is "Option d".
Explanation:
In the question, the numbering of the choices is missing so, in the attached the file defines it numbering after that we provide its solution:
In the question the "option d" is correct, because when we call the function "stop", it ends the store space assigned to the local variables and "called" function parameters, since the variables are no longer used, so the memory is released and once the process is called, the memory is reassigned and then once again assigned when the function ends.