Purpose: To enter 2 arrays (memory request and partition),assign memory requests to partitions using First Fit and Best Fit memory management ,Display first address assigned , last address assigned and internal fragmentation. Display all unassigned requests as “Not assigned”.
Input: 5 integers for memory partition array and 5 integers for memory request array.
Preconditions: Only integers should be used for memory partition and memory request
Output: First address ,last address, internal fragmentation and unassigned request will be displayed for first fit and best fit
Postconditions: Memory requests are allotted only if all numbers are positive integers