1. Largest Number A: If there is a limit to the amount of information that can be stored / represented in the universe and all of it was allocated for a
giant integer register, what is the largest number such a register could
1. Prime Number A mathematician, a physicist, a civil engineer, and a Software Engineer are asked (after a few beers) to show that all odd numbers
greater than 1 are prime.
Mathematician: 3 is prime, 5 is prime, by induction they're all prime. Physicist: 3 is prime, 5 is prime, 7 is prime, 9 is... experimental error, 11 is prime, 13 is prime -- clearly, they're all prime. Civil Engineer: 3 is prime, 5 is prime 7 is prime, 9 is prime, 11 is prime -- sure, they're all prime. Software Engineer: 3 is prime, 5 is prime, 7 is prime, 7 is prime, 7 is prime, 7 is prime, 7 is prime. . .
Some people have no clue that there are a huge range of hidden files and folders on their Mac OS X. Apple likes to keep things easy for users by hiding them. This is good for newcomers but keeping files hidden is very tedious for experienced users who is looking to tweak and fine-tune the Mac. So, how do you reveal hidden files on your Mac? Well, we can use our Terminal or third party software. I personally prefer Terminal. Ok then Open the Terminal application in your Utilities folder. At the prompt, enter or paste the following command line then press RETURN.
The arrays we used so far were uniform series arrays, where all the array elements stay in a simple list, like in a
column. This is the structure of one-dimensional array, where all elements fit
in one list (life is very simple). But sometimes, you may need to divide the
list in a delimited sections.
We know that variables are used to store data in a Java program. We also know that each variable can store not more than one data item. So, what do we do if we need to store a large number of data items, say 50. Well, we can use 50 variables, one for each of the 50 data items, but we need to write 50 lines of code for setting up these variables, or we can use ARRAYs. Which will need just a single line. Most real-world programs handle vast amount of data. An array with loops can relatively handle a vast amount of data.