1- You were visiting your parents’ house during the weekend when suddenly their Internet connection got disconnected. They want to access the Twitter website, but they can’t. So, they asked your help to fix their Internet connection. Restarting the router didn’t help; what steps you will take to help troubleshoot this network issue so your parents can re-access twitter’s website.
2- You were hired by a tech company as part of their IT department. Your employer asked you to help with this issue, “many of our employees spend the day watching Netflix and Youtube videos and get little things done.” What steps would you take to help with this problem?
3- You finally manage to access the assignmentaccess page from the assignmentaccess.com site. The page has 6 embedded objects in it. The RTT between your laptop and the assignmentaccess server is 105ms (transmission delay is negligible). What would be the response time for you to access assignmentaccess if your browser uses persistent HTTP? Explain
4- Choose the CORRECT statement about TCP's Fast Retransmission algorithm:
a. TCP assumes that 4 duplicate ACKs is a good indication that a packet has been dropped somewhere in the network.
b. Fast Retransmission tries to retransmit a dropped packet before the RTO (timeout).
c. Fast Retransmission helps keep the sending rate steady.
5- In which state will a TCP Sender always find itself after a RTO (timer) expires?
a. Fast Retransmission.
b. Fast Recovery.
c. Slow Start.
d. Congestion Avoidance.
6- Do you think Whatsapp is a loss-intolerant Internet application? & Do you think Snapchat-voice is an example of a delay-intolerant Internet application? Explain
This is an example that illustrates the use of the functions you will write. See the ?detailedfunction requirements? after the example.
Start by assigning
Table to the null pointer (?nullptr)?
Number of cities to 0
Number of days to 0
Given a file containing the following data (?cities1.txt?):
2.0 0 0.4
0 3.2 8
Passing the values of the table, number of cities, number of days, and the name of that file
(?cities1.txt?) into ?add_cities_from_file??returns
With Other changes
Number of cities - 2
Number of days - 3
Given a file containing the following data (?cities2.txt?):
1.2 0.25 0.3
0 0 0.1
2.3 2.9 4.25
Passing the values of the table (which currently has 2 rows and 3 columns), number of cities (currently 2), number of days (currently 3), and the name of that file (?cities.2.txt)? into add_cities_from_file??returns
With Other changes
Number of cities - 5
Number of days - 3
Using this table for the following:
Calling ?get_average_rainfall_between_days_given_city??with start day 1, end day 2, and city index 1 returns 5.6.
Calling ?get_average_rainfall_between_days_all_cities??with start day 0 and end day 1 returns 1.185.
Calling ?get_max_rainfall_all_cities_given_day??with day 1 returns 3.2.
Calling ?get_max_rainfall_given_city??with city index 4 returns 4.25.
Calling ?destroy_table??with arguments table and number of cities (5) results in all of the memory for the table being freed/destroyed/deleted/deallocated from the heap.
You are required to provide these functions, but you may add additional helper functions that support the required functions.
Pointer to a table (i.e. a two-dimensional array)
number of cities
number of days
the filename (as a string) of a file with data in the following format ? You can assume the data is valid.
<number of cities as a positive integer>
<number of days of rainfall data as a positive integer>
<a space-separated list of floating-point rainfall for city 1> …
<a space-separated list of floating-point rainfall for city n>
pointer to a new table (i.e. two-dimensional array) on the heap with the new data added ? If the table is the null pointer
? create the table
? resize the table and add the new data
Remember that resizing includes deallocating the old array
The purpose of this problem set is to gain familiarity with heaps and priority queues.
The Internet Movie Database lhttp: //www. imdb. com) is an online database of information related to movies, tv programs, and videos. You can download plain text data files; directions are atIhttp: //wry. imdb. com/interf aces Please read the statement about restrictions on use of the data.
In this exercise we will work with movie ratings. I have used the files title.basics.tsv and title.ratings.tsv to produce the file ratings.tsv, which contains one line of tab-separated values for each movie that has been rated. The first five lines (of 254,566) of the file are:
Soldiers of the Cross
The Story of the Kelly Gang
Robbery Under Arms
The first value on each line is the number of ratings that the movie received, and the second value is the average score. Scores range from 1 (worst) to 10 best. After the second tab comes the title of the movie.
Write a program called MovieRanker that reads in the data in ratings.tsv and responds to queries of the following form. The user inputs two integers, say k and m, with 0 < k < 2 x 106 and 0 < m < 105. Your program should then list, in decreasing order of rating, the m highest rated movies among those that had at least k reviews. Your program should loop, accepting input and producing lists until at least one of the input numbers is 0. After each list, it should report the time in milliseconds that it took to produce the list. A screen shot appears on the next page.
Several files are on Vocareum, in addition to ratings.tsv. The file MaxHeap.java contains an implementation of a priority queue based on a max heap. MovieRating.java is a class for storing a record of movie information. Finally, MovieRanker.java contains starter code with the required input and output statements. Note:
Do not solve this problem by sorting the ratings list.
Use only data structures that have been covered in class (including notes and videos).
You have been contracted by a small company named OracleFlix to create a database for storing information about their inventory and rentals. Use the entity relationship diagram in the file OracleFlix_Project_ERD.pdfas your guide to building the required tables.
Using the tables created for the midterm project
In order to be eligible for full credit, you must complete the following tasks.
Create a view called TITLE_UNAVAIL to show the movie titles and media_id of the media not returned yet.
The view should not allow any DML operations.
Create the following sequences to be used for primary key values:
Use a sequence to generate PKs for CUSTOMER_ID in CUSTOMERS table
Begin at 101 and increment by 1
Use a sequence to generate PKs for TITLE_ID in MOVIES table
Begin at 1 and increment by 1
Use a sequence to generate PKs for MEDIA_ID in MEDIA table
Use a sequence to generate PKs for MEDIA_ID in MEDIA table
Use a sequence to generate PKs for ACTOR_ID in ACTOR table
. . Assume in a University, there are multiple libraries and each library has many student members. A student may be a member in multiple libraries. Each library has its own set of books. Within the library, these books are identified by a unique number. Students can borrow multiple books from subscribed library. Students can also borrow books through inter library loan ie., in case the book is unavailable in his/her subscribed library, the subscribed library avails from the other library in which the student is not a member. . . Draw the ERD
. . 5 (**). Bingo is a game played with 24 integers in the range (1, 75) placed randomly in a 5 x 5 matrix on a card and a free space placed in the middle square of the card. The five columns are named B, I, N, G, and O respectively from left to right. For a card to be valid, it must meet the following requirements: B column can only have integers 1 through 15 I column can only have integers 16 through 30 N column can only have integers 31 through 45 G column can only have integers 46 through 60 O column can only have integers 61 through 75 There is exactly one free space, it is in 3rd square of the N column, and is marked by * on the card. When Bingo is played, 75 balls are placed in a ball machine and stirred. The balls are ejected from the ball machine one at a time and the caller calls the letter and number of the ball ejected in the order that they are ejected. A player marks the numbers called on his card as the numbers are called. For a Bingo, the card must have: 5 numbers that were called in any row, any column, either diagonal or all four corners. The free space may be used to complete any row, column, or diagonal in which it falls. For example, B3, 121, *, 446, and 070 would be a Bingo because they are all on one diagonal. Write a C++ program that plays a simulation of an electronic Bingo game. Have two program options. The first option is the demo mode-a demo mode is required so the program can be graded. In demo mode, the user enters the bingo numbers (i.e. B2, 063, etc.). Separate each value with a space when guessing (inputting to screen). This will allow you to test your logic, results, etc. The second option is game mode. In this mode, the program will randomly generate the bingo numbers. Generate and output one legal bingo card. The middle square, the free square, is marked with an *. Label the card and output with appropriate spacing. Output the bingo numbers called for each card. Check if the bingo number is on the card, if so- mark the cell with an X, and check for a winning pattern listed above. Only one first winning pattern will count. Print a message with the winning card and winning pattern (values). At least one user-defined function must be used. Output should be user friendly. . . Name the program: BingoXX.cpp, where XX are your initials.
. . If bitcoins were sent to a certain address, why only its owner can use them? What is a “double-spending attack” in cryptocurrencies? What is the “51% attack” in Bitcoin? How does a password manager (software) work? What are the main methods for biometric authentication? .