Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

This answer was rated:

For LogicPro only: Design a C++ program in which a class…

For LogicPro only: Design a...
For LogicPro only: Design a C++ program in which a class should manage the free and allocated space. You should use a dynamic node implementation of link list to implement both lists for this assignment. You should be able to request memory blocks for jobs and de-allocate the memory blocks when the job is done. You should also be able to ask how much free memory is currently available, how much allocated memory is currently in the system, what is the largest block of free memory available, what is the total amount of memory being managed by the object, and how much memory a specific job has allocated. You should also be able to print a report listing all jobs in the system with how much memory each has allocated and where that memory is and a report that basically does a memory dump showing usage of all memory.
Show More
Show Less
Ask Your Own Homework Question
Answered in 1 minute by:
1/21/2018
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified

Hi

Ask Your Own Homework Question
Customer reply replied 7 months ago

Hello

Welcome

Thank you for asking me. Hope you are doing well.

Zip all files; upload the zipped file to http://wikisend.com and post download link here.

Ask Your Own Homework Question
Customer reply replied 7 months ago

This is something you make on your own.

Here are some details:




  • The operating system will use two lists to manage this memory.

    1. FREE: This list contains information on all free continuous blocks of memory.

    2. ALLOCATED: This list contains information on all allocated blocks of memory.





  • Processes must be given contiguous blocks of memory. If there is no single free block of contiguous memory large enough to satisfy the request then it must be rejected.




  • To start, FREE will have one node that represents the whole of the memory. ALLOCATED will be an empty list.






  • The nodes for these lists need to keep track of the size of the block and where the next node is. Each node thus has the following fields: Start Byte, End Byte, Size, Next Block. In addition, the ALLOCATED list nodes also need the Job #. Assume the Operating System is managing 256M of memory.






  • If a block is returned to the FREE list, it should be inserted in the correct order. If it can be combined with other blocks to create a larger free block, it should be.

    If a block is inserted into the ALLOCATED list, it should be in order.


    You need to create a Memory Class that will manage a block of continuous memory. You should be able to set the size of the block when you create the Object of the class.



  • For this program, you should have 2 classes, a linked list class (List.h, List.cpp) and a memory class (Memory.h, Memory.cpp). You'll also need a .cpp file to contain your main program which should test your memory class.



  • The main program should have/do these functions:


Memory mem1(256); // Create a memory manager for 256M of memory

mem1.allocmem(3, 56); // Request 56M of memory for job 3

mem1.freemem(3); // Free up memory used by job 3

cout << “Largest Free block ” << mem1.maxfree_block() << endl;

cout << “Amount of Free Memory “ << mem1.totalfree_mem() << endl;

cout << “Amount of allocated Memory “ << mem1.total_allocated() << endl;

cout << “Amount of total memory “ << mem1.maxmem() << endl;

cout << “Job 3 has “ << mem1.job_memory(3) << “M of memory” << endl;

mem1.report_jobs (); // Report all jobs with memory information

mem1.report_memory(); // Report all memory usage list in order of blocks

(Sorry for my information dump).

What is the deadline?

Ask Your Own Homework Question
Customer reply replied 7 months ago

Tuesday, January 23rd at 11:59pm

okay. will have it ready. Sending offer per the efforts. Let me know once accepted

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
LogicPro and 87 other Homework Specialists are ready to help you
Ask your own question now
Customer reply replied 7 months ago

I accepted

Thanks

Have a good time ahead

Ask Your Own Homework Question
Customer reply replied 7 months ago

Thanks you too

Welcome

