Examlex

Solved

How Much Wealthier Would You Be One Year from Now

question 115

Multiple Choice

How much wealthier would you be one year from now if you exchange $100,000 (U.S.) into Hong Kong Dollars today at an indirect rate of HK$7.8/$, earn 7% on your Hong Kong investment, and exchange back at a rate of HK$8.0/$, as compared to investing in the U.S.at 4.0%?


Definitions:

Sentence.replace()

A method in programming languages like Java that replaces part of a string with another string.

String.format()

A method in Java that returns a formatted string using the specified format string and arguments, similar to printf in C.

Sentence.indexOf()

A method in Java that returns the index within the string of the first occurrence of the specified character or substring.

JOptionPane.showInputDialog()

A method in Java that prompts the user for input in a dialog box.

Related Questions