From: crschmidt AT juno DOT com (Christopher R. Schmidt) Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP!! Date: Fri, 14 Apr 2000 01:42:05 GMT Message-ID: <38f6745e.5898945@news.chicago.avenew.com> References: X-Newsreader: Forte Free Agent 1.11/16.235 NNTP-Posting-Host: du208169584.chicago.avenew.net X-Trace: 13 Apr 2000 21:26:39 -0600, du208169584.chicago.avenew.net Lines: 114 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I did all these progs (except quad) in my c++1 class :-) I'll include just main functions, if you need to spread them out or something, u're gonna have to do it yourself. Include your files and blah blah blah for each.... Payroll: int main(){ clrscr(); int pay; cout<<"Enter Pay Rate:"; cin>>pay; int hours; cout<<"Enter hours worked:"; cin>>hours; cout<<"The total Pay is "<>hourstart>>minstart; //This works because (space is a //string delimiter, ends cin. cout<<"End time (hour space min):"; cin>>hourend>>minend; int hourdiff, mindiff; hourdiff=hourend-hourstart; mindiff=minedn-minstart; cout<<"Person was there for "<>mon; cout<>yesOrNo;}while (yesOrNo=='y' || yesOrNo=='Y'); return 0; } P.S. Tell me how horrible my code is. Please, i want to know. "Russell Roberts" wrote: >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 > >