Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

LEARNING to Program with Robots (JAVA) The link to the textbook is: http://www.l

ID: 3866822 • Letter: L

Question

LEARNING to Program with Robots (JAVA)

The link to the textbook is: http://www.learningwithrobots.com/textbook/PDFs/WholeThing.pdf

7.1 For cach of the following situations, what would be the best choice(s) for the variable's type? Answer with one or more of int, double, char, boolean, string, or an enumeration defined a. Store the current temperature. b. Store the most recent key typed on the keyboard. c. Store a compass heading such as “north" or “southeast." d. Store the height of your best friend. e. Pass the Dewey decimal number of a book to a method. f. Store whether a recording is on cassette, CD, or a vinyl record. g. Return the name of a company from a method. h. Store the month of the year. i. Store the number of books in your school's library. j. Store the area of your room. k. Store the title of your favorite novel I. Pass a person's admission category for the local museum (one of “Child," by a programmer. "Adult," or "Senior") to a method

Explanation / Answer

The datatype for the following are as follows:
a.double
b.char
c.string
d.double
e.an enumertaion defined by programmer
f.string
g.string
h.int
i.int
j.double
k.string
l.string