Please help

Hello all,

I have to compile code. I am new to coding so having some issues. Maybe someone can walk me through step by step. I enjoy using code in C++ and am using DEV C++, which is really easy to use. Thanks for any help.
The assignment is:

For the program, you will write a utility that converts dollars to coins. It is a simple program that must have the following:

Multiple outputs to the screen
At least one input
The use of integers and strings
Looking or repetition with Do..While, If..Else
Must have some output text to show correct value of coins that would be converted from the dollars.
Code must include comments explaining your reason for the code section or what the code is doing
Code must compile
Whole dollars only. If value is less than 1 or 0, the program should break or exit.
Turn in your source code (.cpp file) to your instructor with your filename including your first and last name and your compiled executable.
You mention that you have several issues, but what are those issues?

Do you have any code of your own so far on this problem?
you said that this is a problem!
if you have any code that may has problem, please add it here.
and say what is the problem
Is this code acceptable per my assignment? I don't understand what the multiple outlets are, as well as how to package my source code to send it to the school.

#include <iostream>

int main()
const int PENNY = 1;
const int NICKEL = 5;
const int DIME = 10;
const int QUARTER = 25;
int money;
std::cout << "Please enter in a dollar amount to convert it to change ";
std::cin >> money;
if ( money < 1 )
return -1;
std::cout << "\nNumber of pennies in " << money << " dollars: " << ((money * 100) / PENNY) << std::endl;
std::cout << "Number of nickels in " << money << " dollars: " << ((money * 100) / NICKEL) << std::endl;
std::cout << "Number of dimes in " << money << " dollars: " << ((money * 100) / DIME) << std::endl;
std::cout << "Number of quarters in " << money << " dollars: " << ((money * 100) / QUARTER) << std::endl;
return 0;
Topic archived. No new replies allowed.