473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

elementary programming

hi all,
i need to write some really basic stuff, im just trying to figure out
different ways to do it, and i can only come up with so many.
i need to write a chart that shows from 5 cents to 1 dollar, in 5 cent
increments, how many nickels, dimes, quarters, or dollars can be made
up for that value. For example 10 cents, could be 2 nickels, or 1
dime. 30 cents could be 6 nickels or 3 dimes. 25 cents could be 5
nickels or 1 quarter. I need to make up a chart that shows this.
Using a for loop, go from 5 cents till 100 cents in 5 cent increments.
For each coin type, nickel, dime, quarter: display how many coins can
evenly go into the given amount.
align the output.

Feb 25 '07 #1
3 2575
* yu*****@gmail.com:
hi all,
i need to write some really basic stuff, im just trying to figure out
different ways to do it, and i can only come up with so many.
i need to write a chart that shows from 5 cents to 1 dollar, in 5 cent
increments, how many nickels, dimes, quarters, or dollars can be made
up for that value. For example 10 cents, could be 2 nickels, or 1
dime. 30 cents could be 6 nickels or 3 dimes. 25 cents could be 5
nickels or 1 quarter. I need to make up a chart that shows this.
Using a for loop, go from 5 cents till 100 cents in 5 cent increments.
For each coin type, nickel, dime, quarter: display how many coins can
evenly go into the given amount.
align the output.
Check out the FAQ item on homework questions.

Also, the FAQ item on how to post.

Hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Feb 25 '07 #2
yu*****@gmail.com wrote:
hi all,
i need to write some really basic stuff, im just trying to figure out
different ways to do it, and i can only come up with so many.
The previous sentence reads like a lie.
i need to write a chart that shows from 5 cents to 1 dollar, in 5 cent
increments, how many nickels, dimes, quarters, or dollars can be made
up for that value. For example 10 cents, could be 2 nickels, or 1
dime. 30 cents could be 6 nickels or 3 dimes. 25 cents could be 5
nickels or 1 quarter. I need to make up a chart that shows this.
Using a for loop, go from 5 cents till 100 cents in 5 cent increments.
For each coin type, nickel, dime, quarter: display how many coins can
evenly go into the given amount.
align the output.
Prove me wrong, post one of the different ways you've found to do this
task, and I'll do my best to come up with another.

john
Feb 25 '07 #3
<yu*****@gmail.comwrote:
i need to write some really basic stuff, im just trying to figure out
different ways to do it, and i can only come up with so many.
Post the code for one of the ways you came up with and others will probably
chime in with different ways. If you just made that up in a fit of
enthusiasm, say so, and maybe someone will help anyway.
i need to write a chart that shows from 5 cents to 1 dollar, in 5 cent
increments, how many nickels, dimes, quarters, or dollars can be made
up for that value. For example 10 cents, could be 2 nickels, or 1
dime. 30 cents could be 6 nickels or 3 dimes. 25 cents could be 5
nickels or 1 quarter. I need to make up a chart that shows this.
Using a for loop, go from 5 cents till 100 cents in 5 cent increments.
For each coin type, nickel, dime, quarter: display how many coins can
evenly go into the given amount.
align the output.

Feb 25 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lionel B | last post by:
Greetings, I am trying to implement "element-wise" arithmetic operators for a class along the following lines (this is a simplified example): // ----- BEGIN CODE ----- struct X { int a,b;
12
by: G. | last post by:
Hi all, During my degree, BEng (Hons) Electronics and Communications Engineering, we did C programming every year, but I never kept it up, as I had no interest and didn't see the point. But now...
3
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
29
by: Merrill & Michele | last post by:
I'm now looking at page 115 K&R. After having discussed counterexamples, I shall herewith and henceforth make all my c programs look like int main(int orange, char* apple) {return(0);} Q1) ...
0
by: Geoffrey L. Collier | last post by:
I wrote a bunch of code to do elementary statistics in VB, and would prefer to find code in C# to recoding all of the VB code. A search of the web found very little. Does anyone know of a good...
3
by: pauldepstein | last post by:
I am writing a program to calculate prices of commodity options as part of my Masters degree in Finance. (Absolutely no prior knowledge of computer programming was assumed.) I am representing...
5
by: bromio | last post by:
can someone help me to make code for digital clock using AT89S52. The specs of clock are 12 hour clock,am-pm display,use timer interrupts to have delay.two external inputs to adjust hours and...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
30
by: Jakle | last post by:
I have been googling, but can seem to find out about C GUI libraries. My main platform is Windows, but it would be nice to find a cross platform library. I've been programming with php, which...
111
by: Enteng | last post by:
Hi I'm thinking about learning C as my first programming language. Would you recommend it? Also how do you suggest that I learn it?What books/tutorials should I read for someone like me? Thanks...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.