Mail Archives: djgpp/2000/04/09/20:44:37
Pretty much, this type of question should be asked in a C++ group or e-mail
list that isn't specific to one type of compiler. I also won't provide you
code, as that is your part of the deal, however, poor the instructor is.
However, I can give you an idea on a couple of these
Change--classify the various denominations within an enum and let your
program figure out how to make change the same way that people do (i.e.
start with the largest denomination of change, count out until it exceeds or
equals the change required, if it exceeds, subtract one of that
denomination, continue until you hit the exact change required)
Quadratic--look up the "quadratic equation", also, check out the math.h
file.
Pay--this is too easy, input time, multiply by pay rate, output pay.
-----Original Message-----
From: Russell Roberts [mailto:moonhunter AT mackom DOT com]
Sent: Sunday, April 09, 2000 4:48 PM
To: djgpp AT delorie DOT com
Subject: HELP!!
Hi,
I am very new to this whole programming stuff and I am in a real pickle. I
took a class here this semester that was suppose to be an intro to computer
science and low and behold I discovered that it was in reality a programming
class. More specifically Borland C++. The instructor has done a very poor
job this semester with making sure that the basic concepts of writing in
this language are understood by all of her students. I for one am one of
them. What I need are some examples of some source code so that I have a
foundation to build off of so that I can complete my programs. I have 4
programs left for this semester
Change- Calculate change to be returned broke down in the various
denominations
Quadratic-Don't have a clue
Time difference- To calculate amount of time a person is at a place
Payroll-Calculate amount of pay based on persons hours worked * Pay rate
I could do most of this using a spreadsheet but I have absolutely no idea
where to begin in C++. Could anybody out there lend a helping hand?
Most sincerely confused
Russ
--
"That which does not kill us makes us stronger" - Friedrich Nietzsche
- Raw text -