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:

Significant Decline

A substantial reduction in value or quantity over a period, often used to describe a marked drop in financial markets, asset values, or economic conditions.

Equity Method

An accounting technique used by companies to assess the profits earned through their investments in other companies.

Fair Value

The remuneration for divesting an asset or the compensation needed to transfer a liability in an orderly market exchange at the calendar mark for assessment.

Temporary Decline

A short-term decrease in the value or performance of an asset or market, expected to recover over time.

Related Questions