Category Archives: Computer science and IT assignments

CSS-Html-Calendar

Modify the existing HTML code so that it uses an external CSS file instead of inline CSS.

Start by creating a file called calendar.css and use the <link> tag in the header of calendar.html to link it to that page.

Then create CSS rules in calendar.css based on the style attributes of the HTML elements in calendar.html. Group the rules together based on elements class attributes and/or HTML element types, keeping the exact same styling rules.

When you are finished putting the CSS rules in calendar.css, delete the style attributes for all HTML elements in calendar.html and it should look the same.

Computer Networks Assignment 1

General instructions

This tutor-marked assignment (TMA) should be done after you have completed your study of Unit 1 and Unit 2. Your assignment must be written in MS-WORD or HTML format and, in either case, it must begin with a cover page containing the course number and title, assignment number, your name and your student id, as well as the time you spent on the assignment. The file containing the cover page must be named TMA1.doc or TMA1.htm. If you have more than one file for the assignment, those files and all other files should be accessible through the file containing the cover page, either directly or indirectly through hyperlinks.

Organization of your assignment files
You need to create a root directory or folder named comp347 somewhere on the file system of your computer, and keep all your work related to the course under that directory; for this assignment you need to create a subdirectory or subfolder named tma1 and put all the necessary files for the assignment under that dedicated subdirectory. When you submit your assignment, you must zip the entire subdirectory of tma1 in a zip file named tma1.zip, and send the compressed file for marking through the appropriate drop box on the course home page.

Part one: (30%) short answer questions

1. Run Traceroute (or Tracert on Windows, or whatever similar utility on your computer) between a source and destination in Canada (or in the country where you live) at three different time of the day, summarize your findings at each of the times in terms of average and standard deviation of the round-trip delays, number of routers in the path, and explain your findings. Please read the article at https://support.microsoft.com/en-us/kb/314868 if you are not familiar with the tool.

2. What are the five layers in the Internet protocol stack? Draw a diagram showing what each layer does and how they are related to each other.
What are packet switches, circuit switches, and message switches respectively? Give two examples of packet-switched networks and explain how they work and what features they have.

3. What are processing delay, queuing delay, transmission delay, and propagation delay respectively? Explain in detail why the traffic intensity should be no greater than one (1) when designing a network system?

4. What is Web-caching? Why is Web-caching important especially for big corporations? What problem does Conditional Get in HTTP want to solve? Download Apache from httpd.apache.org, and install and run it as a proxy server on your computer, then write a brief report on what you have done to make it work and how you use it from your Web browser. You are encouraged to search on the internet for Apache as proxy server, select the most relevant articles to read, and include the titles and links in the report.

5. Suppose you have a web-based email account, such as Gmail, and you have just sent a message to a friend, Alice, who accesses her mail from her mail server using IMAP. Further assume that both you and Alice are using smartphone to access emails. Discuss in detail how the message went from your smartphone to Alices smartphone, by listing the series of application-layer protocols that were used to move the message between the two smartphones, as well as all events that occurred at each application layer protocol.

Part two: (70%) solve the following network problems and show your work in detail

Q2.1. (10%) one important factor in the total delay of a store-and-forward packet-switching network is how long it takes to store and forward a packet through a switch. If the switching time of each switching device is 1 microsecond, is this likely to be a major factor in the response of a client-server system where the client is a computer you use to access the internet, and the server is somewhere in Europe? Explain your answer. You can assume the average propagation speed in all media involved is 2/3 the speed of light in a vacuum; you may calculate or estimate the distance between the server and your computer; you need to find out the number of routers/switches in between using Traceroute or Tracert.

Q2.2. (10%) Carefully study Overlay Network in the textbook and other sources. Consider an overlay network with M active peers, with each pair of peers having an active TCP connection. Additionally, suppose that the TCP connections pass through a total of N routers. How many nodes and edges are there in the corresponding overlay network? Draw a graph to show the network for M = 7 and N = 3.

