Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Idea Interview Questions
Questions Answers Views Company eMail

how to prepare test case and test description for job application(like naukri.com)?

1 8090

What is cell reselection in Telecom ?

1 4309

What are the different types of GSM antenna?

6 34221

Any idea when the results of the clerical interview of Indian Bank will be announced

6 8904

1. Discuss the acceptance of Corporate Social Responsibility in business by Indian companies in recent years. Justify your answer by giving present practices. 2. Examine the role of money, as a significant motivator, in the present inflationary conditions. 3. Co-ordination should be an individual responsibility rather than the other insisting the co- ordination. Justify your answer. 4. Under what circumstances Centralisation and Decentralisation of authority is desirable – discuss? Discuss your views with respect to hospitality industry. 1. What is the difference between Traditional Marketing and Modern Marketing? Give some examples of those companies which are doing Business in India more than 50 years and how they changed from traditional marketing to modern marketing. 2. Explain the Sales Promotion in marketing and also how HLL and P&G are doing their promotion of products in India with suitable examples. 3. Take atleast 10 FMCG companies in India and analyse how they are doing ethics in marketing in various segments. 4. What is the meaning of trade mark and patent rights in Govt. of India and how it is helpful in marketing management? Explain with suitable products.

1 7093

Please explain prepaid roaming MT call flow. (All the related MAP/INAP and ISUP messages)

1 26264

IN WCDMA(WIDE CODE DIVISION MULTIPLE ACCESS)WHICH ONE FREQUENCY HOPPING IS USED EITHER FAST FREQUENCY OR SLOW FREQUENCY HOPPING,SAY IN DETAILS

2497

how many JDBC drivers ?name them?

6 12652

what is transformor oil gread

2529

how noc operate?

2943

what is the difference between cheque dishounerd and cheque bounced?

5 41666

what is difference between xdm-50/100/300/500/1000/2000 & all bg-20/40/30 in eci mux.

2 25553

I have qualified SSC CGL TIER-I (2010) I wanted to know about the expected cutoff marks for Tier=II Exam,

1 5990

who wrote 'passage to england'

3 8116

idea uses the 1800mhz band with alloted 4.4mhz bandwidth. this band is divided into 22 channel(up link).how will operator divides these channel in to traffic channel and control channel. explain

2232

Post New Idea Interview Questions




Un-Answered Questions

What is the latest version of microsoft access?

888


What is the responsibility of programmer’s vs QA?

2245


Project 2 - Magic Squares design2.txt - due 12/7 before 11:59 PM project2 - due 12/13, before 11:59 PM Orginally by Sue Evans Hit the space bar for next page The Objectives The purpose of this assignment is to give you practice with: recursion using command line arguments using the timing feature and file handling. The Background According to The Math Forum @ Drexel University, A Magic Square is an arrangement of the numbers 1 to n2 in an n x n matrix with each number occuring exactly once, and such that the sum of the entries of any row, any column, or any main diagonal is the same. It is not hard to show that this sum is n(n2 + 1)/2. The simplest magic square is the 1 x 1 magic square whose only entry is the number 1. 1 The next simplest is the 3 x 3 magic square. (8 + 1 + 6) or 3(32 + 1)/2 This is also just ONE of many examples for a 3 x 3 Magic Square!! This 3 x 3 square is definitely magic and satisfies the definition given above. There are 8 different arrangements of entries in a 3 x 3 matrix that fit the definition of a magic square. There are also magic squares of size 4 x 4, 5 x 5, etc. The Background - Continued For small n, say n <= 3, you could obviously sit down with pencil and paper and discover a magic square in a fairly short amount of time. Take a few minutes now and do that, remembering that each of the numbers, 1 through n2, appear only once in the square. Now try it for n = 4 ... Oh, there has to be a better way. :) Of course, the computer doesn't have a patience problem. It can solve the problem for us by using the brute force method. This means that the computer will accomplish its task by trying every single possible arrangement of the numbers in a square and check each of the resulting squares to see if it's a magic square. [6, 2, 7, 5, 4, 8, 3, 9, 1] [4, 2, 7, 6, 5, 8, 3, 9, 1] [7, 4, 2, 6, 5, 8, 3, 9, 1] ... The Task Your assignment will be to determine all of the magic squares when given an n, display permutations that match the magic squares to the screen AND write it to a file. You will only test when n == 3!!! But code it for n of ANY number!! It turns out that finding the magic squares for n >= 4 takes too long for us to run it on the shared machines (linux1, 2 & 3) Since if n == 1, the square is 1 (too easy!!) and since for n == 2 there is no answer!! Your program must come up with every possible arrangement (permutation) of numbers within the square. These are known as the permutations of that list of numbers. Each permutation needs to be checked to see if it has formed a magic square. Program Requirements Your program must: use command line arguments. At the command line the user must enter (in this order): the name of the executable file, n (which will ALWAYS be 3, but again could be run with other numbers) and the name of the output file in which to write the squares. use a recursive permute to give all of the permutations of the square. In other words, your function called "permute", must be a recursive function. So for each permutation, you should check to see if it is a magic square, display it and write it to the file write only the unique magic squares to the SCREEN and FILE. No duplicates allowed. HINT: Let your program produce duplicates first, then see how you can refrain from writing the duplicates. Then modify your code. use a list of size n2. The code for the recursive permute function will be much easier to write if you store the numbers in a list rather than a two-dimensional list (or array) of size n x n. How you print the data is not related. [6, 2, 7, 5, 4, 8, 3, 9, 1, ....] (size to n2) [4, 2, 7, 6, 5, 8, 3, 9, 1, ....] [7, 4, 2, 6, 5, 8, 3, 9, 1, ....] ... close any files that you have opened as soon as you have finished using them. Time how long your program takes to find the magic square and print that time at the end of the SAME file. Sample Run Here is a sample of output of this program. Please note that the sample output only shows what is expected from your program if the user is actually entering everything as instructed. This is not a test of the program at all, but just a sample for your clarification. 2 7 6 9 5 1 4 3 8 2 9 4 7 5 3 6 1 8 4 3 8 9 5 1 2 7 6 4 9 2 3 5 7 8 1 6 6 1 8 7 5 3 2 9 4 6 7 2 1 5 9 8 3 4 8 1 6 3 5 7 4 9 2 8 3 4 1 5 9 6 7 2 Total running time: 4.76 seconds.

3011


Which browsers still support windows xp?

842


Explain in detail the thevenin`s theorem

1023


What is the call frequency?

5


What is a Visual Business Object?

509


What is EBITDA

1858


Explain why are oltp database designs not generally a good idea for a data warehouse?

1026


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

946


What is tuple with example?

919


What are the different physical inventory procedures supported in sap system?

719


What is server sent events?

846


What are the examples of homeostasis?

895


What is logonui exe application error?

1005