Question: Create these program using c++ Kreate a program for each of the ff using C++ and explain your code User-defined Functions using predefined function Loop
Create these program using c++
Kreate a program for each of the ff using C++ and explain your code User-defined Functions using predefined function Loop with Condition Array Manipulation Ajax Vending Company has a way to determine how many coins are in a pile. They weigh them. The following are the coins weigh. Coin Category 1 Penny 1 Nickel 1 Dime 1 Quarter 1 Half Dollar 1 Dollar Weight 2.50g 4.60g 2.278 5.678 11.34g 8.11g Amount 0.01 0.05 0.10 0.25 0.5 1 Store the gram equivalent of each coin using variables. Access these variables and use it in the program. The Program must accept the number of coins for each category and calculate the total grams and the total Dollar amount Example Representation of data: Penny = 8 Nickel = 9 Dime = 6 Quarter = 2 Half Dollar = 4 Dollar = 5 Total Amount ($) = 8.63 Total Weight(g) = 132.27 COINS REVERSE Accept a Peso amount from the user and determine the equivalent quantity (the number of coins) in each category Example Representation of data: Peso Coin Amount (Php): 25.89 10 = 2 5 = 1 1 = 0 0.25 = 3 0.10 = 1 0.05 = 0 0.01 = 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
