1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dalvyx [7]
3 years ago
5

Suppose an initially empty stack S has performed a total of 15 push operations, 12 top operations, and 13 pop operations ( 3 of

which returned null to indicate an empty stack ). What is the current size of S
Computers and Technology
1 answer:
geniusboy [140]3 years ago
5 0

Answer:

The current size is 5

Explanation:

From this question,

You popped a total of 13-3 = 10 elements (3 was subtracted because these 3 pops are null and does not change the size of the stack). Therefore only 10 does.

- A total of 15 elements were pushed

- top operations cannot change the size or state of the stack so we are to ignore this.

The current size of s is therefore

15-10

= 5 elements

Another way to calculate this is 15-(13-3) = 5

You might be interested in
If you define CSS rules on a parent control, the rules will be inherited by all of the children widgets.
den301095 [7]

Answer:

<u><em>TRUE</em></u>

Explanation:

7 0
4 years ago
In an ethernet network, a(n) _____ data transmission is one that can transmit data in both directions at the same time.
Sladkaya [172]
Full-Duplex is data flow that can travel in two directions at the same time. 
Half-Duplex is data flow that can travel in two directions but not at the same time.
Simplex is data flow that can only travel in one direction.
7 0
4 years ago
Write a program that prompt the user to enter a bank balance. The balance entered by the user is read into a variable named bala
IRINA_888 [86]

Answer:

ertyuiopoijuhgfdsa hiyoufun tresdfghytrefgytredfg

Explanation:

look for the words

4 0
3 years ago
Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.
lakkis [162]

Answer:

Following are the code to method calling

backwardsAlphabet(startingLetter); //calling method backwardsAlphabet

Output:

please find the attachment.

Explanation:

Working of program:

  • In the given java code, a class "RecursiveCalls" is declared, inside the class, a method that is "backwardsAlphabet" is defined, this method accepts a char parameter that is "currLetter".
  • In this method a conditional statement is used, if the block it will check input parameter value is 'a', then it will print value, otherwise, it will go to else section in this block it will use the recursive function that prints it's before value.
  • In the main method, first, we create the scanner class object then defined a char variable "startingLetter", in this we input from the user and pass its value into the method that is "backwardsAlphabet".

3 0
4 years ago
Which tab should you use when you want to create a shape?
tia_tia [17]

all pictures, images, clip art, shapes are in the insert tab

6 0
4 years ago
Read 2 more answers
Other questions:
  • A knowledge and skills test is a tool support managers use when selecting new employees; it measures an applicant's understandin
    13·1 answer
  • Information gathered from observing a plant grow 3 cm over a two-week period results in _______.a. inferences. b. variables. c.
    11·1 answer
  • Each warning label must contain this element and its purpose is to provide a visual alert to users to the chemical hazards to wh
    14·2 answers
  • Someone please help me with the right answer please
    13·1 answer
  • Can u tell me the answers to this table ​
    12·1 answer
  • 2. The Internet could best be described as: *
    12·1 answer
  • No down payment, 18 percent / year, payment of $50/month, payment goes first to interest, balance to principal. Write a program
    9·1 answer
  • True or False <br> Hebrew Bible and the Koran were first written in English.
    15·1 answer
  • How do you delete questions you asked?
    7·2 answers
  • "last month, our sales rose when we increased prices by 15%, so we should raise our prices another 15% this month." which logica
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!