Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: need some help with this program, I am stumped appreciate any input, thank you Date: Sun, 15 Dec 2013 10:15:18 -0500 Organization: A noiseless patient Spider Lines: 10 Message-ID: References: <37qi46r2migu.128f667ofnzw5.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Dec 2013 15:16:46 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hRfmaTyen1yQtno7IK3I+sF1+Y5M/gMA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 In-Reply-To: <37qi46r2migu.128f667ofnzw5.dlg@40tude.net> Cancel-Lock: sha1:qtyW1uk2mmuwXq/PloEEUyn6Fb4= Xref: csiph.com comp.lang.java.programmer:26929 On 12/14/2013 09:45 PM, Joerg Meier wrote: > On Sat, 14 Dec 2013 18:37:09 -0800 (PST), john wrote: > >> An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number, since 33 + 73 + 13 = 371. Write a method called isArmstrongNum to determine if a given number is an Armstrong number. Write a program that generates 100 three-digit random numbers and calls isArmstrongNum method to find all Armstrong numbers among these 100 random numbers. > > By the way, your question isn't even correct: 3*3*3 is not 33, 7*7*7 is not > 73, and 1*1*1 is not 13. Also, 33 + 73 + 13 is 119, not 371. > We still haven't found that missing caret.