Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

3031143426, 978-3031143427

More Books

Students also viewed these Databases questions