Purchase Solution

Java applet, converting character to integer(vice versa) - ASCII

Not what you're looking for?

Ask Custom Question

I guess my biggest issue is actually to draw a functionable applet.

Design an applet Conversion.java that converts a character to a corresponding integer, and vice versa. The integer corresponding to a character is its ASCII code.
The design should look as the attached picture.

The applet has to have the following functionality:

* After entering a character into the left text field and pressing the "Enter" button, the ASCII code should appear in the right text field.
* If the user enters not a single character, a warning not a character should appear in red color.
* After entering an ASCII code in the range [33..126] into the right text field, the corresponding character should appear in the left text field.
* If the user enters an integer outside the range [33..126], a warning number out of range should appear in red color.
* If the user enters not an integer in the right text field, a warning not a number should appear in red color.
* If the conversion is successful, a confirmation conversion completed should appear in white color.

The applet size is 200x100 pixels.
The the width of the input fields is 1 and 3 characters, respectively.

Thank you

Attachments
Purchase this Solution

Solution Summary

A Java applet for converting character to integers and vice versa is examined.

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.