Question: Declare a variable of the best type (int, double, char, String, boolean) to store each of the following items. A variable declaration uses a type

Declare a variable of the best type (int, double, char, String, boolean) to store each of the following items. A variable declaration uses a type followed by an identifier, as shown below. int iAmAnIdentifier;

Assume Blue Theory is a local company that sells exercise classes.

a. The name of an instructor for a particular class.

b. The number of students on the waiting list for a class.

c. The average number of students that are in a class over a one-month period, including partial students.

d. The two letter abbreviation of the state a particular studio is located in.

e. Whether or not a particular student attended a particular class.

.f. The number of minutes that a given exercise class will take. Do not include partial minutes.

g. The number of hours that a given exercise class will take. Include partial hours.

Part 2:

What will each of the variables below contain after the statements are executed?.

int first = 3;

int second = 9;

int third = -2;

second = first;

first = third;

third = second;

Declare a variable of the best type (int, double, char, String, boolean)

Fill in the table below to show what value each variable contains. Include both the starting value (in the op line) and the ending value (in the bottom line), even if they are the same

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!