Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m supposed to make a currency conversion program thataccepts the value of the

ID: 3614832 • Letter: I

Question

I'm supposed to make a currency conversion program thataccepts the value of the current U.S. currency rate against theEuroDollar.. I have to convert 50 dollars into euros... i know 50u.s. dollars = 33.7018064 euros. I need the output to be in euroformat.. then i have to have the java program thaoutput an if statementas followed: if the Euro value is greater than 50 Euros, print the messagethat says "I will be visiting Europe this summer", otherwise themessage " I will visit Europe next year" is displayed. how do i do this? I'm confused with if statements in java, iuse eclipse I'm supposed to make a currency conversion program thataccepts the value of the current U.S. currency rate against theEuroDollar.. I have to convert 50 dollars into euros... i know 50u.s. dollars = 33.7018064 euros. I need the output to be in euroformat.. then i have to have the java program thaoutput an if statementas followed: if the Euro value is greater than 50 Euros, print the messagethat says "I will be visiting Europe this summer", otherwise themessage " I will visit Europe next year" is displayed. how do i do this? I'm confused with if statements in java, iuse eclipse

Explanation / Answer

please rate - thanks import java. util.*; public class untitled {public static void main(String[] args) { Scanner input = new Scanner(System.in); double num,euro; System.out.print("enter the value of the current U.S. currency rateagainst the EuroDollar?");        num=input.nextDouble(); euro=50*num; System.out.println("$50 is "+euro+" euros "); if(euro>50)      System.out.println("I will be visitingEurope this summer"); else       System.out.println("I will visit Europenext year"); } }