Description
This is a C++ program question. Please use Visual Studio to complete this. Thank you.
Unformatted Attachment Preview
Purchase answer to see full attachment
Explanation & Answer
//introduce libraries#include <iostream>#include <fstream>using namespace std;//begin mainint main(){//declare variablesdouble tolerance=.02;int elements;cout << "How many coins are in the array?" << endl;cin >> elements;int diameterArray[elements];int weightArray[elements];double pennyHigh;double pennyLow;double pennyHighW;double pennyLowW;double nickelHigh;double nickelLow;double nickelHighW;double nickelLowW;double dimeHigh;double dimeLow;double dimeHighW;double dimeLowW;double quarterHigh;double quarterLow;double quarterHighW;double quarterLowW;int pennyAmount;int dimeAmount;int nickelAmount;int quarterAmount;int noneAmount;//tolerance inputpennyHigh=(tolerance+1)*19.05;pennyLow=(1-tolerance)*19.05;pennyHighW=(tolerance+1)*2.5;pennyLow...