Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pg.47 Answer 1-5 all pg.47- 49 Answer 6 - 16 even only pg.49-50 Answer 18 - 20 all pg.50-54 Answer 21 - 31 only odds
- 1.When people first started inventing computers and machines, they wanted to make it easy and simple, so they based it on binary/base 2 so circuits would be either opened or closed.
- 2a. 1000010
- 2b. 101100
- 2c. 1001000
- 2d. 10000011
- 3a. 4
- 3b. 11
- 3c. 42
- 3d. 78
- 4. First- Buy cookie dough from the supermarket
- Second- Preheat your oven to 400 degrees f
- Third- Lay your pieces of cookie dough 1 inch apart from each other and put it into the oven
- Fourth- Wait 12 Minutes then turn your oven and take it out and let it cool.\
- fifth- Enjoy! or repeat steps 1-4 if you need more.
- 5. MyProgram.java is the program file saved, and the MyProgram.class is the Java byte code.
- 6.println, AnnualSalary, ABC, 42isTHeAnswer, for, B4
- 8. "Quotes"
- Slashes \//
- How '"confunding' "\" it is!
- 10: Shaq is 7'1
- The string "" is an empty message.
- \'""
- 12. Dear "DoubleSLash" magazine,
- Your publication confuses me. Is it
- a \\ slash or a //// slash?
- Sincerely,
- Susan "Suzy" Smith
- 14. System.out.println("This is a test of your /nknowledge of \"quotes\" used \nin 'string literals.'");
- System.out.println("");
- System.out.println("");
- System.out.println("You're bound to \"get it right\" \nif you read the section /n''quotes.''
- 16. System.out.print("Twas ");
- System.out.print("brillig and the")
- System.out.print(" ")
- System.out.print("\n slithy toves did");
- System.out.print(" ");
- System.out.print("gyre and");
- System.out.print("\ngimble");
- System.out.print("\n");
- System.out.print("\n "in the wabe");
- 18.
- 1. missing class line 1
- 2. Capital P line 4
- 3. Missing semicolon line 4
- 19.
- 1. Missing void line 2
- 2. S is capitalized line 2
- 3. Missing " line 4
- 4. Missing } line 5
- 20.
- 1. Missing { line 1
- 2. Missing args line 2
- 3. Missing ) line 11
- 4. Line 8-10 Can't comment to the right of a statement
- 21.b
- 23. Inside the first method
- Inside the third method
- Inside the first method
- Inside the second method
- Inside the first method
- Inside the second method
- Inside the first method
- Inside the third method
- Inside the first method
- Inside the second method
- 25. Inside the second method
- Inside the first method
- Inside the first method
- Inside the second method
- Inside the first method
- Inside the third method
- Inside the first method
- Inside the second method
- 27. I am method 1
- I am method 1
- I am method 1
- I am method 2
- I am method 3
- I am method 1
- I am method 2
- I am method 1
- I am method 1
- I am method 2
- I am method 3
- 29. 1. Space in identifier line 1
- 2. missing void line 2
- 3. Missing [] line 2
- 4. Missing "line 3
- 5. Missing semicolon line 4
- 6. Missing ) line 8
- 7. Missing } line 11
- 8. quotation missing \" line 9
- 9. quotation missing \" line 9
- 10. Missing " line 3
- 31. public class GiveAdvice
- {
- public static void main (String [] args)
- {
- System.out.println(" Programs can be easy or");
- System.out.println(" difficult to read, depending");
- System.out.println("upon their format");
- System.out.println()
- System.out.println("Everyone, including yourself,");
- System.out.println("will be happier if you choose");
- System.out.println("to format your programs.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement