The python code which can be used to read dates from input, one date per line and each date's format must be as follows: March 1, 1990, is:
<h3>Python code</h3>
import datetime
inputs = []
result = []
#read the inputs
date = input()
inputs.append(date)
while not date == "-1":
date = input()
inputs.append(date)
#check if the input is in the correct format and convert it.
for date_text in inputs:
try:
date_text = datetime.datetime.strptime(date_text,"%d %B, %Y")
result.append(date_text.strftime("%d/%m/%Y"))
except ValueError:
pass
print(*result, sep = "\n")
The above code would parse the string and extract the date. The split() method was used to break the input into tokens.
Read more about python programming here:
brainly.com/question/27666303
#SPJ1
Answer:
central processing unit in short form CPU :)
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:
The answer to this question is given in the explanation section.
Explanation:
This is a type of software which show us data in tabular form. These software can easily store, analyze and organize data.
They are divided in rows and columns. They are mainly used for accounting and book keeping.
The commonly used spread sheet software in the market are MS Excel by Microsoft, Calc by libre office.