Question: Assignment purpose: i / o in C + + , control structures ( if / else if / else ) , math in C +

Assignment purpose: i/o in C++, control structures (if/ else if/ else), math in C++, data types string, double, and int,
formatting output in C++, 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 coin(5(nickel),10(dime),
or 25(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 4 programmer defined functions:
Function that reads the data from the file (3 pass by reference parameters)
For the following functions use 3 pass by value parameters
You may use a double return type to return the total back to main OR a
Assignment purpose: i/o in C++, control structures (if/ else if/ else), math in C++, data types string, double, and int,
formatting output in C++, 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 coin(5(nickel),10(dime),
or 25(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 4 programmer defined functions:
Function that reads the data from the file (3 pass by reference parameters)
For the following functions use 3 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: i/o in C++, control structures (if/ else if/ else), math in C++, data types string, double, and int,
formatting output in C++, 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 coin(5(nickel),10(dime),
or 25(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 4 programmer defined functions:
Function that reads the data from the file (3 pass by reference parameters)
For the following functions use 3 pass by value parameters
You may use a double return type to return the totaLL back to main OR a pass by reference parameter
Assignment purpose: i / o in C + + , control

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!