Need Help ?

Expert Answers

(Solved): After reading ITP.pdf file you have to answer the following ...

After reading ITP.pdf file you have to answer the following of these questions:

 

  • What is the problem being solved?
  • What approaches existed at the time that this work was done?
  • What is the proposed approach and how does it compare to earlier approaches?

        What are the main strengths and weaknesses of the paper/proposed approach?

  • After reading this paper List 2 questions at least to ask the presenters.

(Solved): Please answer these questions: 1- You were visiting your ...

Please answer these questions:

 

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:

Select one:

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?

Select one:

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

(Solved): Instructions Download the starter code from Mimir..............

Instructions

  1. Download the starter code from Mimir

                        ?    Do not change the file names. Otherwise, it will not be graded.

                        ?    Filenames

? weatherFunctions.h

? weatherFunctions.cpp

? weather.cpp

                                                        ?    We won’t actually grade this, but you can use main to debug.

  1. Get started
  2. Submit early, submit often on Mimir.

Problem Overview

You are writing a program that analyzes rainfall data collected from weather stations in different cities over a range of days.

  • You will load and analyze rainfall data for different cities for a period of days. 
    • Examples of rainfall on a day are

                                        ?    0 inches

                                        ?    0.5 inches

                                        ?    2.8 inches

                                        ?    1 inch

                                        ?    2023 inches

  • You will read the data from a file into a table (i.e. a two-dimensional array?               ).? 
    • Each row corresponds to a city.?      

                        ?    Each column corresponds to a day.?  

?    The element in the 2D array at the row r? and column ?             c? denotes the amount of?           rain in the city r? on day ?      c? .? 

?    Your 2D array must be structured as we have done in this course. There are other approaches that you might find online, but they are not guaranteed to work with our test cases.

  • You will write functions that analyze the data to find averages and maximum values.

To support automated grading of your program, as you implement functions 

  • You must maintain the ordering of the parameters presented.
    • You’ll have to figure out the datatype, etc. for each parameter.
  • You must keep the exact function name.
  • You must ensure that the function signature (i.e. parameters) results in the function operating as indicated.
  • Use data types that match the description. 
    • If you need a floating-point number, use a double?   .?

                        ?    If you need an integer, use an int? .?

                        ?   If you need an index or a size type, use a size_t or? unsigned int? .?

                                        ?    Do not use unsigned int.

                        ?    If you need a string, use the C++ string class.

Allowed Includes: use of an “illegal” header file will result in a zero (0) on the exam?

  • iostream
  • fstream
  • string
  • weatherFunctions.h

You may assume that the data/input has no errors unless indicated otherwise.

It is recommended to use the following compiler flags when testing locally:

 ?g++ -std=c++17 -Wall -Wextra -pedantic-errors

To check for memory leaks, add the Address Sanitization flag:

 ?g++ -std=c++17 -Wall -Wextra -pedantic-errors ?-fsanitize=address,undefined

Example

This is an example that illustrates the use of the functions you will write. See the ?detailed function 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

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

Table

2.0

0

0.4

0

3.2

8

 

With Other changes

  • Number of cities - 2
  • Number of days - 3

 

Given a file containing the following data (?cities2.txt?):

3 3

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

Table

2.0

0

0.4

0

3.2

8

1.2

0.25

0.3

0

0

0.1

2.3

2.9

4.25

 

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.

Required Functions

You are required to provide these functions, but you may add additional helper functions that support the required functions.

 add_cities_from_file

Input Parameters

  • 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.

File Format

<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>

Return

  • 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

                        ?    Else

                                        ?    resize the table and add the new data

  • Remember that resizing includes deallocating the old array

Other changes

  • updates number of cities
  • updates number of days

Throws 

? std::invalid_argument? (hereafter “invalid argument”) 

                        ?    if unable to open the file

?    If the number of days in the input file is not equal to the number of days in the existing table

 destroy_table

Input Parameters

  • pointer to a table (i.e. two-dimensional array)
  • number of cities

Return

  • None (void)

Other changes

  • Deallocates table from the heap

Throws

        ?    Invalid argument

                        ?    If number of cities is zero

 get_average_rainfall_between_days_given_city

Input Parameters

  • pointer to a table (i.e. two-dimensional array)
  • number of cities
  • number of days
  • index of start day
  • index of end day
  • index of city for which to find the average rainfall

Return

  • Average rainfall for given city from start day to end day (inclusive)

Other changes

  • none

