Homework 6

1.   Assuming the following declarations:
            int i = 7, j = 3, k = 5;
            char c = 'H';
            double x = 7.3, y = 0.5;
            string s = "do", t = "ne";
      Fill in the following table, giving the type and value of each expression.

Expression

Type

Value

i + x

 

 

c - 'A'

 

 

s == "do" && x<5 || x > 6

 

 

k = j * y

 

 

cin >> k

 

Leave Blank

2. Write a program that will read in three integers and print out the greatest of the three integers.

 

Turn in written answers to question 1, your source code (make sure your code complies with the “Required Style Guide”), and a screen capture of your program running.