Write the C++ statements to declare and approprately initialize variables representing the following:1. Your name2. Your age3. Your income

What will be an ideal response?

Answers will vary by student, but the same data types should be used.

1. string myName = "Diane Zak";

2. short age = 21;
    short would be used instead of the int data type, since the maximum value for short
    is 32,767

3. float income = 0.0;
    float would be used instead of the double data type, since the maximum value for float
    is quite large

Computer Science & Information Technology

You might also like to view...

A single program that manages an entire business or set of related tasks

What will be an ideal response?

Computer Science & Information Technology

The goal of a selected AutoComplete command is explained in the ________ message

Fill in the blank(s) with correct word

Computer Science & Information Technology