C++ Related Excerise

I'm new to C++ and I'm currently taking a class. My instructor gave me an exercise to do with I don't understand. The exercise is as follows:

Develop an algorithm that calculates the monetary value of a handful of coins. You may assume that there are quarters, dimes, nickels, and pennies. The total value will be under $1.00.

Can anyone help me out?
First think that how would you do it oin paper. I mean if you were given certain coins, how will you calculate the value using pen and paper.

Then try to convert that formula into a program.

Start writing code and come here with the issues/errors. Without code nobody is gonna help you here.
Ok. I'll start writing some code now.
Topic archived. No new replies allowed.