Assignment 6: There once was a wise servant who saved the life of a princess. The king agreed to pay whatever the servant could dream up. Knowing that the king loved chess, the servant told the king he would like to have grains of wheat. One grain on the first square of a chess board. Two grains on the next. Four on the third, and so on. There are 64 squares on a chessboard. Write a program that shows how many grains were on each square and the total number of grains. In other words, I want to type <pre> java Grains </pre> and see <pre> square 1 has 1 grain square 2 has 2 grains square 3 has 4 grains square 4 has 8 grains </pre> ...

Assignment 7: Write a program that will add the following floating point numbers together: <pre> 2.222 15.444 27.111 1.001 3.915 7.777 8.888 9.999 12.121 11.522 </pre> These numbers add up to 100. Print the total, and then print a statement of whether or not the total is equal to 100.000.