Linux / UNIX Tech Support Forum
This is a discussion on Please help with this C++ problem within the Coding in General forums, part of the Development/Scripting category; Hi i would be glad if any body helps me to solve this. thanks Problem: In this program you need ...
|
|||||||
| Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi i would be glad if any body helps me to solve this. thanks
Problem: In this program you need to write a program that program compute the number of coins of each kind required to make up certain amount of money given in dollars. The coins to be used are two dollar coins, one dollar coins, 50 cents, 20 cents, 10 cents, and 5 cents. You may need to use the round() function from cmath library. This assignment will use separate compilation. You MUST use the following guidelines for the design of your program:
Please input the amount of money: 4.78 The coin distribution is as follows Number of two dollar coins: 2 Number of one dollar coins: 0 Number of 50 cents: 1 Number of 20 cents: 1 Number of 10 cents: 1 Number of 5 cents: 0 Last edited by oronno; 23-08-2007 at 07:27 AM. Reason: mistake |
| Sponsored Links | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|