Sciences AllOther Interview Questions
Questions Answers Views Company eMail

What is PEPSSI?

2 2638

What is Para Psychology?

1 3240

how many times a wheel revolves in a mile

1 1010




what is the difference between diffusion and osmsis?

2 2868

hi buddies pl send me some banking projects with description my id 'prads19@rediffmail.com'

999

how will mapping between testcases and requirments(tracebility matrix) in manual testing without using any bug tracking tool

Accenture,

726

sap question.. i want to call a text module through the program which i have created with the help of so10 . how can i do this.

TCS,

1195

Is foam a compound or element?Lead?Wood?Black Wood?Rubber? Gold Metal?Silver Metal?Plastic cylinder cube?

2 2526




What is L44 Kernel? please define and explain?

1 1601

What is virtual Machine and how it works ?

744

Describe briefly how an amobea exchanges oxygen and carbon dioxide gases with its surroundings.

782

how to suspend a heavy density powder in alcohol

808

What does i. Salt ii. Vinegar iii. Heat iv. Sugar v. Very cold vi. Drying vii. Pressurization viii. Preservatives ix. Radiating do to the food? in regards to preserving food.

713

write a program which calculates for every five digit integer entered on a keyboard, a numerical code computed as follows:first digit multiplied by 2+ second digit divided by 3 and the quotient multiplied by the third digit, + the fourth digit + the fifth digit divided by 2. the program should then display the following results 1, the code calculated from the integer value entered 2, the character value corresponding to the code as per the ASCII TABLE 3, Given any three 5-digit integer number, display the corresponding three-character code key:

1073

which state was ranked fist inproducing rice and 2nd in producing potatos?

HAL,

1 1525


Post New Sciences AllOther Questions






Un-Answered Questions { Sciences AllOther }

cant i ask health related questions? if so how?

630


how many elements are common to living organisms?

790


16sqmm copper cable carrying how much amps ?

161


Wats d criteria to make a shampoo in liquid or jelly form???

565


Describe briefly how an amobea exchanges oxygen and carbon dioxide gases with its surroundings.

782


principle and calibration of uv. and why we use potassium dicromate solution for contol of absorbance

1214


what is eligibility for M.S

731


who discovered the groups of blood?

612


an iron ball bounce more than a cricket ball?

789


John was performing IS audit of a computer center. He noticed that two activities were performed by the same person. He did NOT report one of the following sets of activities as audit failure. Which one did he not report? A) Security operation and change management B) Computer operations and system development C) System development and change management D) System development and systems testing

669


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.

1403


what is the reason for spark appearing in mixer grinder

3352


Any one regarding result of NIC(National Informatices Centre) interview for SB Programmer?

741


Five iportant parameters in transducer operation.( help me with correct ans.)

616


Hi I have done my B.Sc computers and my query is that do i have to compulsory write GRE or TOFEL to study in US. Please let me whether I am eligibly for GRE or TOFEL with B.Sc computers.... Regards Kamal

843