Answer:
1.the program is moved from secondary storage to memory.
Explanation:
Secondary storage media generally have greater storage capacity than RAM (random access memory), for this reason the data and program are stored there.
but ram memories are much faster, for example, a solid state disk (SSD) with SATA III connection can have read and write speeds of approximately 500 MB/s, while a DDR III RAM can have speeds between 12 and 18 GB/S, that is, more than 20 times faster.
So that the flow of data at the time of running a program is optimal, the data from the secondary storage unit is copied to the RAM and this ensures that the speed at which the programs run is at least 20 times faster, and our processes run better.
Answer:
Following are the program in the Python Programming Language.
#set the infinite while loop
while(True):
#get string input from the user
name=input()
#get integer input from the user
num=int(input())
#set the if statement to break the loop
if(num==0):
break
#otherwise, print the following output
else:
print("Eating {} {} a day keeps the doctor away.".format(num, name))
<u>Output</u>:
oranges
5
Eating 5 oranges a day keeps the doctor away.
apple
0
Explanation:
<u>Following are the description of the program</u>:
- Set the loop that iterates at infinite times and inside the loop.
- Declare two variables which are 'name' that get string type input from the user and 'num' that get integer type input from the user.
- Set the if conditional statement for break the infinite while loop.
- Otherwise, it prints the following output.
Commercial use is not a creative commons license
Answer:
The answers are explained below
Explanation:
1) Identify the potential classes in this problem domain be list all the nouns
class Customer
class Acco unt
2) Refine the list to include only the necessary class names for this problem
the class customer is not necessary to solve the problem itself, therefore the only class could be the account class
3) Identify the responsibilities of the class or classes.
The responsibilities of the class account will be
* determination of the type of account--> Acc ount . type(char)
* deposit money into the account --> Acc ount . de posit(float)
* withdraw money into the account --> Acc ount . with draw(float)
* show balance of the account --> Acc ount . bal ance()
* generate interest --> Acc ount . int erest()
Please join the words together. I used spaces due to regulations
Answer:
Early school starting times cause poor performance on tests, inattention in class, and drowsiness.
Explanation:
Carskadon study on early school starting time showed that it cause increased rate of rapid eye movement sleep in students and they doze off during lecture. Insufficient sleep lessens attentiveness levels in the class which affects students' potential to learn. The study showed that students do not perform well on tests. In addition to the difficulty in learning, there is an increased danger of accidents for those who drive to school due to dizziness.