In this program, I am suppose to enter an amount that the customer owes, how much he/she paid, and their change. I already figured that out, what I can't figure out is that the program should also calculate & display the amount in how many dollars, quarters, dimes, nickels, & pennies to return to the customer.
//output items
cout <<"Customer's change: \n\n" <<result<<endl;
cout <<"___________________________\n\n";
cout <<"Dollars: " <<result / 1<<endl;
cout <<"\n";
cout <<"Quarters: " <<result / .25<<endl;
cout <<"\n";
cout <<"Dimes: " <<(result / .10)<<endl;
cout <<"\n";
cout <<"Nickels: " <<(result / 0.05)<<endl;
cout <<"\n";
cout <<"Pennies: " <<(result / 0.01)<<endl;
cout <<"\n\n\n";
if anyone could please help me i'm too new to programing i been trying really hard to figure it out, if anyone could help me please let me know so i can send the rest of the code thank.