Question: English when i compile it he give me an error on the main ,i need help okmarks Window Help learn.xy Customize Toolbar... tk 1-1 HW
okmarks Window Help learn.xy Customize Toolbar... tk 1-1 HW 1 - Google Docs 2.7. Floating-point numbers BOOKS 13 Homework 1-1 E Home - zyBooks catal. 1 Import java.util.Scanner; 3 public class Main { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); double easternCaribbeandollar-0.37; double dominicanPesos-0.019; double brazil Reals.0.239; double usDollars; System.out.println("Enter number of Eastern Caribbean Dollars : easternCaribbeandollar - scnr.nextDoubleO; System.out.println("Enter number of dominican Pesos: "); dominicanPesos - Senr.nextDouble; System.out.println("Enter number of brazil Reals : "); brazil Reals - scnr.nextDouble: usDollars - (0.37"easternCaribbeandollar) - (0.019'dominican Pesos) + (0.239"brazilReals)://conv System.out.println("US Dollars - + usDollars): Develop mode Submit mode Run your program as often as you'd like, before submitting for gradin input values in the first box, then click Run program and observe the second box. Enter program input (optional) if your code requires input values, provide them here. Your program expects input Main.java Your program) Input (from above) Run program Output (shown be Program output displayed here Enter number of Eastern Caribbean Dollars : Exception in thread "main" java.util. NoSuchElement Exception at java.base/java.util.Scanner. throw For (Scanner.java:937) at java.base/java.util.Scanner.next(Scanner.java:1594) at java.base/java.util.Scanner.nextDouble (Scanner.java:2564 at Main.main(Main.java:14) MacBook Pro
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