Q2.3. (15%) Consider sending a file of F bytes over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays at any link. The propagation delay on each link is Tp seconds on average.

a) Suppose the network is a packet-switched virtual-circuit network. Assume the VC setup time is Ts seconds. Suppose the sending layers add a total of h bits of header to the file, and the size of each packet is P. How many packets are needed to send the file? How long does it take to send all the packets from source to destination?

b) Suppose the network is a packet-switched datagram network and a connectionless service is used. Now suppose the size of each packet is P including 2h bits of header. How many packets are needed to send the file? How long does it take to send the file to its destination?

c) Finally, suppose that the network is a circuit-switched network. Further suppose that the transmission rate of the circuit between source and destination is R bps. Assuming Ts setup time and h bits of header appended to the file, how long does it take to send the file to its destination?

Q2.4. (20%) In a computer network, two hosts, A and B, are separated by 1,000 kilometres and are connected by a direct link of R = 5 Mbps. Suppose the propagation speed over the link is 2*10^8 meters/sec.

a) What is propagation delay Tprop from A to B through the direct link?

b) What is the bandwidth-delay product R*Tprop?

c) Consider sending a file of 512KB from Host A to Host B. Suppose the file is sent continuously as one big message. What is the maximum number of bits that will be in the link at any given time?

d) Based on the results from b and c, what does the bandwidth-delay product imply?

e) What is the width (in meters) of a bit in the link?

f) Derive a general expression for the width of a bit in terms of the propagation speed s, the transmission rate R, and the length of the link m.

Q2.5. (15%) Suppose within your Web browser you click on a link to obtain a Web page. The content of the web page is not cached in the local caching server, and the IP address for the associated URL is not cached in your local host either, so that a DNS look-up is necessary to obtain the IP address. Suppose that n DNS servers need to be visited before your host receives the IP address from DNS, and each of successive visits incur round trip delay of RTT1, RTT2 … RTTn respectively.

Further suppose that three images, sized 100KB, 120KB and 80KB respectively, are embedded in the Web page associated with the link, which are stored on the same web server as the web page itself, while the size of the Web page is 4KB. Let RTT0 denote the round trip delay between your computer and the server containing the web page, and let R denote the average end-to-end transmission rate between your computer and the Web server. How much time elapses from when you click on the link until you see the entire content of the web page associated with the link? Your calculation should include all the RTTs and transmission delays and show them in a properly simplified mathematical formula.

Array Searches and Sorts

Submit    the    zipped    Eclipse    project including    at    least    Project1.java,    Country.java and   
Countries1.csv.        The    zip    file    should    be    named    <your    last    name>_Project1.zip (for    example,   
Liu_Project1.zip).        The    Countries1.csv    file    contains    information    about    all    155 countries    (and   
regions) in    the    world.        We    shall    call    all    these    places    countries for    our    projects.        The    program   
should    be    well    documented    in    the    format    of    doc    comments    in    Java.        Detailed    formats    are    found   
at    http://www.oracle.com/technetwork/articles/java/index-137868.html.
Requirements:
1. Create a class named Country that will store information about a country and provide
methods to get, and set the data, and compare the countries by several fields.
a. Fields: Name, Code, Capitol, Population, GDP, HappinessRank
b. Constructor
c. Get and set methods for each field
d. Compare method to compare based on Name (expects a Country object as a
parameter)
e. Method to print a country object
2. Create a class named Project1 that will:
a. Prompt user to enter the name of the CSV file, e.g., Countries1.csv, as input to the
system.
b. Parse Countries1.csv and create an array of country objects containing the data in the
file.
c. Offer the user the following options:
1) Print a countries report
2) Sort by Name (alphabetically using Insertion sort)
3) Sort by Happiness Rank (ascendingly using Selection sort)
4) Sort by GDP per capita (descendingly using Bubble sort)
5) Find and print a country for a given name (using binary search if the data is
sorted by name, sequential search if not)
6) Quit
d. Implement the given option, then prompt again. (deal with invalid choice)
Project1 should have main and methods for each option 1-5.
e. The Country report in option 1 should be in this form:  see form in pdf
f. The Country report in option 5 should be in this form:  see form in pdf

IFSM Research paper

A complete description of the research paper requirements can be seen by clicking on the “Research Paper” in the Assignments tab on the top blue navigation bar. You will download the attached requirements file. The second file (“Using the References tool…”) provides additional help on including citations and references in your paper. However, there is a great list of resources found under the Content/Course Resources/Writing Resources link in this classroom. Of particular note is the file titled “APA Requirements for IFSM Courses.” There are also citation examples, a sample paper. and help with grammar, etc.

Excel project 3

Instructions

This final project puts together the functions you used in preceding projects and has you present the data in a PowerPoint presentation. So you will be completing both an Excel spreadsheet and a separate PowerPoint presentation for submission. Please make sure to look at the attached files that contain all the information, and further instructions for this project

malware forensics

I need the lab 2 word document completed by july 11th 8pm eastern time. there is a small disucssion question , I need done by next week too. but for now just the word document. I will send you and attach the additional files need to finish the lab 2 document.

paython Program I

Program I
Due Monday, 29 June 2020, 11:59 PM
Time remaining: 3 days 9 hours
Please choose one of the two programs below.

The program should do the following:

1. football.py: Ask the user to enter two team names. Then, ask the user to enter in the number of touchdowns (6 points), the number of extra points (1 point), and the number of field goals (3 points) (you can ask for safeties if you wish) for each team. Print out the final score of the game. For example, if the user enters Panthers and Warriors with the Panthers having 3 touchdowns, 3 extra points, and 2 field goals, and the Warriors score 2 touchdowns, 1 extra point, and 1 field goal, the program should print:

Panthers 27 – Warriors 16

2. restaurant.py: Ask the user for his/her name. Ask the user for the number of hamburgers ($3.50), cheeseburgers ($4.50), fries ($1.50), and drinks ($1.25) he/she would like. Print out the itemized receipt and the total. For example, if the user’s name is Suzie, and she orders 2 cheeseburgers, 2 fries, and 2 drinks, your program should print the following:

Order Name: Suzie
Hamburgers: 0
Cheeseburgers: 2
Fries: 2
Drinks: 2
Total: $14.50

Community College CS 1 project revisions JAVA

Assignment is already completed mostly– only the revision comments need to be addressed. The attached zip file, which needs to be unzipped, contains many files. Only the GuessingGame.java needs to be worked on. The attached txt file has the latest version of the assignment, which you’ll need to use to replace all the old code in GuessingGame.java to work on. I will attach images of all the instructions involved, but please know that most of the assignment has been done, only the revisions scattered throughout the code will be need to be worked on. Please email me for further questions/complications.

Community College CS 1 project revisions JAVA

Already completed project with revision comments scattered throughout the code by professor. All that needs to be done is the revisions the way he wants them to be done. I have attached all instructions relevant to the assignment, but the majority of the work is completed. Only thing to do is the changes he asks for within the code.

The Ass4p2 zip file contains all relevant things, which needs to be unzipped. The GuessingGame.java is the only thing that needs to be worked on. The second txt file I attached is the latest version of the code, which you’ll need to copy paste into the GuessingGame.java to replace the old version. You do not need to touch the JavaDoc comments that have our names, but please summarize the way the methods interact to fulfill the project instructions in a short 6-10 line paragraph within the JavaDoc. I have already started it, but my teacher says it is insufficient.
PS: The main method is at the bottom and is separated by another JavaDoc header with names/descriptions.

Thank you and please email [email protected] for any questions.

Add some Java code

I put together a very simple base program on code.org, I just need some code added to meet the task criteria – essentially an Action Listener and some algorithm such as:

if button-x is clicked followed immediately by button-y then directed to page which says “correct”, else gets sent to a page that says “incorrect”.

Is that something you can do ? It is fairly simple. I just do not know how to do it.