Answer:
D.Maintain a count of queue items.
Explanation:
In array based implementation of queue we use two variables suppose frontindex and rearindex which points to the front of the queue and the rear of the queue respectively and one variable size to keep count of the variables in the queue So whenever we insert an element we insert it at rear index and whenever we remove an element we do it at front index.When the size becomes equal to the capacity of the array we can say that the queue is full.
1.
name = input("Enter your name: ")
num1 = int(input("Hello "+name+ ", enter an integer: "))
num2 = int(input(name+", enter another integer: "))
try:
if num1 % num2 == 0:
print("The first number is divisible by the second number")
else:
print("The first number is not divisible by the second number")
except ZeroDivisionError:
print("The first number is not divisible by the second number")
try:
if num2 % num1 == 0:
print("The second number is divisible by the first number")
else:
print("The second number is not divisible by the first number")
except ZeroDivisionError:
print("The second number is not divisible by the first number")
2.
import random, math
num1 = float(input("Enter a small decimal number: "))
num2 = float(input("Enter a large decimal number: "))
r = round(random.uniform(num1, num2), 2)
print("The volume of a sphere with radius " + str(r) + " is " + str(round(((4 / 3) * math.pi * (r ** 3)), 2)))
I hope this helps!
Functional requirements <span>are used in input, processing, and output operations that can help create more efficient programs as the data can be processed many times without having to be input again.
</span>The functional requirements define function/s of a system or its component. It <span>describes what a software system should do.</span>
Answer:
What is the use of metering in camera?
Metering is used to measure the brightness of the subject. The camera optimizes exposure by adjusting shutter speed, aperture (f-number), and ISO sensitivity according to the brightness of the subject, which is measured using the camera's built-in metering sensor.
Explanation:
If the answer is right Can you mark me as brainliest if you can?
Answer:
13333333333333333333333fv mvfdmv mfv fmv f mf vmf f vfmvnfmvnmnvmfnvmnvmnv3Explanation: