Velocity Reviews > plz send me the solution of the problem.

# plz send me the solution of the problem.

Keith Thompson
Guest
Posts: n/a

 01-10-2010
> On Jan 9, 6:53Â*pm, pete <(E-Mail Removed)> wrote:
>> wahid wrote:
>> > Write a program that will have an integer
>> > number input, and show the digits seperately.
>> > (Assume that no number with more than 3
>> > digits will be present in the input)

>>
>> > like :
>> > Enter a Number: 942
>> > The first digit of the number is : 9
>> > The second digit of the number is : 4
>> > The third digit of the number is : 2

>>
>> /* BEGIN new.c */

[code snipped]
>>
>> --
>> pete

>
> Not to sound like a dick. But whatever happened to waiting for the
> person to post an attempted solution before posting a (correct) one?

You're assuming pete's solution is correct. Maybe it is, maybe it
isn't, but I doubt that wahid knows enough to be able to tell -- and I
for one am not going to tell him which of the posted solutions, if
any, are actually correct.

--
Keith Thompson (The_Other_Keith) (E-Mail Removed) <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"

Antoninus Twink
Guest
Posts: n/a

 01-10-2010
On 10 Jan 2010 at 20:11, Keith Thompson wrote:
> You're assuming pete's solution is correct.

I don't think he's assuming anything of the sort. What makes you think
he hasn't checked through pete's solution and *found* it to be correct?

> Maybe it is, maybe it isn't,

> I doubt that wahid knows enough to be able to tell -- and I for one am
> not going to tell him which of the posted solutions, if any, are
> actually correct.

You've missed the boat here Keith - correct solutions to all the posted
problems have already been supplied, and you can bet your life that if
any of them are incorrect, then there will be a whole horde of people
falling over themselves to trip me up and pick holes in my code if
they're there - that's the "peer review" that you love so much in
action!

Keith Thompson
Guest
Posts: n/a

 01-11-2010
pete <(E-Mail Removed)> writes:
[snip]
> I don't care if OP wants to copy homework solutions
> and learn nothing.

I suggest that you should care. Surely if you want to find little
programming puzzles for yourself, you can do so without helping
someone cheat.

--
Keith Thompson (The_Other_Keith) http://www.velocityreviews.com/forums/(E-Mail Removed) <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"

Guest
Posts: n/a

 01-11-2010
On Jan 10, 4:36*pm, pete <(E-Mail Removed)> wrote:
> Antoninus Twink wrote:
> > On 10 Jan 2010 at 20:11, Keith Thompson wrote:

>
> >>You're assuming pete's solution is correct.

>
> > I don't think he's assuming anything of the sort. What makes you think
> > he hasn't checked through pete's solution and *found* it to be correct?

>
> >>Maybe it is, maybe it isn't,

>

>
> >>I doubt that wahid knows enough to be able to tell -- and I for one am
> >>not going to tell him which of the posted solutions, if any, are
> >>actually correct.

>
> > You've missed the boat here Keith - correct solutions to all the posted
> > problems have already been supplied, and you can bet your life that if
> > any of them are incorrect, then there will be a whole horde of people
> > falling over themselves to trip me up and pick holes in my code if
> > they're there - that's the "peer review" that you love so much in
> > action!

>
> That's pretty much it.
>
> When I post untested code
> I always get caught
> And that's what I'm looking for.
>
> My criteria for doing a homework problem
> is that it be somewhat amusing and not too hard.
>
> *From time to time an OP has asked questions about my posted code,
> and then I've explained it to the best of my ability
> and I suppose the OP was able to pick up something about C.
>
> I don't care if OP wants to copy homework solutions
> and learn nothing.
>
> --
> pete

That was untested code?! Uh..... here is what I get...

[cdalten@localhost oakland]\$ gcc -Wextra -Wall new.c -o new
[cdalten@localhost oakland]\$ ./new
Enter an integer from 0 to 999: 321
The first digit of the number is : 3
The second digit of the number is : 2
The third digit of the number is : 1
[cdalten@localhost oakland]\$ ./new
Enter an integer from 0 to 999: 8888888
Try again.
[cdalten@localhost oakland]\$ ./new
Enter an integer from 0 to 999: 45
The first digit of the number is : 4
The second digit of the number is : 5
[cdalten@localhost oakland]\$ ./new
Enter an integer from 0 to 999: 2
The first digit of the number is : 2
[cdalten@localhost oakland]\$

I guess that both you and I have vastly different views on what
"untested code" is.

scattered
Guest
Posts: n/a

 01-11-2010
On Jan 10, 8:37*pm, Keith Thompson <(E-Mail Removed)> wrote:
> pete <(E-Mail Removed)> writes:
>
> [snip]
>
> > I don't care if OP wants to copy homework solutions
> > and learn nothing.

>
> I suggest that you should care. *Surely if you want to find little
> programming puzzles for yourself, you can do so without helping
> someone cheat.
>

I agree in general but in this case I suspect that if a professor saw

#define str(x) # x
#define xstr(x) str(x)

in an intro to programming class then that professor would strongly
suspect that the student has obtained that code from somewhere else
(unless the textbook covered stringizing macros - which seems beyond
the scope of an intro text), especially if the student is as weak a
wahid seems to be. Such a professor could quickly confirm that
suspicion by asking wahid a simple question or two. What I would
really have a problem with would be posting code that wahid could
plausibly turn in as his own.

Richard Bos
Guest
Posts: n/a

 01-11-2010
pete <(E-Mail Removed)> wrote:

> I don't care if OP wants to copy homework solutions and learn nothing.

Let me suggest for your consideration that you should, if only because
he might either get a Green Card and be employed to be your cow-orker,
or get employed where he is to write some software which you will come
(possibly by necessity) to rely on.

Richard

Eric Sosman
Guest
Posts: n/a

 01-11-2010
On 1/11/2010 1:15 PM, Richard Bos wrote:
> pete<(E-Mail Removed)> wrote:
>
>> I don't care if OP wants to copy homework solutions and learn nothing.

>
> Let me suggest for your consideration that you should, if only because
> he might either get a Green Card and be employed to be your cow-orker,
> or get employed where he is to write some software which you will come
> (possibly by necessity) to rely on.

Still worse, you may be assigned to clean up the mess
he makes ...

--
Eric Sosman
(E-Mail Removed)lid

Charlton Wilbur
Guest
Posts: n/a

 01-12-2010
>>>>> "C" == Chad <(E-Mail Removed)> writes:

C> Not to sound like a dick. But whatever happened to waiting for
C> the person to post an attempted solution before posting a
C> (correct) one?

Posting a possibly correct solution -- I only skimmed it -- that is more
rigorous and thorough than the homework plagiarist likely has the
experience to be, and is written in idiomatic C that is likely to be
well above the homework plagiarist's level of ability seems like another
good solution to the problem.

Charlton

--
Charlton Wilbur
(E-Mail Removed)

Keith Thompson
Guest
Posts: n/a

 01-12-2010
Charlton Wilbur <(E-Mail Removed)> writes:
>>>>>> "C" == Chad <(E-Mail Removed)> writes:

>
> C> Not to sound like a dick. But whatever happened to waiting for
> C> the person to post an attempted solution before posting a
> C> (correct) one?
>
> Posting a possibly correct solution -- I only skimmed it -- that is more
> rigorous and thorough than the homework plagiarist likely has the
> experience to be, and is written in idiomatic C that is likely to be
> well above the homework plagiarist's level of ability seems like another
> good solution to the problem.

Assuming that the instructor is sufficiently competent to recognize
that the submitted code is beyond the student's abilities. If he
gets enough help cheating, he might be able to fool the instructor
just because the instructor will never have seen any code the
student actually wrote.

--
Keith Thompson (The_Other_Keith) (E-Mail Removed) <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"

Charlton Wilbur
Guest
Posts: n/a

 01-13-2010
>>>>> "KT" == Keith Thompson <(E-Mail Removed)> writes:

KT> Charlton Wilbur <(E-Mail Removed)> writes:

>> Posting a possibly correct solution -- I only skimmed it -- that
>> is more rigorous and thorough than the homework plagiarist likely
>> has the experience to be, and is written in idiomatic C that is
>> likely to be well above the homework plagiarist's level of
>> ability seems like another good solution to the problem.

KT> Assuming that the instructor is sufficiently competent to
KT> recognize that the submitted code is beyond the student's
KT> abilities. If he gets enough help cheating, he might be able to
KT> fool the instructor just because the instructor will never have
KT> seen any code the student actually wrote.

Well, if the instructor is that incompetent, the student is not going to
learn much either way.

Charlton

--
Charlton Wilbur
(E-Mail Removed)