Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import javax.swing.*; class FindPoints { public static void main(String[] args) { int[][] points = {{10, 20, 30}, {20, 40, 60}, {40, 60, 80}}; String prompt;

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

Explain how rights differ from power or force, and from permission.

Answered: 1 week ago

Question

=+Show that un is finitely additive and countably subadditive on o.

Answered: 1 week ago