By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

Plz Help!!!

P: 1
Hi,
i'm a very beginer of C language. I have a little problem, Which is:

Write a programme that reads an integer value between 0 and 100 representing the amount of purchase in cents. Produce an error message if the input value is not in that range. If the input is valid, determine the amount of change that would be recieved from one dollar, and print the number of quarters, dimes, nickels and pennies that should be returned. Maximize the coins with the highest value. You need to continue processing input values until a sentinal value of -1 is entered.

Plz share your ideas in codes(LOL).
Plz.
My e-mail: furtive_innocence@yahoo.com
Nov 8 '06 #1
Share this Question
Share on Google+
2 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
Hi,
i'm a very beginer of C language. I have a little problem, Which is:

Write a programme that reads an integer value between 0 and 100 representing the amount of purchase in cents. Produce an error message if the input value is not in that range. If the input is valid, determine the amount of change that would be recieved from one dollar, and print the number of quarters, dimes, nickels and pennies that should be returned. Maximize the coins with the highest value. You need to continue processing input values until a sentinal value of -1 is entered.

Plz share your ideas in codes(LOL).
Plz.
My e-mail: furtive_innocence@yahoo.com
Let's start with what you have, we'll help you build it, as I'm sure you're not the type of person who expects other people to write their code for them :)
Nov 8 '06 #2

momotaro
100+
P: 357
man dig a little bite its very easy u already answered it in your question u just have to have a little more fate u can do it am sure i mean it is very easy and i think u can handle it by ur self!
give u r self a try ;)
Nov 9 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.