Question: Problem 2 (Decision & Looping Structures) Write a program that simulates a simple currency conversion between US dollars and Euros according to the following sample

Problem 2 (Decision & Looping Structures)

Write a program that simulates a simple currency conversion between US dollars and Euros according to the following sample run. Use this conversion rate, 1 US Dollar equals to 0.89 Euro. Please notice the simple validation of the users input. The user needs to enter the name of the currency correctly (case-insensitive). Name your class as Q2Currency.java

Problem 2 (Decision & Looping Structures) Write a program that simulates a

hat currency you are converting from? Dollar or Euro ): dola Wrong input. please enter either Do llar or Euro? dollars Wrong input please enter either Dollar or Euro? dollar Enter amount of money you have 150 Me will give you 133.5 Euros Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!