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:

Straight Line Amortization

A method of allocating the cost of an intangible asset evenly over its useful life.

Unrealized Profits

are profits that have been earned but not yet realized through a transaction, such as an increase in value of unsold stocks.

After-Tax Dollar Value

The amount of money left after federal, state, and other governmental taxes have been deducted.

Tax Rate

The percentage at which an individual or corporation is taxed on their income or profits.

Related Questions