Question: c++ , if possibe explain how to make a file file. For example, if the amount is 91 cents, the output written on the file
file. For example, if the amount is 91 cents, the output written on the file would be something like the following: 91 cents can be given as 3 quarter (s) 1 dimes) 1 nickel(s) and 1 penny (pennies) Use coin denominations of 25 cents (quarters), 10 cents (dimes), 5 cents (nickels), and 1 cent (pennies). Your program should consist of functions that perform the following: 1. A function for reading the input value for change from 1 to 99 cents from a file. (25 points) void input_1.its total_contai) Wreads the input value in cents from the y/tort the value in the file in variable referenced by total_cents 2. The function below for calculating the number of coins for each coin denomination: (25 points) 10 compute_coins (int in value Into mount tot Doin_value*25. 10.3.1 amount of How much change to? to turn the concination that in an into cusut A typical function call would be: 3. A function for outputting the values into another file. The function prototype can look likt follow 105 Hint inside the function call the function compute the number of colns in that denomination u for every coln value to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
