In C++, how would I:?

Just how could MY PARTNER AND I write a program to ask for number associated with half-dollars, quarters, dimes, nickels, and pennies and output the total value throughout dollars and cents

get source from individual of the quantity of half-dollars, quaters, dimes, nickels etc
multiple this input through the values my partner and i.e.when user penetrates 4 intended for half pounds do somthing like total = FIVE *.5 and so on
get the the total of us dollars i.e dollars = total / 75 (dollars must be int)
get the cents we.e.cents = total%100 (cent must be int)

end product dollar and cents.

Leave a Reply