subject

Imagine you are writing a program that prints out the day of the week (sunday, monday, tuesday, etc.) for each day of the year. before the program executes, can you tell how many times the loop will execute? assume the year is not a leap year. given your answer, which type of loop would you need to implement? explain your reasoning.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:50
Consider a slotted aloha system, where the time slot equals the fixed duration of each packet. assume that there are 4 stations a,b,c,d sharing the medium. (a) stations a,b,c,d receive one packet each from higher layers at times 1.3, 1.5, 2.6,5.7 respectively. show which transmissions take place when, according to the slottedaloha protocol; describe all transmissions until all four packets have been successful.when needed, each station has access to the following sequence of random number, provided by a random number generator and drawn uniformly between 0 and 1: (1) station a draws numbers: 0.31, 0.27, 0.78, 0.9, 0.9, 0.11, 0. (2) station b draws numbers: 0.45, 0.28, 0.11, 0.83, 0.37, 0.22, 0. (3)station c draws numbers: 0.1, 0.2, 0.3, 0.4, 0. (4) station d draws numbers: 0.36, 0.77, 0.9, 0.1, 0.1, 0.1, 0.1, 0. (b) in slotted aloha, a station transmits in each time slot with a given probability. what probabilities would you assign to each of the four stations so as to: (i) maximize the efficiency of the protocol? (ii) maximize fairness among the four stations? (c) will the efficiency increase or decrease if we modify slotted aloha as follows: (i) get rid of slots and allow stations to transmit immediately? (ii) implement carrier sensing? (iii) implement collision detection? (iv) implement collision avoidance?
Answers: 3
question
Computers and Technology, 24.06.2019 21:50
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
question
Computers and Technology, 25.06.2019 17:30
Kim is creating a one-page presentation in word about her parentsโ€™ home country, vietnam. she has inserted images that are each mostly yellow or mostly red, because these are the colors of the vietnamese flag. however, she would like to make the images each appear even more yellow or red. in other words, she would like to keep the same colors in the pictures, but increase the amount of color in each image. to do this, kim should double-click on an image, click on the color tool, and then click on an option shown under color
Answers: 1
question
Computers and Technology, 25.06.2019 22:30
If you were working on a mainframe, which of the following operating systems would you most likely be using?
Answers: 1
You know the right answer?
Imagine you are writing a program that prints out the day of the week (sunday, monday, tuesday, etc....
Questions
question
English, 14.04.2020 20:47
question
Business, 14.04.2020 20:47
question
English, 14.04.2020 20:47
question
Mathematics, 14.04.2020 20:47
question
Mathematics, 14.04.2020 20:48
question
English, 14.04.2020 20:49
Questions on the website: 13722359