Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > I have some Problems.

Reply
Thread Tools

I have some Problems.

 
 
Vamshi
Guest
Posts: n/a
 
      07-24-2004
I do have some problems. Can any one help me out?
1.Ordered squares. A 6-digit number STWXYZ is an ordered number if the
diff between first 3 dig, STW and last three XYZ is 1. For example
123124 or 124123 are ordered num. A number is a square if it is equal
to the product of one whole number mul by itself.An ordered square is
both an ordered number and a square. find an algorithm to find all K
i-digits Ordered squares in increasing order.

2.Find an algo to find the total number of dig in N!

3.A number is a super palindrome if it is a palindrome and its square
is also a palindrome. So an algo is req to find all super palindroms
between two numbers a,b.

4.Consider the seq 1,2,3,....N(N<=9)
insert +/- in betwee the digitsso that the result is '0'. An algo is
req to find all seq of length that produces '0' sum.
Ex: if input is 7
1+2-3+4-5-6+7 = 0
1+2-3-4+5+6-7 = 0
1-2+3+$-5+6+7 = 0
1-2-3-4-5+6+7 = 0


please help me out with these prob.
 
Reply With Quote
 
 
 
 
jacob navia
Guest
Posts: n/a
 
      07-24-2004

"Vamshi" <> a écrit dans le message de
news: om...
> I do have some problems. Can any one help me out?
> 1.Ordered squares. A 6-digit number STWXYZ is an ordered number if the
> diff between first 3 dig, STW and last three XYZ is 1. For example
> 123124 or 124123 are ordered num. A number is a square if it is equal
> to the product of one whole number mul by itself.An ordered square is
> both an ordered number and a square. find an algorithm to find all K
> i-digits Ordered squares in increasing order.
>
> 2.Find an algo to find the total number of dig in N!
>
> 3.A number is a super palindrome if it is a palindrome and its square
> is also a palindrome. So an algo is req to find all super palindroms
> between two numbers a,b.
>
> 4.Consider the seq 1,2,3,....N(N<=9)
> insert +/- in betwee the digitsso that the result is '0'. An algo is
> req to find all seq of length that produces '0' sum.
> Ex: if input is 7
> 1+2-3+4-5-6+7 = 0
> 1+2-3-4+5+6-7 = 0
> 1-2+3+$-5+6+7 = 0
> 1-2-3-4-5+6+7 = 0
>
>
> please help me out with these prob.


We will not do your homework for you.
Try to solve the problems and if you have questions concerning your
solutions post the code you developed and then you may find
answers for those questions.



 
Reply With Quote
 
 
 
 
Jens.Toerring@physik.fu-berlin.de
Guest
Posts: n/a
 
      07-24-2004
Vamshi <> wrote:
> I do have some problems. Can any one help me out?
> 1.Ordered squares. A 6-digit number STWXYZ is an ordered number if the
> diff between first 3 dig, STW and last three XYZ is 1. For example
> 123124 or 124123 are ordered num. A number is a square if it is equal
> to the product of one whole number mul by itself.An ordered square is
> both an ordered number and a square. find an algorithm to find all K
> i-digits Ordered squares in increasing order.


> 2.Find an algo to find the total number of dig in N!


> 3.A number is a super palindrome if it is a palindrome and its square
> is also a palindrome. So an algo is req to find all super palindroms
> between two numbers a,b.


> 4.Consider the seq 1,2,3,....N(N<=9)
> insert +/- in betwee the digitsso that the result is '0'. An algo is
> req to find all seq of length that produces '0' sum.
> Ex: if input is 7
> 1+2-3+4-5-6+7 = 0
> 1+2-3-4+5+6-7 = 0
> 1-2+3+$-5+6+7 = 0
> 1-2-3-4-5+6+7 = 0


> please help me out with these prob.


Look, none of these questions have got anything to do with C, so
you're completely off-topic here. You better ask that kind of
questions in e.g. comp.programming. But also there they tend not
to do other peoples homework. Make a reasonable attempt to solve
the problems yourself, then ask in comp.programming if you get
stuck.
Regards, Jens
--
\ Jens Thoms Toerring ___
\__________________________ http://www.toerring.de
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there someone have written some programs about RSA-1024?I have some question. dolphin C++ 3 03-09-2007 02:47 PM
a question: Do I have to have some work experience before taking the exam jessi MCAD 3 04-04-2005 10:04 AM
Need some help for some perl homework.... Perl 0 02-25-2004 01:45 AM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM
Some questions regarding 070-305 and hopefully some right answers. Needs correction... wink, wink ;-) Daniel Walzenbach MCSD 1 11-10-2003 12:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57