(Untitled)

May 24, 2005 07:46

Got up at 11am May the 23rd. Got hearded like cattle (moo) and interviewed by camera around 2pm. Was asked what I would do in four different scenarios. Back at the apartment, some time passed in a fog while I watched Into the Woods and played GTA3 VC. The brute force password search that I'd been running on that computer for months and months ( Read more... )

Leave a comment

Comments 3

inoubliable May 24 2005, 15:26:27 UTC
In my defense, I probably would have gotten the last one if I had found an online scientific calculator that could handle that many digits.

But better than chance, anyway!

Reply

inoubliable May 24 2005, 15:29:07 UTC
Or, looking at the numbers more carefully now, if I'd employed any kind of mathematical logic. Oops!

Reply


1 little 2 little 3 little indians felar May 24 2005, 18:51:46 UTC
I missed a few but all in all I'm happy with my numbers. :)
as for #10 (I emailed you the output file so you can see what the answer is.) :D
<%@ page import="java.net.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.math.*" %>
<%@ taglib uri="/WEB-INF/projector.tld" prefix="projector" %>

<%

%>

Chess board

<%
int counter = 0;
int colorCnt = 0;
BigDecimal total = new BigDecimal(0);
BigDecimal temp = new BigDecimal(0);
String color = "white";
for(int i=1;i<9;i++){
colorCnt++;
out.print("");
for(int j=0;j<8;j++){
temp = new BigDecimal(Math.pow(2, counter));
total = total.add(temp);
if (colorCnt%2 ==0) {
color = "#ffffff";
colorCnt++;
} else {
color = "#cccccc";
colorCnt++;
}
out.print("Square - " + (counter++) + "
This Square $" + temp + "
Total So far $" + total + "");
}
out.print("");
}
%>

Reply


Leave a comment

Up