Im new to Pascal and have to write a program to calculate coinage given as change, ie 1 x20p . I just haven't got a clue how to get Pascal to calculate the coins.
Please help ! Im lost
:rolleyes: :sad:
mrsmole
0
Newbie Poster
Recommended Answers
Jump to PostDo you know how to code in Pascal at all?
Have you made an attempt any this code yet?
What are your thoughts on how you might begin to tackle this?
(hint: think about the thought processes you'd go through if you were calculating this in your head; …
Jump to PostOf course you could do it in your head: it's easier than you think. I would approach it this way:
You have a price, p, and an amount of money given, m. I would hope the m > p, but I'd put in a check to ascertain the veracity …
All 6 Replies
leelee
11
Junior Poster in Training
mrsmole
0
Newbie Poster
leelee
11
Junior Poster in Training
mrsmole
0
Newbie Poster
leelee
11
Junior Poster in Training
mrsmole
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.