The indices of the internal array elements that hold the remaining elements is c) 2 to 4
<h3>Calculations and Parameters:</h3>
For us to create a capacity of 10 for the queue, we would enqueue:
We would create a queue of capacity 10:
<h3>Queue q(10);</h3>
We add elements/enqueue 5 elements to the queue :
- q.queueEnqueue(10);
- q.queueEnqueue(5);
- q.queueEnqueue(8);
- q.queueEnqueue(9);
- q.queueEnqueue(2);
Printing this would give:
q. queueDisplay()
10, 5, 8, 9, 2
Next, we would remove elements/dequeue 2 elements from the queue :
q. queuedequeue();
q. queuedequeue();
Printing it would be:
q. queueDisplay()
8 ,9, 2
Observing this, the deletion/dequeue starts from the front/first index.
The remaining indices of the internal array elements are: 2, 3, 4 or 2 to 4
Read more about arrays and enqueue here:
brainly.com/question/24188935
#SPJ1
Answer:
In Python:
import os.path
from os import path
fname = input("Filename: ")
if path.exists(fname):
with open(fname) as file_in:
lines = []
for line in file_in:
lines.append(line.rstrip('\n'))
f = open("stat.txt","r+")
f.truncate(0)
f = open("stat.txt", "a")
f.write("Names\tTotal\tSubjects\tAverage\n")
for i in range(len(lines)):
rowsum = 0; count = 0
nm = lines[i].split()
for j in nm:
if (j.isdecimal()):
count+=1
rowsum+=int(j)
average = rowsum/count
f.write(nm[0]+"\t %3d\t %2d\t\t %.2f\n" % (rowsum, count, average))
f.close()
else:
print("File does not exist")
Explanation:
See attachment for explanation where comments were used to explain each line
Answer:
I agree with you! And thank you for the points
Explanation:
I answer educational questions and ask one of my own regarding math and it gets reported
Someone asked if their art was good and how they can improve it and it gets reported
But the only questions they don’t report are free po!nts
For the people who don’t have anything better to do then report people trying to get help: STOP ITS ANNOYING NOT JUST FOR ME BUT THE PEOPLE WHO ARE TRYING TO GET HELP, INSTEAD OF REPORTING WHY DONT U HELP PEOPLE???
Answer:
B. style=text-align: right
Explanation:
text-align is a CSS property having 5 types of values. Each of values define below.
left - Aligns content to left.
right - Aligns content to right.
center - Centers the content.
justify - Depends on the width of the content, it will align itself to both left and righ
inherit - It specifies the the value of text-align should be taken from parent element.