6:34 el LTE 64 Task 4 - TargetUpdater INSTRUCTIONS Description In this task, you are given a method updateTarget(Target(

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

6:34 el LTE 64 Task 4 - TargetUpdater INSTRUCTIONS Description In this task, you are given a method updateTarget(Target(

Post by answerhappygod »

6 34 El Lte 64 Task 4 Targetupdater Instructions Description In This Task You Are Given A Method Updatetarget Target 1
6 34 El Lte 64 Task 4 Targetupdater Instructions Description In This Task You Are Given A Method Updatetarget Target 1 (35.78 KiB) Viewed 58 times
6 34 El Lte 64 Task 4 Targetupdater Instructions Description In This Task You Are Given A Method Updatetarget Target 2
6 34 El Lte 64 Task 4 Targetupdater Instructions Description In This Task You Are Given A Method Updatetarget Target 2 (38.01 KiB) Viewed 58 times
6 34 El Lte 64 Task 4 Targetupdater Instructions Description In This Task You Are Given A Method Updatetarget Target 3
6 34 El Lte 64 Task 4 Targetupdater Instructions Description In This Task You Are Given A Method Updatetarget Target 3 (26.12 KiB) Viewed 58 times
6:34 el LTE 64 Task 4 - TargetUpdater INSTRUCTIONS Description In this task, you are given a method updateTarget(Target() targets, int level) in the TargetUpdater class. Complete the implementation of the method so that it repeatedly selects two targets from the target array and swap their x, y, z positions. The number of times to repeat should depend on the parameter, level, and is indicated in the following table: level number of times for selecting two targets 1 0 N 4 3 10 Note that if both of the selected

6:35 el LTE 64 Note that if both of the selected targets are hit or both of them are not hit, swapping should not be performed. However, this also counts towards one of the selections. You may refer to the Javadoc of the Target class here for checking the hit status of a target and refer to the Javadoc of the GameObject class here for accessing the x, y, z positions of a target. Location of the relevant class The TargetUpdater class is in the package comp102x.project.task. You can locate the Target Updater class by navigating through the folders: comp 102x -> project -> task in the downloaded project template. Submission The declaration of the method is already given:

6:35 LTE E Submission The declaration of the method is already given: public void update Target (Target [] targets, int level) { 1/ Please write your code after this line } You only need to complete the body of the method in the PROJECT GRADED TASK 4 textbox below. Project Graded Task 4 0.0/20.0 points (graded) 1 // Please write your code after this line 2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply