Show Bid Request
EZ C++ Intro college program needed
Bid Request Id: 4518
|
|
|
Description:
Practice for call-by reference and file merge:
Problem Statement : Write a program that tells what coins to give out for any amount of change from 1 cent to 99 cents.For example, if the amount were 86 cents, the output would be something like following:
86 cents can be given as
3 quarters 1 dime and 1 penny
Use coin denominations of 25 cents(quarters), 10 cents(dimes),
5 cents(nickels), and 1 cent(pennies).Do not use half-dollar coins.
Your program will use the following function(among others):
intcompute_coin(int coin_value, int& amount_left);
precondition: 0<coin_value<100;0<=amount_left<100.
post-condition:
Function value == number of coin has been set to the maximum number of coins of denomination coin_value cents that can be obtained from amount_left cents.
amount_left has been decreased by the value of the coins, i.e., decreased by number of coin * coin_value.
For example, suppose the value of the variable amount_left is 86. Then after the following call, the value of number will be 3, and the value of amount_left will be 11:
number = compute_coin(25, amount_left);
Include a loop that repeats this computation for new input values until data runs out.Your program should also check errors such as invalid input values and file not existing.
->>>CANNOT BE COMPLEX_THIS IS INTRO to C++ class
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Special Conditions / Other:
need 2 nite or by noon on the 5th
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$10 (USD)
|
Nov 4, 2001 2:11:11 PM EDT
|
9.85
(Excellent)
|
|
|
|
|
|
|
|
|