Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ Programing: For this problem, you will have to use GraphX (this means you mu

ID: 3578213 • Letter: C

Question

C++ Programing:

For this problem, you will have to use GraphX (this means you must code or remote connect to a cselabs machine, GraphX will probably not work on your personal computer). Make the GraphX window 400 by 400. Draw a cat at spot (350,350) and a food item at (50,50). If you press 'w', move the cat up, 'a' moves the cat left, 's' moves the cat down and 'd' moves the cat right. (See: readKeys.cpp for an example on how to read input from the GraphX window.) Each time the cat moves, it will move 50 units. If the cat moves outside the window (or on the edge), stop the program and say (i.e. cout) “You fell off the world”. If you move on top of the food, cout “You win”. Note: you will not be graded on your artistic capabilities. Example 1 (user input is underlined, bolded input is typed into GraphX window)

this is the example code( readKeys.cpp)

Explanation / Answer

Answer:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote