#include using namespace std; int blocks[] = {100, 500, 200, 300, 600}; int processes[] = {212, 417, 112, 426}; int blkSize = sizeof(blocks) / sizeof(blocks[0]); int prSize = sizeof(processes) / sizeof(processes[0]); void FirstFit() { cout<= 0)) { blocks[j] -= processes[i]; check = true; cout<= 0) { blocks[j] = blocks[j] - processes[i]; cout<= 0 && (blocks[j] - processes[i]) < store) { k = j + 1; store = blocks[j] - processes[i]; check = true; } } if (check == false) { cout<= 0 && (blocks[j] - processes[i] > store))) { k = j + 1; store = blocks[j] - processes[i]; check = true; } } if (check == false) { cout<