Write a square class and a tester class (two files in one project), using Circle as a model. Run your code and submit to Javadrop by end of class.
Homework write a String class. Details here. Turn in before next class 12/3.
TEST: Thursday Dec 11 over Arrays, Strings, Classes. Multiple choice, short answer, free-response.
November 24, 2025 (Monday)
Please finish SpyAcademy and check results with this grader. To use the grader, copy it to your src/ folder and open it. Then click ‘Run this File’. It will show the results of each test.
Submit your SpyAcademy.java file to javadrop. It should show up under ‘Assignments’.
HW: If you can get it to work, SUBMIT “Output of Pascal’s Triangle” to this form. Just run your program for some number of rows at least 2 times, copy and paste output.
Look at my solutions to “Make that Pattern!”. Even if you got all of them, compare your solutions to mine. If you didn’t get any, study these solutions. I think they’re (maybe) the easiest-to-understand way to solve them. (But there are many different solutions).
Try harder puzzles now, after you’ve seen my key. See if my solutions help you get some harder ones!
Challenge: Build a 3-Majority circuit using at least one XOR gate.
HW is to finish pattern puzzle worksheet and/or additional hard problems (do problems according to your skill and challenge level!). Submit to this form. You will have some time next class (Thursday) to finish if needed, and ask questions.
Finish Truth Tables or pdf. Note which problems yield equivalent truth tables and write down (also remember!) the rules implied by these equivalencies.
Turn in powers of two and tracing to this form. Your tracing solution should be a java file, powers of two could be any format depending on how you answered the question.
HW: Make sure your truth tables are correct and you have the correct equivalencies in your notes. Here’s a key
HW: Please code up the problems on your selected worksheet and verify if your answers are correct. More info
I was going to ask you to do this: Submit powers of two writeup here. You can turn in code in any language or prose or pseudocode – anything logical. If you get a chance please do. Thanks!
September 9, 2025 (Tuesday)
Download IntelliJ Community Edition and run a sample program. Explore debugger.
Work in assigned groups: compare your powers of two code and get one solution working for everybody
You can use this powers of two solution if you need to
HW: Modify your group’s solution to work for powers of 4, e.g. 100 = 64+16+16+4. Trace through code with debugger if you don’t understand how it works
September 5, 2025 (Friday)
RPN Quiz
Writing numbers as sums of: Fibonacci, powers of two, odds, powers of three
HW: Write a procedure (or code) to explain how to convert a number into a list of powers of 2 that add to that number. E.g. on input “23” you should output 16,4,2,1. Write code if you know how, otherwise plain English is fine. Explain how you pick the numbers to output in a logical way. Please bring a typed printed copy of your answer to class. (If you can code well enough to output a binary string given an integer input, that’s cool too.)
September 3, 2025 (Wednesday)
four fours puzzle
Go over sqrt2 Google sheet solution key. Make your own copy please