Question: Question 1 [ 3 3 marks ] ArrayList is preferable when the application requires frequent random access to elements or relies heavily on index -
Question
marks
ArrayList is preferable when the application requires frequent random access to elements or relies heavily on indexbased operations. In this question, you are required to create a program that handles a list of tasks for a project using an ArrayList. Each task is described by a string. Use Swing controls and event listeners to create a GUI that will insertadd tasks, view tasks in the console, and removedelete tasks.
marks
Example:
Task Management Application
Tasks
Clean the house
Task Index
Console
Jutput FormativeAssessmentrun
run :
Tasks:
Wash the dishes
Cut the grass
Clean the house
Delete the task using the task index number:
Task Management Application
Tasks:
Wash the dishes
Cut the grass
Clean the house
Task removed successfully!
Wash the dishes
Cut the grass
tableCriteriaFunction,MarksGUI Design.,tableLayout: Is the GUI layoutintuitive and visuallyappealing markstable marksComponents: Areappropriate Swingcomponents used for taskinsertion viewing, andremoval marks
tableFunctionalitytableTask Insertion: Does theprogram successfullyinsertadd tasks to theArrayList when triggered bythe GUI? marksTask Viewing: Does theprogram correctly displaytasks in the console whentriggered by the GUI? marksTask Removal: Does theprogram successfullyremovedelete tasks from theArrayList when triggered bythe GUI? marks marksEvent Handling.,tableEvent Handling: Is eventhandling implementedcorrectly to perform thedesired tasks insertionviewing removal based onuser actions? marks
Question
marks
Create a Java method called recursivePower. This method should calculate the power of a given base number raised to an exponent using recursion. The method must accept two integer parameters: base and exponent. Your implementation should handle both positive and negative exponents. In other words, it should compute the result of the base raised to the power of exponent recursively.
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
