Popular Blog
In this assignment, let's build a Popular Blog by applying the CSS concepts we learned till now.
Instructions:
Note
Write a program to implement Symbol Table using the concept of Hashing with separate chaining. The idea is to make each cell of hash table point to a linked list of records that have same hash function value.
Input: The identifier, its type and line number , which may contain repetitive entries.
Hashing function : a) Compute the sum of ASCII values for a given input to identify the cell in hash table b) The size of the hash table is 100.
Expected output: i) The hash table (Symbol table) along with identifiers, type, line number
Write JSP programs which can perform the following tasks: (you may create a single or multiple web pages for these tasks): (i) A page requires input of three variables a, b, and c, it then finds and displays the largest of these three variables. Write the JSP code for the above. (ii) Create a login page for students which should create two cookies namely userID and password on successful login by a student.
A book store maintains the list of all its Books using XML. A Book consists of an ISBN number, which can be used as its attribute in the XML document. The following information is stored about the Book - book title, list of authors, name of the publisher and price of the Book. Create an XML document containing information of five Books. Also create the DTD to verify the XML document created by you
The Super-class Write a class called Item. The Item class represents all that is common between various multimedia items. It should have the following attributes (fields): a) a String name to store the name of the item. b) a String comment to store a comment about the item. c) a double value to store how much the item cost. It should have appropriate constructors and at least the following methods a) getters and setters for the attributes. b) a public String toString() method that returns a String representation of the Item. c) a method void depreciate() that decreases the value of the item by 5%.
Write a test program that creates some items of different types, adds them to the database, removes one of them and then prints out a list
Write a Database class that creates and maintain a list of multimedia items. Your class must use the subclasses defined above to provide the following minimum functionality: a) add an item to the list b) remove an item to the list c) print out a list of items (to the screen) d) depreciates each item
Research the ‘SolarWinds Hack’ and discuss your findings. Your discussion should put an emphasis on the follow (not limited to the list): • the assets of Solarwinds (including the type of data exposed and affected bodies) • which vulnerability was exposed (including the risk before the breach and measure that were in place to avoid it) • threat actor • the timeline of the attack • threat vector (provide details) • solarwinds defense and post attack productivity the discussion should be one page long, use more than one source and reference.
Write an algorithm to calculate income tax is annual income is given text as calculate followers
Objective: Write C programs which implement following page replacement policies.
a) First In First Out (FIFO)
b) Least Recently Used (LRU)
To avoid wasting processor time waiting for an active process to become unblocked. The OS will swap
one of the process out of the main memory to make room for a new process or for a process in
Ready- Suspend state. Therefore, the OS must choose which process to replace. Thus, when a page
fault occurs, the OS has to change a page to remove from memory to make room for the page that
must be brought in. If the page to be removed has been modified while in memory it must be written
to disk to bring the disk copy up to date. Replacement algorithms can affect the system's
performance.
Replace the page that has been in memory longest, is the policy applied by FIFO. Pages from memory are removed in round-robin fashion. Its advantage is it's simplicity.