Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 1-1 You just returned from a trip. The countries you visited were Jamaica, The Dominican Republic and Cuba You arrived back in the United

image text in transcribed
Homework 1-1 You just returned from a trip. The countries you visited were Jamaica, The Dominican Republic and Cuba You arrived back in the United States with some foreign currency from these countries, Write a Java program that prompts the user for the amount of each foreign currency. (Hint: Use the Scanner class) Your prompts should look like this: Enter number of Jamaican Dollars : Enter number of Dominican Pesos: Enter number of cuban Pesos: The current exchange rates for these currencies is: 1 Jamaican Dollar -0.0069 US$ 1 Dominican Peso - 0.017 US $ 1 Cuban Peso - 0.042 Us $ Your Java program should convert the amounts entered by the user and compute and display the total amount of US Dollars. Your output should look like: Us Dollars - Stotal amount of us Dollace Hint Be very careful with formatting your output System.out.print("US Dollars - 54.27 "totalnitedatates Dolla w

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions