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
vesna_86 [32]
3 years ago
10

Consider the following method.

Computers and Technology
1 answer:
Molodets [167]3 years ago
8 0

Answer:

13 21

5 6

6 5

7 11

Explanation:

Above-written are the output produced by the method ifElseMystery1 with the respective outputs.

The method contains one if-else block to change the values of x and y and one if statement to change the value of y.

In the method there is a local variable z initialized with the value of 4  and then it compares it with x if z is less than or equal to x then x is changed to x+1.else the value of z is increased by 9.

In the if statement it compares the value of z with y if the value of z is less than or equal to y then the value of y is increased by 1.

You might be interested in
Host A sends real time voice to Host B over a packet switched network. Host A first converts the analogue voice signal to a digi
DiKsa [7]

Answer:

Time required is 0.007 s

Explanation:

As per the question:

Analog signal to digital bit stream conversion by Host A =64 kbps

Byte packets obtained by Host A = 56 bytes

Rate of transmission = 2 Mbps

Propagation delay = 10 ms = 0.01 s

Now,

Considering the packets' first bit, as its transmission is only after the generation of all the bits in the packet.

Time taken to generate and convert all the bits into digital signal is given by;

t = \frac{Total\ No.\ of\ packets}{A/D\ bit\ stream\ conversion}

t = \frac{56\times 8}{64\times 10^{3}}          (Since, 1 byte = 8 bits)

t = 7 ms = 0.007 s

Time Required for transmission of the packet, t':

t' = \frac{Total\ No.\ of\ packets}{Transmission\ rate}

t' = \frac{56\times 8}{2\times 10^{6}} = 2.24\times 10^{- 4} s

5 0
3 years ago
Podcasts are a type of social media that is experienced primarily through
Vanyuwa [196]

they are experienced through a listening

4 0
3 years ago
the ____ presents information about the document, the progress of current tasks, and the status of certain commands and keys.​
emmasim [6.3K]
The task bar in all programmes 
5 0
3 years ago
Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every t
Bas_tet [7]

Answer:

C.     carTotal=carTotal + 1;

Explanation:

Option 'c' is the correct answer, because when some click on the "additembutton" the variable cartTotal should increment by 1. As jasmine want to track the record of no. of items in cart, each time customer will click "additembutton" the variable "cartTotal" increment by 1 and also update the value of that variable. e.g

If initially

cartTotal=0

When 1st time additembutton pressed

CartTotal = CartTotal + 1   ==> will make it as   CartTotal=0+1    ==>  CartTotal = 1

Now CartTotal=1;

When customer 2nd time press "additembutton"

CartTotal = CartTotal + 1   ==> will make it as   CartTotal=1+1    ==> CartTotal = 2

This process will continue and update the cartTotal till the customer add items into the cart.

8 0
3 years ago
The Internet enables people to make better economic decisions because they
sammy [17]

Answer:

C

Explanation:

C seems to be the most logical choice for a "good" choice.

It makes the most sense.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Why isn't my rank move from ambitious to virsto i met all the requirements
    8·2 answers
  • A tornado may be approaching if you observe which of the following?
    15·1 answer
  • explain how a computer screen and the eye interact to produce the variety of colors that we see from the 3 colors that are actua
    9·1 answer
  • When IPv4 addressing is manually configured on a web server, which property of the IPv4 configuration identifies the network and
    12·1 answer
  • You are running cable for a temporary network in a large auditorium. What is the maximum length you can have for the Ethernet ca
    7·1 answer
  • Could someone please help?​
    10·1 answer
  • What features are needed in a mobile to make it a business solution?
    13·1 answer
  • Green Fields Landscaping Company sells evergreen trees which are priced by height. Customers have a choice of purchasing a tree
    15·1 answer
  • What are the main security weaknesses of coaxial cable, twisted pair cable, and fiber optic cable? How might the router itself b
    8·1 answer
  • Using a wireless technology known as ___, many smartphones can now be tapped on special payment devices to complete your purchas
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!