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

For the following values, what data type would a variable need to be in order to

ID: 3905296 • Letter: F

Question

For the following values, what data type would a variable need to be in order to hold it. Choose from: Integer, Decimal, Date/Time, Or String. Note that string should only be identified if the value cannot be stored in a variable of one of the other data types and decimal should only be identified if the value cannot be stored in an integer variable.

1.)            1000000 - Integer

2.)            July 4, 1776 – Date/Time

3.)            Integer - String

4.)            1000000.01- Decimal

5.)            asdf1234 - String

6.)            0.01 - Decimal

7.)            8:00 PM - String

8.)            1000000.00 - Integer

   9) Ninety - String

Just checking to see if my answers are correct.

Explanation / Answer

1.) 1000000 - Integer 2.) July 4, 1776 – Date 3.) Integer - String 4.) 1000000.01- Decimal 5.) asdf1234 - String 6.) 0.01 - Decimal 7.) 8:00 PM - Time 8.) 1000000.00 - Decimal 9) Ninety - String