Answer:
128 GB
Explanation:
Here, we are interested in calculating the total capacity of the disk.
From the question, we can identify the following;
Number of surfaces = 4
Tracks per surface = 131,072
Number of sectors = 2,048
Each Block size = 512 bytes
Mathematically;
Total data capacity of the disk = no of tracks * no of sectors * block size
= 131,072 * 2048 * 512 bytes
= 2^17 * 2^11 * 2^9 bytes = 2^37 bytes
1 GB = 2^30 bytes
So 2^37 = 2^7 * 2^30
= 128 GB
Answer:
count_p = 0
count_n = 0
total = 0
while True:
number = int(input("Enter an integer, the input ends if it is 0: "))
if number == 0:
break
else:
total += number
if number > 0:
count_p += 1
elif number < 0:
count_n += 1
print("The number of positives is: " + str(count_p))
print("The number of negatives is: " + str(count_n))
print("The total is: " + str(total))
print("The average is: " + str(total / (count_p + count_n)))
Explanation:
Initialize the variables, count_p represens the number of positives, count_n represents the number of negatives, and total represents the total of the numbers
Create a while loop iterates until the user enters 0. If the number is not 0, then add it to the total. If the number is greater than 0, increase count_p by 1. If the number is smaller than 0, increase count_n by 1.
When the loop is done, print the count_p, count_n, total, and average
Answer:
B. emotional
Explanation:
An emotional argument. An argument does not always have to be made in words.