Pick ONE of the following options: OPTION 1: Create a GUI application Currency Converter using...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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! 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!
Expert Answer:
Answer rating: 100% (QA)
option 2 Heres a more detailed explanation of the provided code import javautilScanner This program is a Currency Converter that allows users to conve... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
1. Hannah is applying for a life policy on her girlfriend Sarahs life. The policy is $500,000 and carries a large premium. Hannah is the main earner, so she is concerned about not being able to pay...
-
This code must be written in c# NOTE: Modulo division (quotient and remainder division) is notcovered in the textbook but it is an important aspect of anyprogramming language. I describe below the...
-
Reflect on the key elements of an effective professional development program. List the top three elements that must be included in an effective professional development program. Does your school's...
-
Describe the different ways in which capital can be transferred from suppliers of capital to those who are demanding capital.
-
The third step in the delegation process entails making sure the subordinate accepts responsibility for the delegated tasks. How would Meyer ensure that subordinates accept responsibility?
-
Which of the following does not present a tax planning opportunity? a. Difference in tax rates across jurisdictions b. Difference in tax rates across time periods c. Difference in tax rates across...
-
An array of electronic chips is mounted within a sealed rectangular enclosure, and cooling is implemented by attaching an aluminum heat sink (k = 180 W/m K). The base of the heat sink has dimensions...
-
Identify the impact on Stockholder's Equity of the error below: A company received cash from a customer for services to be provided in the future; they mistakenly credit Revenue instead of Unearned...
-
a. What are the required elements of arson? b. Tom breaks into a neighbors barn, sets off 20 sticks of dynamite, and blows up the barn. The barn does not catch fire, but it is blown to small bits and...
-
Draw plots for the regions described by the following equations: (a) ilm(z) < 1 (b) Re(2) > 2+1 (c) | Im(2) +2
-
Assume that individuals have identical preferences and that each has a demand curve for internet services of the following form: P = 53 - 2Q where P is the price per hour and Q is hours per month....
-
Al Sevice Corporation 2022 operating performance vs. 2021 operating performance Calculate the following financial factors for both years: Place X in proper colum 2022 2021 Better Worse Al Sevice...
-
a company estimates that the total factory overhead costs will be $559,619 for the year. Direct labor hours are estimated to be 90,700. What is the pre determined factory overhead rate? The amount of...
-
Sapsora Company uses ROI to measure the performance of its operating divisions and to reward division managers. A summary of the annual reports from two divisions is shown as follows. The companys...
-
A 258.93 kg box is resting on a table. The table's surface is 0.75000 m above the floor, and the floor is 6.096 m above the ground. How much gravitational potential energy does the box have relative...
-
ABC Corp is issuing 221 thousand bonds at a price of $1000 each. Their underwriting syndicate charges them 7.51% of the total and a $2.5 million fee. How much does ABC receive from the issue? Enter...
-
The words without recourse on an indorsement means the indorser is: a. not liable for any problems associated with the instrument. b. not liable if the instrument is dishonored. c. liable personally...
-
What are the effectiveness measures of database design?
-
Create a decision tree for Problem 12.
-
GaiaOrganix is an organic food wholesale co-op linking producers and consumers. GaiaOrganix negotiates purchases by grocery and other stores from farmers who raise a variety of crops, such as fruits,...
-
If a tRNA has an anticodon with the sequence 3-GAC-5, which amino acid does it carry? a. Aspartic acid c. Leucine b. Valine d. Glutamine
-
Lets suppose a researcher mixed together nucleotides with the following percentages of bases: 30% G, 30% C, and 40% A. If RNA was made via polynucleotide phosphorylase, what percentage of the codons...
-
An inborn error of metabolism is caused by a. a mutation in a gene that causes an enzyme to be inactive. b. a mutation in a gene that occurs in somatic cells. c. the consumption of foods that disrupt...
Study smarter with the SolutionInn App