I have an assignment I need completeld

I will attach a document with requirements.

Get Help With a similar task to - I have an assignment I need completeld

Login to view and/or buy answers.. or post an answer
Additional Instructions:

CPSC 3333 Programming Assignment 4 Overview It is important that you name the required classes and methods exactly the same (case included) as specified. Testing will fail if you do not. This week we will write a simulation of the least recently used (LRU) algorithm Deliverables You must submit the following file: LruC.java LruS.java Specifications For this assignment you can use any library provided by java (e.g. ArrayList, LinkedList, etc.) I will give you the freedom to select what you think works best. You may also have as many private variables and private methods as you see fit. You are only allowed to have the public methods specified below. You are not allowed to have any public variables. CPSC 3333 Programming Assignment 4 • LruC.java This will simulate the page table in a computer system. The program should be flexible enough to have from 1 to n entries in this table. Each page table entry will have two properties, the valid/invalid value, and the physical memory (RAM) address. Each physical address must be unique. You will use the counting method mentioned in the textbook / videos to track which page to replace. All pages will start as invalid. The constructor will take the 1 parameter, the number of pages in the table (integer). This class must have three public methods: boolean addPage(int) This will add a page to the page table. The parameter passed in will be the physical address of this block of memory. The method will return true if that block was already in the page table (i.e. the block is valid) and return false if the block was not in the page table (i.e. the block is invalid). boolean checkPage(int) This will check the valid bit of a page in the page table. The parameter passed in will be the physical address of this block of memory. The method will return true if that block was already in the page table (i.e. the block is valid) and return false if the block was not in the page table (i.e. the block is invalid). Dictionary<int,boolean> getPages() This will return a Dictionary containing all the pages, and their current valid/invalid values. The int is the unique memory address, the boolean is the valid bit. True is valid and False is invalid. CPSC 3333 Programming Assignment 4 • LruS.java This will simulate the page table in a computer system. The program should be flexible enough to have from 1 to n entries in this table. Each page table entry will have two properties, the valid/invalid value, and the physical memory (RAM) address. Each physical address must be unique. You will use the stack method mentioned in the textbook / videos to track which page to replace. All pages will start as invalid. The constructor will take the 1 parameter, the number of pages in the table (integer). This class must have three public methods: boolean addPage(int) This will add a page to the page table. The parameter passed in will be the physical address of this block of memory. The method will return true if that block was already in the page table (i.e. the block is valid) and return false if the block was not in the page table (i.e. the block is invalid). boolean checkPage(int) This will check the valid bit of a page in the page table. The parameter passed in will be the physical address of this block of memory. The method will return true if that block was already in the page table (i.e. the block is valid) and return false if the block was not in the page table (i.e. the block is invalid). Dictionary<int,boolean> This will return a Dictionary containing all the pages, and their current valid/invalid values. The int is the unique memory address, the boolean is the valid bit. True is valid and False is invalid.

Related Questions

Similar orders to I have an assignment I need completeld
17
Views
0
Answers
Nested imbalanced design of expriment using Box-Adjusted wald-type test
I need to provide statistical analysis of a nested design non-balanced design of experiment. I am hoping to have the implementation in either R, SPSS, or both. I will need the answers to be provided as shown in the attached file (Project.docx), and also wo...
32
Views
0
Answers
CMPT 200 Coding Homework
Write a class called Fraction that can store a rational number (reminder: those numbers that can be expressed in the form a/b, where a and b are integers are rational numbers). For example, a variable with a value of ½ would be created using oneHalf ...
15
Views
0
Answers
Artificial Inteligence System Technique
This is a Master Degree course and I have attached example questions, there are 5 questions and only 3 need to be answered. We will get the actual questions on the day of the exam and they need to be completed within 2 hours, which means the expert has to ...
18
Views
0
Answers
Simulating Networks
Here are the details of first assignment for Computer Networks class. This is a pretty basic assignment with very little work but you will have to do initial setup for virtual box on your machine. Here are the details on how to do the setup: Download virt...