Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Purpose: The purpose of this lab is to practice the JOptionPane class and switch statements. You will also use this lab as an opportunity to

Purpose: The purpose of this lab is to practice the JOptionPane class and switch statements. You will also use this lab as an opportunity to prepare a simple tool for studying for the upcoming exam. Task: Name your project either FlashCards_FirstName_LastName or Lab4_FirstName_LastName. Remember to include a documentation comment summarizing the program. You will make flash cards by creating an input dialog to accept a String specifying a choice of 5 options. Remember to import the JOptionPane class and to terminate your program with the exit method. The input dialog should look as similar to the following example as possible: Use a switch to display an appropriate message dialog for a specified term. For each of the five cases of user inputs, 1-5, as well as the default case, the message dialog should display each of the following, respectively: Stating the name of a variable and the type of data it will hold Storing a value into a variable First time a value is stored into a variable Statements are executed one after the other without branching off in another direction Specific actions are taken based on some condition Please indicate either 1, 2, 3, 4, or 5 As an example, if the user enters 1, the following message dialog should be displayed: Criteria: Comments for this program are worth 5 points. Properly declaring a String for user input and creating the initial message dialog of options is worth 20 points. Properly implementing the switch statement and displaying the correct message for each term is worth 75 points.

I have been working on this assignment for a week, can anybody help me with this please! This is supposed to be coded in java using the switch and j option pane elements

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions