c++

I need help writing a program in C++. I need it to say there are 2 quarters, 3 dimes, and 1 nickel, then the program should output that the coins are worth $.85.
closed account (jwkNwA7f)
Can you show us your attempt?
Why are you posting this in the Lounge? Post it in the Beginners section.
If you can do Hello World you can do this program just as easily.
std::cout << "There are 2 quarters, 3 dimes, and 1 nickel. The coins are worth $.85."
Last edited on
closed account (3qX21hU5)
I believe he is writing the classic homework question of making a Cash Register Program. Where the user has to enter a amount of change he has (IE $0.81) and then the program will tell the register attendant how many quarters, dimes, nickels and pennies to give the customer.

I am sure a simple Google search can turn up thousands of other threads on this topic which can help with any problem you run into. Also if you do want specific help I would recommend moving this question to the beginners sections of this forum.
Last edited on
Thanks for the replies. And yes, I am a beginner.
Topic archived. No new replies allowed.