Throws

        ?    invalid argument

                        ?    Invalid table (table is nullptr)

                        ?    Invalid index of city (index >= number of cities)

                        ?    Invalid Start Day index (index >= number of days)

                        ?    Invalid End Day index (index >= number of days or index < index of start day)

 get_average_rainfall_between_days_all_cities

Input Parameters

  • pointer to a table (i.e. two-dimensional array)
  • number of cities
  • number of days
  • index of start day
  • index of end day

Return

  • Average rainfall for all cities between start day and end day (inclusive)

Other changes ?     none Throws

        ?    invalid argument

                        ?    Invalid table (table is nullptr)

                        ?    Invalid Start Day index (index >= number of days)

                        ?    Invalid End Day index (index >= number of days or index < index of start day)

 get_max_rainfall_all_cities_given_day

Input Parameters

  • pointer to a table (i.e. two-dimensional array)
  • number of cities
  • number of days
  • index of the day for which to find the maximum rainfall

Return

  • Maximum rainfall for all cities for the given day

Other changes

  • none

Throws

        ?    invalid argument

                        ?    Invalid table (table is nullptr)

                        ?    Invalid number of cities (zero cities)

                        ?    Invalid Day index (index >= number of days)

 get_max_rainfall_given_city

Input Parameters

  • pointer to a table (i.e. two-dimensional array)
  • number of cities
  • number of days
  • index of the city for which to find the maximum rainfall

Return

  • Maximum rainfall for the specified city for all days

Other changes ?     none Throws

        ?    invalid argument

                        ?    Invalid table (table is nullptr)

                        ?    Invalid number of days (zero days)

                        ?    Invalid index of city (index >= number of cities)

(Solved): The purpose of this problem set is to gain familiarity with ...

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 ti­tle.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:

56

5.9

Miss Jerry

41

6.1

Soldiers of the Cross

6

3.8

Bohemios

594

6.1

The Story of the Kelly Gang

15

4.5

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. MovieR­ating.java is a class for storing a record of movie information. Finally, MovieR­anker.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).

(Solved): Background Information: You have been contracted by a small...

Background Information:

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. 

Assignment Deliverable:

Using the tables created for the midterm project

In order to be eligible for full credit, you must complete the following tasks.

  1. Create a view called TITLE_UNAVAIL to show the movie titles and media_id of the media not returned yet.
    1. The view should not allow any DML operations.
  2. Create the following sequences to be used for primary key values:
    1. Use a sequence to generate PKs for CUSTOMER_ID in CUSTOMERS table
      1. Begin at 101 and increment by 1
    2. Use a sequence to generate PKs for TITLE_ID in MOVIES table
      1. Begin at 1 and increment by 1
    3. Use a sequence to generate PKs for MEDIA_ID in MEDIA table
      1. Use a sequence to generate PKs for MEDIA_ID in MEDIA table
    4. Use a sequence to generate PKs for ACTOR_ID in ACTOR table
      1. Begin at 1001 and increment by 1
  3. Create records in your tables. You can use the file, OracleFlix_SQL_Project_Tables.pdf

Actions

 as a guide to loading data in your tables.

    1. Use www.imdb.com (Links to an external site.) to find at least 6 titles for your movies table. 
    2. Create at least 6 fake records for your customers table.
    3. You will add data to the rest of the tables based on what is loaded into customers and movies.
  1. Create an index on the last_name column of the Customers table.
  2. Create a synonym called TU for the TITLE_UNAVAIL view.

(Solved): . . 10 int a; float b=3.c=18.6; ac/b; Edit Insert Format To...


. . 10 int a; float b=3.c=18.6; ac/b; Edit Insert Format Tools Table 12pt Paragraph B ? ? ?? T2 Background color 20 ? 8 au ?
. . 10 int a; float b=3.c=18.6; ac/b; Edit Insert Format Tools Table 12pt Paragraph B ? ? ?? T2 Background color 20 ? 8 au ? O words </> .

(Solved): . . Assume in a University, there are multiple libraries an...

. . Assume in a University, there are multiple libraries and each library has many student members. A student may be a member

. . 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

(Solved): C++ PLEASE AND EXPLAIN THANKYOU!! . . 5 (**). Bingo is a gam...

. . 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 frC++ PLEASE AND EXPLAIN THANKYOU!!

. . 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.

(Solved): . . If bitcoins were sent to a certain address, why only it...

. . If bitcoins were sent to a certain address, why only its owner can use them? What is a “double-spending attack” in crypto

. . 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? .