Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started