Ask Your Own Homework Question
This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,507
13,507 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,507 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,699 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,194 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
For LogicPro only: Design your own linked list class named
For LogicPro only: Design your own linked list class named IntList in C++ to hold a series of integers. Include the following public member functions, named as shown: Member Function Description Defau… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
I need help with Java homework. The task this week is to
The task this week is to complete the following 2 structures using a linked list: Stack Queue Assume the occurrence of a linked list node is represented by the object “Node” and its “Data” and “NextRef” attributes. Part 1 Assume a “Head” node exists with the NextRef attribute pointing to the first node in the stack or being null if the stack is empty. Create pseudo code for the following 3 stack methods, showing the logic tied to the inverted list. Include a summary of these actions. push( item ) pop( ) display( ) Part 2 Assume “Front” and “Rear” nodes exist with the “NextRef” attributes pointing to the first and last nodes of the queue or being null if the queue is empty. Create pseudo code for the following 3 queue methods, showing the logic tied to the inverted list. Include a summary of these actions. enqueue( item ) dequeue( ) display( ) Week 1 Deliverables: Pseudo code implemented for both the stack and queue methods Documented pseudo code Add the completed pseudo code and discussion to the Key Assignment template Section 1: Lists, Stacks, and Queues. … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Write two classes: Linked, and Array. The Linked class
write two classes: Linked, and Array. The Linked class should be placed inside it's own header file, Linked.h. Array should be placed in it's own header file, Array.h. Class Linked: This class impleme… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Class LinkedList: This class implements a list as a linked
class LinkedList: This class implements a list as a linked structure. It has an embedded structure ( struct Node ) defining the nodes of the linked list. It has a private Node pointer, head, that stor… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Write a simple inventory management system electronics
Write a simple inventory management system for an electronics store. The inventory system should have the following functionalities: BuildInventory: read a text file containing electronics products in… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
write a program to manipulate strings using pointers. The program
write a program to manipulate strings using pointers. The program will start out by displaying a menu to ask user what to do as shown below: Simple String Manipulation Program Load string Show string … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Implementing Lists, Stacks, Queues and Priority QueuesA
Implementing Lists, Stacks, Queues and Priority Queues A double linked list is a list for which besides the next element in the list, a pointer to the previous element is kept, at the level of each el… read more
active1065
active1065
Bachelor
82 satisfied customers
Extend the List class from Homework 4 and 5 using inheritance
Extend the List class from Homework 4 and 5 using inheritance to create a new class, ReversePrintingList. The new class should implement a method that prints the values of the nodes in the list in rev… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
This assignment is related to the last assignment . Take the
This assignment is related to the last assignment . Take the Node class that you created for Assignment 4 and repurpose it into a base class for nodes. Then create two new Node classes that inherit fr… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
Create a List class with the following interface (at a minimum): List::addItem
Create a List class with the following interface (at a minimum): List::addItem //add an item to the list List::getLargestValue //find the largest value stored in the list In addition, create a Node cl… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
***For LogicPRO Only*** You will be modifying the program you
***For LogicPRO Only*** You will be modifying the program you wrote for programming assignment #4. The program will store the realty listings data as a dynamically allocated LINKED LIST, instead of an… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
In a language such as C++ with pointers you can construct a
In a language such as C++ with pointers you can construct a linked list, or chain, where you have a class that can act as a node or a link, and that class includes a pointer to that same type of class… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
For IngoU Only:" I need another help for this week as I told
For IngoU Only:" Hi I need another help for this week as I told you; here the info I need help for part 2 of the homework.(Part 2 . It asks to add code to the project to implement other memory managem… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
Linked Lists IThis assignment demonstrates linked lists
Linked Lists I This assignment demonstrates linked lists and how they can be managed from an object oriented design perspective. Create a StarCatalog application that maintains a list of stars and som… read more
Seanna
Seanna
Tutor
1,781 satisfied customers
hi, do you still have the solution to this problem that
hi, do you still have the solution to this problem that you worked because I am stuck and I have this due in 4 hours. Please let me know- http://www.justanswer.com/computer-programming/4rgra-sometimes… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
Assignment 3 Write a program that will do the following: Continuously
Assignment 3 Write a program that will do the following: Continuously prompt the user for words and store the words in a linked list, keeping the words in alphabetical order. Do not use an array to st… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
13,507 satisfied customers
It is sometimes desirable to be able to handle numbers of
It is sometimes desirable to be able to handle numbers of arbitrary size, without having to consider the limit of the machine representation or to rely on a utility library. A linked list, implemented… read more
ATLProg
ATLProg
Sr Software Engineer
Master\u0027s Degree
46 satisfied customers
Job list Job Number Memory Requested J1 700K J2 500K J3 740Ka
Job list: Job Number Memory Requested J1 700K J2 500K J3 740K a. Use the best-fit algorithm to allocate the memory blocks to the three arriving jobs. Memory list: Memory Block Size Block 1 610K (low-o… read more
abhi_iitian
abhi_iitian
Bachelor's Degree
1,543 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x