Given three values representing counts of quarters; dimes, and nickels, output the total amount as an equivalent 1) numb
Posted: Thu Jul 14, 2022 2:06 pm
Given three values representing counts of quarters; dimes, and nickels, output the total amount as an equivalent 1) number of nickels, 2) number of pennies. 3 ) dollars and cents Output each floating point value whth two digits after the decimal point, which can be achieved by executing cout \& fixed (K) setprecizion (2) ; once before ali other cout statements. Ex if the input is i5 43 Where 5 is the number of quarters, 4 is the number of dimes, and 3 is the number of nickeis, the output is: number of nickels: 36, numbor of pennfes: 180 , dollar amount: $1.80 For simplicity, assume input is non negative.
2 #include 3 using namespace std; 4 5 int main( ) \{ 6 double dollars; 7. int quarters; 8 int dimes; 9 int nickels; 11/∗ Type your code here. * 12 return θ 13 return 0;
2 #include 3 using namespace std; 4 5 int main( ) \{ 6 double dollars; 7. int quarters; 8 int dimes; 9 int nickels; 11/∗ Type your code here. * 12 return θ 13 return 0;