RAM of a program

Hi,
so I have this project file on my C++ project (Bank Management System) and there is a section which requires me to list the requirements - hardware and software separately.

I use CodeBlocks with MinGW64 as my compiler.

Under Hardware section I am supposed to list
i. RAM
ii. Hard disk
But i am not able to make out what exactly I have to write in their.
Please help


Perhaps ask your tutor for clarification.

Either could be
- RAM and HD used just by the executable program.
- RAM and HD used by the program, with a database of 1M customers.
In case if we are just talking about the executable program, how do I figure out the above mentioned?
Well for hard disk, you just right-click on the exe and check the file size.
For RAM, maybe run the program and then use task monitor to see which of the many memory options fits the bill.
RAM and HD used by the program, with a database of 1M customers.

this line concerns me. Is it asking what your program would need to have all the customers in memory at once? Or is it a real database, where you pull in what you need on demand?

I mean a million records will easily fit into ram if the records are not bloated, that isn't an issue, but is that how the code works?

anyway...
say you have a vector of all the customer class objects in your 'database'.
if you pre-allocate that to hold 1 million, then even with no customers, it will burn up the ram for them all when you get its values from the OS.

for disk size, write the empty million sized vector to a binary file inside the folder with all the program parts that would get installed, and get the folder size. I would add about 10-20% over that as the requirement -- you never want to give disk space needed as an absolute, give yourself a little room.
Last edited on
Topic archived. No new replies allowed.