Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

D How will your group react to this revelation?

Answered: 1 week ago