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
Verizon [17]
3 years ago
6

3. In your application, you are using a stack data structure to manipulate information. You need to find which data item will be

processed next, but you don’t want to actually process that data item yet. Which of the following queue operations will you use?
a) pop
b) push
c) peek
d) contains
Computers and Technology
1 answer:
GREYUIT [131]3 years ago
3 0

Answer:

I think its contains, but i would ask on stack overflow.

Explanation:

You might be interested in
Design a program that will receive a valid time in the 24-hour format (e.g. 2305) and convert to its equivalent 12-hour format (
coldgirl [10]

Answer:

import java.io.*;

public class Main

{

  public static void main(String[] args) throws IOException {

      BufferedReader bufferObject=new BufferedReader(new InputStreamReader(System.in));

      String stringObject=bufferObject.readLine();

      while(!stringObject.equals("99:99AM")){

      System.out.println(convertedTime(stringObject));

      stringObject=bufferObject.readLine();

      }

  }

  public static String convertedTime(String stringObject){

  String s=stringObject.substring(stringObject.length()-2);

  String[] timeObject=stringObject.substring(0,5).split(":");

  if(s.equals("AM")){

  if(timeObject[0].equals("12")) return "00"+timeObject[1];

  else return timeObject[0]+timeObject[1];

  }

  else{

  if(timeObject[0].equals("12")) return "12"+timeObject[1];

  else{

  int hours=Integer.valueOf(timeObject[0]);

  timeObject[0]=String.valueOf(12+hours);

  return timeObject[0]+timeObject[1];

  }

  }

 

  }

}

Explanation:

  • Inside the main method run a while loop until stringObject is not equal to the string "99:99AM".
  • Call the convertedTime method and display the results.
  • Use the same hours and minutes except for 12th hour If the time is in AM.
  • Use "00" instead of 12, if it is 12th hour.
  • Add hours to 12, if the time is in PM and don't change anything in case of 12.
8 0
3 years ago
You have a small network at home that is connected to the internet. On your home network, you have a server with the IP address
oksian1 [2.3K]

Answer:

Answer C

Explanation:

Static NAT creates a fixed translation of private addresses to public addresses. The main difference between dynamic NAT and static NAT is that static NAT allows a remote host to initiate a connection to a translated host if an access list exists that allows it, while dynamic NAT does not.

5 0
3 years ago
What functionality can a vulnerability scanner provide that a port scanner cannot?
Rina8888 [55]
<span>Sending alerts when new systems are added to the network is the functionality that a vulnerability scanner can provide and a port scanner cannot.
</span>port scanner<span> allows testing of open </span>ports and firewalls. It d<span>iscovers open UDP </span>ports<span> on your target system by </span>scanning with NMAP and by doing so it is<span> the first step of a complete </span>vulnerability<span> assessment. </span>
7 0
3 years ago
Plz help meeeeee QUICKLY!!! WORTH 15 POINTS!
Lady bird [3.3K]

Answer:

Im pretty sure Domain name system but dont trust me

Explanation:

8 0
4 years ago
Which tool is a GUI used to build PowerShell scripts?
enyata [817]

A will be your answer!!! I’m pretty sure

8 0
4 years ago
Other questions:
  • Someone who wants the credentials of skilled training, but in less time than a four-year degree should consider
    11·1 answer
  • Consider the following code segment:
    5·1 answer
  • . Reorder the following efficiencies from smallest to largest:
    9·1 answer
  • Including quotes in your paper can bring additional meaning to the content True are false
    11·2 answers
  • Which of the following sorting algorithms could be implemented on a doubly-linked list WITHOUT making the asymptotic worst-case
    12·1 answer
  • What is the first thing you should do when creating a spreadsheet
    5·1 answer
  • How do you know where the home row of the keyboard is?
    14·2 answers
  • Katrina needs to send her database to colleagues, but she does not want them to access anything except the
    8·1 answer
  • It's in Python, everything sort of explained in the image below,
    5·1 answer
  • assuming the default gateway is connected to the internet, what type of internet access would this server have?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!