It's all due to the definition of log base 10

If

So let's look at some integer cases first:

x = 1 y = 10

x = 2 y = 100

x = 3 y = 1000

and

x = 0 y = 1

x = -1 y = 0.1

x = -2 y = 0.01

x = -3 y = 0.001

Now for a number like eg. 53

and so on.

So numbers between 1 and 10 have a log that is between 0 and 1

numbers between 10 and 100 have a log that is between 1 and 2

numbers between 100 and 1000 have a log that is between 2 and 3

For your example 123456 = 1.23456 x 10^5 so the log will be 5.something

Bob

some back ground here: https://www.mathsisfun.com/algebra/logarithms.html

]]>Modulo is a math operation that finds the remainder when one integer is divided by another. In writing, it is frequently abbreviated as mod, or represented by the symbol %.

So % finds the remainder after dividing by 2. So what I said and what the book says are the same. I note that the book is also applying the mod to the row and column values before the total is found. mod 2 division will 'detect' even and odd numbers .

The use of % more than once is necessary. If you just had

color = (row % 2) + (column % 2)

There are the four cases are 0 + 0 = 0; 0 + 1 = 1; 1 + 0 = 1; and 1 + 1 = 2

The last answer would not give a 1 or 0 so would generate an error.

But I think this would work:

color = ( row + column ) % 2

Perhaps you could try it.

There's a short page about modulo arithmetic here: https://www.mathsisfun.com/numbers/modulo.html

Bob

]]>Please check out my Tic Tac Toe Tutorial with Haskell.

I also have 7 lecture crash course: https://agnishom.github.io/haskell-21/

]]>`super.s = s`

the parameter passed to the function

`tb.new`

replaces both

`s=s`

turns out it does not and only replaces the rvalue so

` return s1.s...s2.s`

works because the index of

` super`

is

`s`

not the value passed to the function and the table

`super`

is destroyed upon exit of the

`tb.new`

function and when it is called again the table is created again, so there are two different versions of the same table.

]]>I am a big fan of functional programming myself.

Have you taken a look at Haskell? I suspect that you might find this language way more interesting and elegant!

]]>Note: I originally had a detailed explanation for each one but this page suddenly reloaded and I don't want to retype everything . I'll update it later. Also, the size of the message sending input box is different from the viewing message box, so sorry if there are single quotes for new lines of comments where they aren't supposed to be and if one line spills into the other.

```
'These are comments in VBScript
'Strings must be in double quotes "" not single quotes ' '
'1. Msgbox
x=msgbox("Hi there", 1, "Title")
'Note: The 1 is a number that denotes the type of msgbox. It can also be some non-string text, such as vbYesNo. 'Please google it for more info
'2. Inputbox
x=inputbox("question/text", "title")
'3. Quiz with if else Elseif
a=inputbox("type yes or no for yes and maybe for no, case-sensitive", "Quiz")
dim score : score = 0
'Create a variable and define a value
if a="yes" or a="no" then
j=msgbox "yes"
score = score+1
'Set score = score+1 also works
elseif a="maybe" then
k=msgbox "no"
else
l=msgbox "I don't understand."
'Extra: Looping
dim var : var = 0
do until var = 11
x=msgbox(var, "loop")
loop
'Warning: the following is an infinite loop. In some cases it can be stopped from the task manager, in some cases 'you will have to shutdown and restart your computer
do
message=msgbox("infinite loop", "title: infinite loop"
loop
```

pi_cubed wrote:

]]>Tell me if anything is wrong.

What is a matchbox computer?

pi_cubed wrote:

]]>See here for more information.

Question 1 :Str1 DB ' & 12 ABC ; YQm '

Output : Only Print Capital Letters ie ABYQ

Question 2 : str2 DB 'AKMNYQ'

Output : Largest AscII print; that is min = A , max = y

Question3: Srt3 DB ' ihmabdra

Output: i space hma space bdra space

]]>http://bcs.wiley.com/he-bcs/Books?actio … indow=true

B

]]>Now, JAVA is not an easy thing to learn, but with constant dedication and proper guidelines, one can master it.

There are also online tutorial available to learn Java programming.

Hope it will help!!!

]]>