#include <iostream>
#include <vector>
#define NUM_GUESSES 3
int main()
{
std::vector<int> userGuesses;
for (int i = 0, input; i < NUM_GUESSES; i++)
{
std::cin >> input;
userGuesses.push_back(input);
}
}
Answer:
16 RAM chips
Explanation:
To calculate the number of RAM chips needed, we divide the total size of the main memory by the size of each RAM chip. Hence:
Number of RAM chips required = Main memory size / size of one RAM
2M = 2²¹, 16 = 2⁴, 256K = 2¹⁸, 8 = 2³
Hence:
Number of RAM chips required = (2²¹ * 2⁴) / (2¹⁸ * 2³) = 2⁴ = 16
Therefore 16 RAM chips are necessary
You are not crazy!
It goes straight to voicemail either way!
Hope this helps!