- Open this file in your browser and Microsoft Visual Studio.
- Add your name, section, and email.
- It is pronounced "YEW-nair-y".
- Add code after the line:
YOUR CODE STARTS AFTER THIS LINE: to complete this lab.
- Your output should look like the Example Output below.
- Variable declarations section
- Write a comment that identifies this coding section.
- Add the following variables:
myCount
dayOfMonth
year
loopCounter
whatAmIOne
whatAmITwo
whatAmIThree
- Assignments section
- Write a comment that identifies this coding section.
- Assign the following data to the variables created in the previous section.
- myCount -->
10
- dayOfMonth -->
21
- year -->
2009
- loopCounter -->
0
- whatAmIOne -->
"this is just a test"
- whatAmITwo -->
25
- whatAmIThree -->
(5 >= "5")
- Calculations section
- Write a comment that identifies this coding section.
- Using ONLY unary operators change the value of each of the variables with the following:
- adding
1 to myCount
- subtracting
1 from dayOfMonth
- subtracting
3 from year
- testing whatAmIOne for its
type
- testing whatAmITwo for its
type
- testing whatAmIThree for its
type
- Output section
- Write a comment that identifies this coding section.
- Output the variables with text as in the following example.
Example Output
adding 1 to myCount: 11
subtracting 1 from dayOfMonth: 20
subtracting 3 from year: 2006
whatAmIOne is a "string"
whatAmITwo is a "number"
whatAmIThree is a "boolean"
Your Output: