Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

// the language is java Part I: Code an operation class TempConvertWithValidate using any version of Validator discussed in the text in Chapter 5, so

// the language is java

Part I: Code an operation class TempConvertWithValidate using any version of Validator discussed in the text in Chapter 5, so it can verify all invalid data entries in the temperature conversion you did in Lab 1. Understand the examples of Validators first before you start to do this part of lab. In your code you will display a menu using JOptionPane first as follows: 1. Convert temperature from Celsius to Fahrenheit 2. Convert temperature from Celsius to Fahrenheit 3. Quit You will verify these 3 options and then in the method calls to do the temperature conversions, you will also verify the input data from the user ranged from -100 to 200. All data entries other than this range

are considered as invalid and you must verify them using any versions of the Validator class provided in the example code from the text. You will code a driver class TempCovertWithValidateApp to test your application. Your program must continue to run until the user selects Quit to terminate the execution. Document each of your source codes as required above. Part II - Code all operations including the process of input data and the while loop for continuously running the program in the operation class, not in the driver class. Therefore, your driver class for test looks as follows: public class TempCovertWithValidateApp2 { public static void main(String[] args) { TempCovertWithValidate temp = new TempConvertWithValidate(); //Create object temp.start(); //call method to execute the operation class } } You may submit Part I and II as one project. But suggest you code them separately first as your learning process. Document each of your source codes as required above.

part |I: must verify letter entries for selection; must verify all data entries for temp values including letters;

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions