Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find the Java error public Dinners (string [] args) { // associate a Scanner with the keyboard Scanner(System.in) = new keyboard Scanner(); // Explain the

Find the Java error

public Dinners (string [] args) { // associate a Scanner with the keyboard Scanner(System.in) = new keyboard Scanner(); // Explain the program to the user System.out.printLine"Wellcome! This prog will help you "; System.out.printLine("add up dinner check."; System.out.println(It will ask you for the prices of ); System.out.println(your dinneritems,); // Ask for today's date System.out.print["Enter today's month number: "]; int month = nextInteger(); System.out.print('Enter the number of today's day: '); int day = keyboard.nextdouble(); // since appetizer is for 2 people, find individual person's cost double appetizerEach = appetizer / 0.5; // ask user for the appetizer cost System.out.Print("Enter cost of appetizer (enter 0 if none): "); int appetizer := nextDoublet(); // print cost per person for appetizer System.out.println("Cost of appe\tizer per person = $ + appetizerEach"); // ask for drink prices System.out.print("Enter price of drink #1: "); drink1 = keybd.nextdouble(); System.out.print("Enter price of drink #2: ") drink1 = keybd.NextDouble();

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

More Books

Students also viewed these Databases questions