Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: This assignment will give you the opportunity to use input and output functionality inside java. When using input and output functions, you will also

Objectives: This assignment will give you the opportunity to use input and output
functionality inside java. When using input and output functions, you will also need to
have knowledge of exceptions and loops. Therefore, by completing this assignment,
students will have learned.
Importing values from a text file
Using for and while loops
Exporting data to a text file
Using Exceptions (try-catch)
Task Description: An accountant has five text files (Currency[1].txt) containing many
numbers on each line which are purchases made by a client in USD(United States
Dollar). The accountant wants a program that converts each USD value to 6 other
currencies. You should write these conversions to the text file (Converted.txt). The
accountant also wants to know which file contains the most money used on purchases.
This should be displayed in the console.
Conversion Factors:
1.03 USD =1 Euros
0.0071 USD =1 Japanese Yen
0.012 USD =1 Indian Rupee
0.75 USD =1 Canadian Dollar
0.051 USD =1 Mexican Peso
0.00075 USD =1 South Korean Won
Output Example:
Submission notes:
Submit all files from your src folder, including all .java and input files, the .project
file, .classpath file, and optionally, the .settings folder.
Be sure that your project compiles on CS Department computers before
submission.
Zip the entire folder and name it as Assg#_firstName_lastName.zip.
Submit the zipped file in the respective Canvas link.
Instructions for Mac users
o By default, Finder hides dot files like .project, .classpath, and the .settings
folder. You can use the shortcut (shift + command +.(dot)) to show
hidden files in Finder.
Instructions for Linux users
o By default, your file manager may hide dot files like .project, .classpath,
and the .settings folder. Your file manager should have a setting that will
show hidden files. Its location and any shortcuts depend on the file
manager you are using.

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions