You type the equal (=) sign into a cell to start a formula.
for example, =SUM(B1:B5)
The program illustrates the use of loops and conditions.
Loops are used for repetitions, while conditions are used to make decisions
The game program in Python, where comments are used to explain each line is as follows:
#This initializes the point to 100
point = 100
#The following loop is repeated 4 times
for i in range(4):
#This gets the current action
action = input("Hit or Miss: ")
#This following if statement calculates the point
if action.lower() == "hit":
point+=10
else:
point-=20
#This prints the calculated point
print(point)
Read more about loops and conditions at:
brainly.com/question/14284157
Answer:
16 RAM chips
Explanation:
To calculate the number of RAM chips needed, we divide the total size of the main memory by the size of each RAM chip. Hence:
Number of RAM chips required = Main memory size / size of one RAM
2M = 2²¹, 16 = 2⁴, 256K = 2¹⁸, 8 = 2³
Hence:
Number of RAM chips required = (2²¹ * 2⁴) / (2¹⁸ * 2³) = 2⁴ = 16
Therefore 16 RAM chips are necessary
Answer:
Explanation:
The Python program has been adjusted. Now the pizza ordering function is called from the main() method and not as soon as the file is imported. Also, the random package has been imported so that the random.randint(1,10) can correctly create the 5 random numbers needed. The code has been tested and the output can be seen in the attached image below, correctly matching the desired output.
import random
def pizza(meat="cheese", veggies="onions"):
print("You would like a", meat, "pizza with", veggies)
def main():
# Get the User Input
my_meat = input("What meat would you like? ")
my_veggies = input("What veggie would you like? ")
# Call the Function
pizza(meat=my_meat, veggies=my_veggies)
print("Your random numbers are:")
for i in range(5):
print(random.randint(1, 10))
# Call main function
main()
Answer:
It's B cuz if somehow the power went off your work won't be saved. So it's best to save your work frequently.