Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
coins
- Page 1
Re: Word Association Game
Community Center
Geeks' Lounge
17 Years Ago
by Disaster Prone
coins
---> cash register
converting rupees into coins
Programming
7 Years Ago
by Muntaha_1
…Remember that you may not always have enough
coins
. So the program should be able to covert…a mix of 2-rupees and 1-rupee
coins
. The program should also take as input …of 5-rupees, 2-rupees and 1-rupee
coins
available. The program should display the amount … of numbers of 5-rupees
coins
, 2-rupees
coins
and 1-rupee
coins
if possible with the available …
Re: 10 Coins Puzzle
Programming
Software Development
12 Years Ago
by manjeet593
…==1 || q==2 || q==4) { printf("Computer picks %d
coins
\n",q); win_player2(q); } } int main() { int n; …printf("*****WELCOME TO 10
COINS
PUZZLE*****\n\n"); printf("RULES:\n1. You have…
Help with Java Coins Program?
Programming
Software Development
11 Years Ago
by miran788
…having trouble with this assignment: Write a class
Coins
with one constructor that takes a number of cents…, getDimes, getPennies, that return the number of corresponding
coins
that add up to the amount (in the optimal …representation with the smallest possible number of
coins
). Make sure
Coins
objects are immutable (that is, none of…
Re: converting rupees into coins
Programming
7 Years Ago
by tinstaafl
… each coin you've used. If you run out of
coins
before you reach the target then you send the error…
Keeping track of inserted coins.
Programming
Software Development
16 Years Ago
by Grub
… a vending machine application that takes
coins
. It takes 5p, 10p 20p 50p £1 and £2
coins
. Now I need to keep… inserted e.g. if I insert 2 pounds in 5p
coins
. When I chose to refund the money I need the… machine to refund all the
coins
in random denominations but to the amount of £2. Or…
Recursion-Finding minimum of coins
Programming
Software Development
12 Years Ago
by techyworld
… 3, and 5, what is the minimum number of
coins
needed to make change for a given value? Hint: … method minNoCoins(int m,int []C) in the type
coins
is not applicable for the arguments int.Please help me…with this program [CODE]import java.util.Scanner; public class
coins
{ public static int [COLOR="Red"]minNoCoins[/COLOR…
Re: 10 Coins Puzzle
Programming
Software Development
12 Years Ago
by Adak
… a winning strategy for player1: [CODE]Player 1
Coins
Left Player2
Coins
Left ========================================== 1. take 2 8 take 1 7…# * (he can take 1 or 2, but not 3
coins
) 4. take the last coin(s) [/CODE] To win,… means to force a win, player1 must take 2
coins
on his first move. Player2 must try and play …
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by fulyaoner
…000000][U][/U][/COLOR][COLOR=#000000]The least number of
coins
required to make up $4.64 is 4. [/…COLOR] [COLOR=#000000]The
coins
needed are:[/COLOR] [COLOR=#000000]1 Twonie $2.00[/…up $16.10 is 9.[/COLOR] [COLOR=#000000]The
coins
needed are:[/COLOR] [COLOR=#000000][B][I]8 Twonies …
Re: Recursion-Finding minimum of coins
Programming
Software Development
12 Years Ago
by techyworld
Yes. i was a bit confused with this one. now i need to output the number of miminum
coins
and the
coins
that have been used. for example m=6: minimum
coins
=2 ,
coins
used= coin 1 n coin 5 How will i do this?
Re: Keeping track of inserted coins.
Programming
Software Development
16 Years Ago
by Ezzaral
… very realistic though. Real machines have a finite pool of
coins
of each denomination, in which case you would need separate… combination of denominations with division and mod, but if those
coins
were not available it would need to split down to…
Coin change with different upper bounds on different coins?
Programming
Software Development
11 Years Ago
by iamnot
… of ways a particular amount can be made with given
coins
.In the sample input 20 is the amount to be… line shows the coin value and number of
coins
of that value ie 2
coins
of value 10.Output has the number… of ways 20 can be made with these
coins
.I have tried out a recursive solution but is not…
Re: How to solve Coins problem in C
Programming
Software Development
9 Years Ago
by Gonbe
You can construct the value of any coin, using
coins
of lower value (if there are any); this makes the …problem easier because the smallest amount of
coins
required is then obtained by repeatedly paying with the highest… remaining cost is 0 (it would be diffent if the
coins
had different values, e.g. 80, 45 and 1. If…
make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by fulyaoner
…... I am to write a code about finding the least
coins
number to make up an amount that is given by… $4.63. Your output should be: The least number of
coins
required to make up $4.64 is 4. The…
coins
needed are: 1 Twonie $2.00 2 Jonnies $2.62 …
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by Lazaro Claiborn
…; I am to write a code about finding the least
coins
number to make up an amount that is given by… to see if the amount is greater than what the
coins
are worth and skip that coin if it is. Once… user, you can start dividing the amount given by the
coins
value until the resulting amount is less than the that…
Give change (money) - least bills and coins needed!
Programming
Software Development
12 Years Ago
by CoolPrizes
… the program to give change in the least bills and
coins
as possible. Ex. Customer's item costs $13.37. He… Cent Three One Cents Bills used: Any kind of bills/
coins
used regularly today in the United States up to $20…. No Half Dollars, $2 dollar bills, and Dollar
coins
. I've gotten most of my code down, but the…
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by John A
… $4.63. Your output should be: The least number of
coins
required to make up $4.64 is 4. The…
coins
needed are: 1 Twonie $2.00 2 Jonnies $2.62 …
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by fulyaoner
…, and this is the tricky part. In my solution, 8
coins
is used. but the better solution must include 4…
coins
, which is 2 Jonnies (2.62), 1 Twonie (2.00) , …
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by Salem
Seems to me like it's a variation of the knapsack problem. [url]http://en.wikipedia.org/wiki/Knapsack_problem[/url] One way would be - all permutations of 1 coin - all permutations of 2
coins
- all permutations of 3
coins
etc For each permutation, add them up and see if they match the total you want.
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by fulyaoner
… permutations of 1 coin - all permutations of 2
coins
- all permutations of 3
coins
etc For each permutation, add them up and…
Re: Give change (money) - least bills and coins needed!
Programming
Software Development
12 Years Ago
by CoolPrizes
Could you show me an example? I kind of got it to work on everything but the one dollar and the
coins
. Next thing I need to do is to make it give the lowest amount of bills and
coins
possible. Ex. 10.35 Change should be: 1 Ten Dollar Bill 1 quarter 1 Dime NOT: 2 Five dollar bills 3 dimes 1 nickel etc.
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by Infarction
… algorithm we all jumped on works so long as the
coins
are multiples of each other, or have a fairly high…
Re: make chance - least coins algorithm
Programming
Software Development
17 Years Ago
by Aia
I'm having trouble also coming with my own solution. It would be great if someone would post an example of: [QUOTE]all permutations of 2
coins
[/QUOTE] I'll keep working on it.
screwing up function calculation to sort coins
Programming
Software Development
15 Years Ago
by mikelle
[code]// Lab 6 // This program tells what
coins
to give out for any amount of change // from 1 …;> amount; return is; } //function definition to calculate number of
coins
void computeCoins(int coinValue, int & numberCoins, int & amount…
Flipping two coins.
Programming
Software Development
14 Years Ago
by Daiosmith
… have a program that is supposed to be flipping 2
coins
independently of each other but each coin always mirrors the…;; } return faceName; } } } and here is the code to flip two
coins
class TwoUp : Coin { private Coin coin1 = new Coin(); private Coin…
conversion of currency notes into coins
Programming
Software Development
13 Years Ago
by phaiz3024
… program, where i want to convert the currency notes into
coins
. I made a userform with one label, one textbox and… for example 55 dollor and wanted to convert into different
coins
. or if some one have better idea how to start…
10 Coins Puzzle
Programming
Software Development
12 Years Ago
by manjeet593
[COLOR="green"]10
Coins
Puzzle[/COLOR] Hello Friends, I m facing problems in coding of 10
coins
Puzzle. I have made it, but the process was not good enough. I think there is a recursive process to sole this problem, but i couldn't get it. Plz help me out with efficient algorithm/code.
How to solve Coins problem in C
Programming
Software Development
9 Years Ago
by vishalonne
Hello How can I get minimum number of
coins
for a given amount. I have fixed denominations of cents - 25, 10, 5 and 1 If I have 0.67 then what will be the minimum numbers
coins
I need Thank you all in advance for valueable advices and suggestions
how to display all coins from mysqli?
Programming
Web Development
5 Years Ago
by josh_7
….png) i like to make this menu to display the
coins
i know you can do it but i dont know… i have btc here but i like to get every
coins
info when it gets added so dispays here from dropdown…
Is The Gov't Getting Rid Of Cash And Coins
Community Center
Geeks' Lounge
19 Years Ago
by Tony1
… IS THE GOVERNMENT TRYING TO GET RID OF CASH AND
COINS
? What if everyone's money were on cards, all logged…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC