16 Sep PMCA Sunday 10:00 Practice -09.12
Question: You have n boxes in a line on the table numbered 1 . . . n from left to right. Your task is to simulate 4 kinds of commands: 1 X Y : move box X to the left to Y (ignore this if X is...
Question: You have n boxes in a line on the table numbered 1 . . . n from left to right. Your task is to simulate 4 kinds of commands: 1 X Y : move box X to the left to Y (ignore this if X is...
Question: You have n boxes in a line on the table numbered 1 . . . n from left to right. Your task is to simulate 4 kinds of commands: 1 X Y : move box X to the left to Y (ignore this if...
Question: Create a new pygame window and then create 2 different types of sprites by the name of Player and Enemy. Make sure, you are able to move the Player using the keyboard arrow keys. Make sure you create atleast 10 different enemies sprite objects and only...
Question 1 A left rotation operation on an array of size shifts each of the array's elements unit to the left. Given an integer, write the code to rotate the array that many steps left and return the result. Sample Input 1: numSteps: 2 arr: [1,2,3,4,5] Sample Output 1: arr :...
Question: In the previous class, we built a simple store in Java by using different classes and objects. In the previous class, we built the Product class and created the object out of the product class and used a for loop to Print the product objects. As...
Question 1: Create a dictionary variable personalInfo. The keys will be the information to be filled, such as: name, age, address, etc. The values is the personal detailed info, such as: Kevin, 19, 123 King St, etc. Question 2: From the dictionary created above, make two lists (make sure...