> ANONYMOUS wrote:
>
> > Hi, will we be getting any samples similar to project 1?
> > For example, if in.txt contains: 0 1 2 3
> >
> > What should I expect from out.txt?
>
> The updated page table and RAM.
I forgot Amitava changed the spec, should be:
0 99 99 99
1 99 99 99
2 99 99 99
3 99 99 99
0,0,0;0,0,0;0,1,1;0,1,1;0,2,2;0,2,2;0,3,3;0,3,3;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;0,0,0;
Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want?
Eg
in.txt:
0 1 2 3 0
out.txt:
Process 0: 0, 4, 99, 99
Process 1: 1, 99, 99, 99
Process 2: 2, 99, 99, 99
Process 3: 3, 99, 99, 99
RAM Contents:
0,0,0; 0,0,0; 1,0,1; 1,0,1; 2,0,2; 2,0,2; 3,0,3; 3,0,3; 0,1,4; 0,1,4; Empty; Empty; Empty; Empty; Empty; Empty;
> Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want?
>
> Eg
>
> in.txt:
> 0 1 2 3 0
> out.txt:
>
> Process 0: 0, 4, 99, 99
> Process 1: 1, 99, 99, 99
> Process 2: 2, 99, 99, 99
> Process 3: 3, 99, 99, 99
> RAM Contents:
> 0,0,0; 0,0,0; 1,0,1; 1,0,1; 2,0,2; 2,0,2; 3,0,3; 3,0,3; 0,1,4; 0,1,4; Empty; Empty; Empty; Empty; Empty; Empty;
There is a specific format. Pretty much the one I provided. Except for the empty sections of the RAM because it isn't specified in the spec what should be printed if RAM is empty. Amitava would have to clarify.
> Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want?
>
> Eg
>
> in.txt:
> 0 1 2 3 0
> out.txt:
>
> Process 0: 0, 4, 99, 99
> Process 1: 1, 99, 99, 99
> Process 2: 2, 99, 99, 99
> Process 3: 3, 99, 99, 99
> RAM Contents:
> 0,0,0; 0,0,0; 1,0,1; 1,0,1; 2,0,2; 2,0,2; 3,0,3; 3,0,3; 0,1,4; 0,1,4; Empty; Empty; Empty; Empty; Empty; Empty;
Also, I should mention the contents of RAM I did was incorrect. The first digit should represent the process and the second should represent the page but I accidently did it the wrong way around.
I'll just change the output to avoid confusion. Shame there is no edit option on the forum:
0 99 99 99
1 99 99 99
2 99 99 99
3 99 99 99
0,0,0;0,0,0;1,0,1;1,0,1;2,0,2;2,0,2;3,0,3;3,0,3;Empty;Empty;Empty;Empty;Empty;Empty;Empty;Empty;