Examlex

Solved

Import Javax.swing.*; Class FindPoints

question 30

Essay

import javax.swing.*;
class FindPoints
{
   public static void main(String[] args)
   {
      int[][] points =
     {{10, 20, 30},
      {20, 40, 60},
      {40, 60, 80}};
      String prompt;
      int class;
      int level;
      prompt = JOptionPane.showInputDialog(null, "Class: ");
      class = Integer.parseInt(prompt);
      prompt = JOptionPane.showInputDialog(null, "Level: ");
      level = Integer.parseInt(prompt);
      JOption.showMessageDialog(null, "Your points: " + ---complete code here-----);
   }
}
The above code depicts a two-dimensional array named points that refers to a Class and Level to determine a point value. Complete the JOption command so that the code will determine a point value based on the points array.


Definitions:

Adoptive Siblings

Children who are not biologically related but have become siblings through the process of adoption.

Identical Twins

Siblings born from the same fertilized egg, sharing 100% of their genes and often used in genetics research.

Freudian Approach

A psychological theory or technique based on the work of Sigmund Freud, which emphasizes unconscious motivations and conflicts, especially as they manifest in dreams and symbolic actions.

Unconscious

Relating to the part of the mind that is inaccessible to the conscious mind but that affects behavior and emotions.

Related Questions