Answer:
a
Explanation:
The variable declared is local within that function that is the declared variable is accessible inside that block itself, it cannot be accessible outside the given function.
ex - void add()
{
int a=10, b=20 , c ;
c = a + b ;
cout << c ;
}
int main()
{
cout << "value for c is :"<< c ;
return 0;
}
Here inside the add function variable a, b,c are declared and initialized inside the function.
Answer:
B.
Explanation:
In Javascript, the if should have a condition attached to it with parenthesis and curly braces.
Answer:
The system cannot find the path specified.
Explanation:
please give brain thx! :D
good luck!
Answer:
sequence number = 207
source port number = 302
destination port number = 80
Explanation:
The sequence number is 127 + 80 = 207
The source port number is 302, and the destination port number is 80.
Answer:
The answer to this question can be described as follows:
binary address: 01001, 01100, 01111.
Cache block: 1, 4, 7
Explanation:
Given values
Memory = 5 bit and cache = 8 blocks
Option 1)
memory location is =9
convert into binary number, so we get binary address = 01001
So, the cache block = 1
Option 2)
memory location is = 12
convert into binary number, so we get binary address = 01100
So, the cache block = 4
Option 3)
memory location is =15
convert into binary number, so we get binary address = 01111
So, the cache block = 7
Answer:
See explaination
Explanation:
The program code
import java.util.ArrayList;
public class Main
{
public static void main(String[] args)
{
ArrayList<AirlineTicket> tickets = new ArrayList<AirlineTicket>();
//This creates a randomized list of passengers
addPassengers(tickets);
for(AirlineTicket elem: tickets)
{
System.out.println(elem);
}
//This creates a TicketOrganizer object
TicketOrganizer ticketOrganizer = new TicketOrganizer(tickets);
//These are the methods of the ticketOrganizer in action
System.out.println("\nPassengers Ordered by Boarding Group:");
ticketOrganizer.printPassengersByBoardingGroup();
System.out.println("\nPassengers in line who can board together:");
ticketOrganizer.canBoardTogether();
}
//Do not touch this method! It is adding random passengers to the AirlineTicket array
public static void addPassengers(ArrayList<AirlineTicket> tickets)
{
String[] seats = {"A","B","C","D","E","F"};
for(int index = 0; index< 15; index++)
{
int random = (int)(Math.random() * 5);
AirlineTicket ticket = new AirlineTicket("Passenger " + (index+1), seats[random], ((int)(Math.random()*5)+1), ((int)(Math.random()*8)+1));
tickets.add(ticket);
}
}
}
class TicketOrganizer
{
private ArrayList<AirlineTicket> tickets ;
//constructor with parameter as an arraylist of AirlineTicket
public TicketOrganizer(ArrayList<AirlineTicket> tickets)
{
this.tickets = tickets;
}
//methhods to return the arraylist of airlines
public ArrayList<AirlineTicket> getTickets()
{ //re-organize the ticket first
ArrayList<AirlineTicket> tickets_organized = new ArrayList<AirlineTicket>();
for(int i=1; i<=5; i++)
{
for(AirlineTicket ticket: tickets)
{
if(ticket.getBoardingGroup() == i)
{
tickets_organized.add(ticket);
}
}
}
return tickets_organized;
}
//print the tickets based on boardingGroup
public void printPassengersByBoardingGroup()
{
int count = 0;
for(int i=1; i<=5; i++)
{
System.out.println("Boarding Group " + i + ":");
for(AirlineTicket ticket : tickets)
{
if(ticket.getBoardingGroup() == i)
{
System.out.println("Passenger " + ticket.getName());
}
}
}
See attachment for sample output
Answer:
If Corey wants to control the pacing of his presentation, he should adjust his playback settings. In the playback settings, he should select the default setting under "type;" this will allow him to change slides anytime. He should also click the check box under "options" that says "Change slides manually" so he can simply click on the slide whenever he is ready to move on to another slide.
Explanation:
If you don't like that answer, here's another one:
Corey knew he would need a lot of time to explain each point and that his team members would have lots of comments and questions. The best way that Corey should set up his slide show would be to make sure that he has an outline. Also, there should only be one thought per slide (never mix it). It has to be taken into account that he should have fewer words and more images/graphs.