Now the private is already there so I'm not quote sure how I'm suppose to use up 4 lines on this like I think it should be void calculateCusomterParkingCharge() { but that is only one line......
there is a couple of of those in this program but normally it breaks it down by line and not 21 thru 24 etc.

<< awful formatted code snipped - see replies >>

10-19-2011

CORKY77

<< awful formatted code snipped - see replies >>

10-19-2011

CORKY77

Ok so I tried twice to post the [code] deal and its not coming out quite right grrrr..............sorry

10-19-2011

rmatze

You need to get rid of every comment and line number or whatever those are. I can't even read that and I guarantee nobody else will even bother.

10-19-2011

Salem

Well you need to try posting something as text, not as HTML.
In whatever you're copying from, rather than pressing ctrl-c, see if there is a "copy as text" option.

If that doesn't work, first paste the content into something "dumb", like notepad, then redo the ctrl-a ctrl-c bit. That should wash away all the horrible formatting.

Anyway, this is your code with the useless HTML font/size/colour removed.

Now, can you
a) post an even better copy with better indentation
b) explain what all those A-n-n-n comments are for. If you want to refer to line numbers in the code, then the board automatically numbers the code anyway.
c) explain what you're expecting for all those "TO DO" comments.

10-20-2011

CORKY77

Ok, here goes, I've removed most of the A-x-x-x (which is the sheet/code that were supposed to write from. The part I'm trying to figure out the code sheet says to:
A-1-1-21) through A-1-1-24) Enter function header for private member function calculateCustomerParkingCharge and opening brace for function’s body

See how much simpler the program seems now, compared to that amorphous blob of text :D Remember that code is for humans to read, not computers, so use whatever whitespace you need to make the structure of the program clear to you.
(Hopefully you'll notice the syntax errors littered about now, too; compilers do a good enough job yelling about those sorts of things so I'll avoid them for the time being.)

based on this prototype provided later on in the file, it looks like your instructor likes to have one argument per line. Presumably, that's where the extra lines would come from. And if the number of lines in your answer actually matters (which seems awfully silly to me) I'm sure you could take some... liberties... with the whitespace :p

10-22-2011

CORKY77

So, to determine what would go in those lines, I'd need to look in the body of that function and int everything? This is my first programming class and it's getting harder and harder. I should not of took this class as an online class but with my work schedule it's pretty much all I can do at this point. So if I do something like this for Lines A-1-1-21 through a-1-1-24. I get this......