This sounds like a homework question. If this program is really for your mother, she would be better off using a spreadsheet program, like Excel. Anyhow, you do
not need to use the modulus operator (which gives the remainder of a division) for this problem. If you still want help, post what code you have written already, and I'll help you out. I'm just not going to do it for you -- especially if it's homework.