Question: n In your code you can see variable called transValue n Use this variable to interactively change its value using the keyboard event n Use


n In your code you can see variable called transValue n Use this variable to interactively change its value using the keyboard event n Use this variable to translate the x component of the green triangle in the display function n In the keyboard function, use the letter t to increment the value of transValue by 0.1 n You can use some C++ print statement to show the change in the transValue values. Example: n cout
Using the same variable transValue n Use this variable to interactively change its value using the keyboard event n Use this variable to translate the x component of the green triangle in the display function n In the keyboard function, use the letter T to decrement the value of transValue by 0.1 n You can use some C++ print statement to show the change in the transValue values. Example: n cout Exercise 3: Keyboard Events . Using the same variable trans Value Use this variable to interactively change its value using the keyboard event Use this variable to translate the x component of the green triangle in the display function In the keyboard function, use the letter 'T' to decrement the value of transValue by 0.1 . You can use some C++ print statement to show the change in the transValue values. Example: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
