Question: Homework 2: Storing Primitive Data CS 1323/4 Spring 2021 Name: Student ID (usually 112-XXX-XXXX or 113-XXX-XXXX): 1. (14 points) Declare a variable of the best

 Homework 2: Storing Primitive Data CS 1323/4 Spring 2021 Name: Student
ID (usually 112-XXX-XXXX or 113-XXX-XXXX): 1. (14 points) Declare a variable of

Homework 2: Storing Primitive Data CS 1323/4 Spring 2021 Name: Student ID (usually 112-XXX-XXXX or 113-XXX-XXXX): 1. (14 points) 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 lAmAnidentifier; a. The number of masks left in a bag of masks. b. The height of a mask in inches, including partial inches. c. The height of a mask in millimeters. There are about 25 millimeters in an inch. Do not include partial millimeters, because they are too small to measure. d. The type of a mask (i.e. cloth, surgical, N95, KN95). e A single letter code that tells you the type of mask (e.g A - cloth, B = surgical, etc.) f. The name of the country where a mask was produced & Whether or not a mask has a metal stay at the nose bridge. 2. (6 points) What will each of the variables below contain after the statements are executed? double first 4,5) double second 7.3: double third - 5.2: second third: third first; first = second; Fill in the table below to show what value each variable contains. Include both the starting value (in the top line) and the ending value in the bottom line), even if they are the same. first second third Variable Starting value Ending value

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!