Probably have to type it in google docs then paste into brainly that’s the only way I would think to do it
There are two types of secondary memories.
- RAM
- ROM
RAM:
- RAM stands for random access memory .
- It is expandable.
- we can do multiple things in it.
- Its erasable.
ROM
- ROM stands for read only memory.
- It is permanent .
- We can only read in it.
- Its permanent hence not removable.
The answer to your question is C they are simple to grasp
Answer:
total = 0
count = 0
while(True):
grade = float(input("Enter a grade: "))
if grade < 0:
break
else:
total += grade
count += 1
average = total/count
print("The average is: " + str(average))
Explanation:
*The code is in Python.
Initialize the total and count as 0
Create a while loop that iterates until a specific condition is met inside the loop
Inside the loop, ask the user to enter a grade. If the grade is smaller than 0, stop the loop. Otherwise, add the grade to the total and increment the count by 1.
When the loop is done, calculate the average, divide the total by count, and print it