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

For the following descriptions of a piece of data, what data type would be appro

ID: 3905293 • Letter: F

Question


For the following descriptions of a piece of data, what data type would be appropriate to store it:

1.)            A person’s last name

2.)            A person’s birth date

3.)            A person’s salary

4.)            The number of children a person has

5.)            The city a person lives in

6.)            A website URL

Explanation / Answer

1.) A person’s last name > String 2.) A person’s birth date > String 3.) A person’s salary > double 4.) The number of children a person has > int 5.) The city a person lives in > string 6.) A website URL > string