Robotics C++ Physics II AP Physics B Electronics Java Astronomy Other Courses Summer Session  

Exercises

 

Exercise 1

Exercise 2

Exercise 3

Exercise 4

Exercise 5

Exercise 6

 

 

Exercise 1

 

Duplicate the first example, Displaying Multiple Strings (Examples)

 

Exercise 2

 

Duplicate Example 2 except draw two lines before the text and 1 line under the text. Each line should be longer than the one before it. Change the text to My name is --------- (your name).

 

Exercise 3

 

Duplicate Example 2 except draw one line before the text and 2 lines under the text. Each line should be shorter  than the one before it. Change the text to My name is --------- (your name).

Exercise 4

Duplicate  Example 3 except prompt for 3 floating point numbers. Calcuate the result of subtracting the third number from the sum of the first 2. Print the result, appropriately labeled.

Exercise 5

Duplicate  Example 4 except prompt for 3 floating point numbers. Calcuate the result of subtracting the third number from the sum of the first 2. Print the result, appropriately labeled. (same as exercise 4)

Added: Print the result along with whether it is an even or an odd number

Exercise 6