Assume that a system has a 32-bit virtual address. Write a JAVAprogram that is passed a virtual address (in decimal) and page sizein KB on the command line and have it output the page number andoffset for the given address. As an example, your program would runas follows:
Enter page size:2
Enter a virtual address: 10500
The address 10500 contains: page number= 5 offset= 260
Expert Answer
An answer will be send to you shortly. . . . .