I want the following.

Write a program that implements the FIFO and LRU page-replacement algorithms ( Virtual Memory)

1) Read the size of reference string from keyboard
2) Generate a random page-reference string where page numbers range from 0 to 9
3) Create a input file with generated reference string
4) Read the number of page frames vary from 1 to 7 from keyboard
5) Read the random page-reference string from input file and apply to each algorithm
6) Create a output file with the number of page faults incurred by each algorithm
7) Assume that demand paging is used
8) Test your program with 20 reference strings and three difference number of page frames (1, 4, and 7)
9) Submit your source code, input file, and three output files for each number of page frames (1, 4. and 7)

my email id is <snipped>

Salem commented: Gimme an 'F', gimme an 'A', gimme an 'I', gimme an 'L' -4
|                                        | X |
|             CONGRATULATIONS!               |
|                                            |
|   You are the lucky moron of the moment,   |
|         by ignoring forum rules.           |
|       Click OK to claim your price.        |
|                                            |
|                 +------+                   |
|                 |  OK  |                   |
|                 +------+                   |
commented: Ha! +2
commented: Love it! :icon_razz: +17
commented: Impressive wit. +29
commented: Perfect !! +3
commented: Excellent response! +22

good job
and good linking

good job
and good linking

I totally agree with Jiya.

This isn't the place where you get the ready made programs but for asking the queries.

All the new members must read the instructions before posting your queries.
This is the place where people get technical assistance.