Question: ... THIS IS MY ACTIVITY 2 PLEASE REFER THIS TO MY ASSIGNMENT. #include #include using namespace std; int main() { string coin[6] = {Penny, Nickel,

... THIS IS MY ACTIVITY 2 PLEASE REFER THIS TO MY ASSIGNMENT....

THIS IS MY ACTIVITY 2 PLEASE REFER THIS TO MY ASSIGNMENT.

#include #include

using namespace std;

int main() { string coin[6] = {"Penny", "Nickel", "Dime", "Quarter", "Half dollar", "Dollar"}; float weight[6] ={2.50, 4.60, 2.27, 5.67, 11.34,8.11}; float amount[6] ={0.01, 0.05, 0.10, 0.25, 0.5, 1}; float num[6]; float totalW = 0; float totalA = 0; for(int x = 0; x > num[x]; totalW= totalW + (num[x]* weight[x]); totalA= totalA + (num[x]* amount[x]); } cout

THIS IS C++ CODE. (DON'T USE ADVANCE CODE)

what i code there is my activity 2 that will be the solution in 1,2,3 questions

Act#5: User-Defined Function for Act#2&Act#3 A. Remember Activity #2 Coins and Coins Reverse, do the following: Create a Program with the following details: 1. A Function to do the COINS (refer to Act#2a problem) 2. A Function to do the COINS REVERSE (refer to Act#2b problem) 3. In the main program, ask the user to choose from a menu and call the appropriate function according to the user's choice. Loop the choices until exit. Note: You can define more than 2 functions depending on your need and decide which is best to apply to your functions (Return a Value or Does not Return a Value) Sample Output: 1 COINS 2 COIN REVERSE 3 Exit Program Choice: 2 Enter Peso Amount(Php): 25.89 10 2 5 1 1 0.25 0.10 0.05 0.01 0 3 1 0 4

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 Databases Questions!