Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Due Date: January 29, 2019 Part 1 (10 points): Place your answers to the questions in Part 1 in a Word document. The document will
Due Date: January 29, 2019 Part 1 (10 points): Place your answers to the questions in Part 1 in a Word document. The document will be submitted to Assignment 1 on Canvas with the other files in this Assignment. A) What would the following statement, when used in a Java program display on the screen? System.out.println("Need more coffee!"), B) Find the errors in the following lines of code (Hint: there are 3 errors): system.out.println("Welcome to Starbucks!"); System.out.println("Our special of the day is coffee.) System.out.println("Would you like some coffee?"); C) Which of the following may be used as variable names in Java? rate1 1stPlayer Myprogram.java Long TimeLimit numberOfWindows Give the declaration for a variable called count of type int. The variable should be initialized to zero in the declaration. D) E) True or False: The following two lines of code will both add 5 to the variable named amount amount +S; amount- amount +5; Part 2 (10 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started