Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pick ONE of the following options: OPTION 1: Create a GUI application Currency Converter using Swing or SWT with the following components (4 points):

  

Pick ONE of the following options: OPTION 1: Create a GUI application "Currency Converter" using Swing or SWT with the following components (4 points): Entry box for the user to type in a dollar amount. o Labels identifying the entry box and result Buttons for conversion operations from US dollar to: CAD Dollar (1 US$ = 1.28 CAD$) Euro (1 US$ = 0.94 EURO) Yen (1 US$ = 128 Yen) GBP (1 US$ = 0.79 GBP) A textbox or label to display the result o Format the result to be displayed with two decimals only if the value is not integer Implement actions for the four conversions (4 points) Make sure the application doesn't raise an exception when the buttons are clicked with an empty box. Set the window title to Your Name + "Converter" (1 point) Write a Javadoc-style comment at the beginning of the source code with a description of the program and your name as @author and @since (1 point) OPTION 2: Write a console application that satisfies the following requirements: Write a method to print a welcome message on the screen: "Welcome to " + Your Name + "Currency Converter". (1 point) Write a menu method that prints a menu of options on the screen corresponding to the conversion operation from US$ to: (2 points) o CAD Dollar (1 US$ = 1.28 CAD$) Euro (1 US$ = 0.94 EURO) o Yen (1 US$ = 128 Yen) o GBP (1 US$ = 0.79 GBP) The main method must have a loop to allow the user to perform conversions until an option to exit the program is selected. Call menu() to get the operation chosen by the user, perform the appropriate calculation and print the result on the screen. (6 points) Write a Javadoc-style comment at the beginning of the source code with a description of the program and your name as @author. Write Javadoc-syle comments for all methods (1 point) You will be graded on correctness and style. Programs with poor indentation will be penalized heavily!

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

option 2 Heres a more detailed explanation of the provided code import javautilScanner This program is a Currency Converter that allows users to conve... 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

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

What are the effectiveness measures of database design?

Answered: 1 week ago

Question

Create a decision tree for Problem 12.

Answered: 1 week ago