Question: Assignment purpose: i / o in C + + , control structures ( if / else if / else ) , math in C +
Assignment purpose: io in control structures if else if else math in data types string, double, and int,
formatting output in functions, call by value and call by reference, file input.
You will write a program that will calculate the MELT value of coins based on their silver content. Coins that do not
contain any silver will also be included, see the criteria below.
Initial input: The user will enter their first name and the current market value of one ounce of silver.
Coin input will read from an input file "CoinData.txt: the dollar value of the coinnickeldime
or quarter the year of the coin
calculate and display the current value and the total value for each type of coin nickels dimes, quarters
After all data is read form the file, the total value of each type of coin plus the total will be displayed on the
screen from the main function SEE the template and sample output
DO NOT use Global variables, this is a function assignment
See the Rubric for the point deduction for the use of Global variables
Use programmer defined functions:
Function that reads the data from the file pass by reference parameters
For the following functions use pass by value parameters
You may use a double return type to return the total back to main OR a
Assignment purpose: io in control structures if else if else math in data types string, double, and int,
formatting output in functions, call by value and call by reference, file input.
You will write a program that will calculate the MELT value of coins based on their silver content. Coins that do not
contain any silver will also be included, see the criteria below.
Initial input: The user will enter their first name and the current market value of one ounce of silver.
Coin input will read from an input file "CoinData.txt: the dollar value of the coinnickeldime
or quarter the year of the coin
calculate and display the current value and the total value for each type of coin nickels dimes, quarters
After all data is read form the file, the total value of each type of coin plus the total will be displayed on the
screen from the main function SEE the template and sample output
DO NOT use Global variables, this is a function assignment
See the Rubric for the point deduction for the use of Global variables
Use programmer defined functions:
Function that reads the data from the file pass by reference parameters
For the following functions use pass by value parameters
You may use a double return type to return the total back to main OR a pass by reference parameter
Assignment purpose: io in control structures if else if else math in data types string, double, and int,
formatting output in functions, call by value and call by reference, file input.
You will write a program that will calculate the MELT value of coins based on their silver content. Coins that do not
contain any silver will also be included, see the criteria below.
Initial input: The user will enter their first name and the current market value of one ounce of silver.
Coin input will read from an input file "CoinData.txt: the dollar value of the coinnickeldime
or quarter the year of the coin
calculate and display the current value and the total value for each type of coin nickels dimes, quarters
After all data is read form the file, the total value of each type of coin plus the total will be displayed on the
screen from the main function SEE the template and sample output
DO NOT use Global variables, this is a function assignment
See the Rubric for the point deduction for the use of Global variables
Use programmer defined functions:
Function that reads the data from the file pass by reference parameters
For the following functions use pass by value parameters
You may use a double return type to return the totaLL back to main OR a pass by reference parameter
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
