Hi Amanda,
I didn't expect anything else but this. I am just surprised that there
are not more people saying it. The funny thing about people is that
they are either blinded by their ego, and act arrogant or they judge
others with their standard.
I am auditing the class and I am trying to learn C# and in the process,
are doing these assignments. Note that in my initial post, I
said,"Suggest me with logic". I didn't say write code for me but then
your ego has blinded you such that you couldn't even read properly.
<snip>
Since there is apparently a lot of bad blood going on here, please allow me
to try and smooth things out, since I have no dog in this fight.
First, if you will re-read your initial post, you did *not* say "Suggest me
with logic". Below this reply I have posted the exact message, so that you
may review it. You simply gave a problem and requested "Write a program that
will ... ?" I will presume that English is not your native language, as the
syntax of your query is an imperative (command language) followed by a
question mark, which I will interpret as being more along the lines of "How
do I write a program that will...?".
It was in your *second* post that you added "I just need logic how to go
about the pattern." However, in neither of those posts did you explain why
you wanted this information, and it certainly did seem like a school
assignment.
Now, there were 1 or 2 sarcastic responses to your query, but neither Jon
nor Cor was at all sarcastic. In fact, having know Jon for quite awhile, I
can certainly tell you that his response had nothing to do with ego, but was
motivated by a sincere desire to help you. From time to time, students try
to use these newsgroups to get answers to homework questions, rather than
doing the work themselves. This only hurts them, as they do not learn what
is vital to their success as a programmer. Programming is difficult, and
involves problem-solving more than anything else. It is not the syntax of
programming that is difficult to learn; it is the problem-solving ability.
To help a student to do their homework by solving their problems for them
would be to cause them harm, and all of the experts agree on that point.
Here is the exact text of Jon's response:
******************* Jon's Response ************************
I suspect (and hope) that no-one on the group will do your homework for
you. However, if you say exactly which part of the pattern logic you're
having problems with, how far you've got with it, and what code you've
already got, we may be able to help you.
*******************************************************
He was not unkind, but offered counsel. In fact, he also offered to help
you, if you would provide the information he requested. Under the
circumstances, with your message for all the world looking like a student
that wanted someone to do their homework for them, the counsel was
appropriately designed to encourage the student to do the work required. The
additional offer of help was more than kind, under those circumstances.
So, we apparently have a misunderstanding here. Perhaps you can take a bit
of knowlege from experience here, which will certainly help you to learn
programming: Programming is also about logic. To assume that someone is
"blinded by their ego" without facts to support the assumption is to open
yourself to error. In programming, this sort of thinking will cause errors
in your programs. If you had simply explained your situation without making
false accusations, Jon would certainly have provided you with all the help
he could. In fact, I believe he is still willing to, but I can't speak for
him about that. He is very good at "turning the other cheek."
--
HTH,
Kevin Spencer
Microsoft MVP
Computer Control Freak
http://unclechutney.blogspot.com
A man, a plan, a canal, a palindrome that has.. oh, never mind.
******************* Original Post **************************
Write a program that will allow user to choose to display traingles
and diamonds composed of asterisks ina lopping condition?
a. Display the traingles one below the other, like this:
*
**
***
****
*****
*****
****
***
**
*
*****
****
***
**
*
*
**
***
****
*****
b. Display the traingles side by side:
* ***** ***** *
** **** **** **
*** *** *** ***
**** ** ** ****
***** * * *****
c. Display diamond of the appropriate size (prompt the user to eneter
an odd integer and then use it to loop); if user enter 5:
*
***
*****
*******
*********
*******
*****
***
*
NOTE: I will use switch to allow selction; to make trangles and
diamonds, I want to use arrays in
the loop. If possible, I would like to make one or two methods of
making traingles (of different orienatation) and then call them to
display desired pattern. Any guide?