www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/09/20:44:37

From: "John Meyer" <john_meyer AT geocities DOT com>
To: <djgpp AT delorie DOT com>
Subject: RE: HELP!!
Date: Sun, 9 Apr 2000 19:21:34 -0600
Message-ID: <NEBBLIFBELJKKECHAFNBGELOCBAA.john_meyer@geocities.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <EP7I4.682$bZ5.44820@news1.primary.net>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Importance: Normal
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019