Find and fix the error in the given code

Assignment Help Basic Computer Science
Reference no: EM131193519

Use the following code:

import java.util.Scanner;
public class SyntaxError
{
            public static void main(String[] args)
            {
                        System.out.println(Enter two numbers to multiply.)
                        Scanner keyboard = new Scanner(System.in);
                        n1 = keyboard.nextInt();
                        n2 = keyboard.nextInt();
                        int product = n1 * n2;
                        System.out.println("The product is " + product);
            }

Find and fix the error.
Compile and run the fixed program.
Take a screenshot of the result.
Paste your screenshot into a Microsoft® Word document that includes the following:

  • The new fixed source code
  • At least 3 error messages you observed (include screenshots of the messages)

 

Verified Expert

System.out.println

Reference no: EM131193519

Questions Cloud

Which is not true of public good : Which is not true of a public good?
Study touching because it happens frequently in public : Some studies have observed extended embraces and greater intimacy of touch more during departures than during greetings. It is easy to study touching because it happens frequently in public. Across the world, norms for the amount and kinds of touchin..
Observed in speakers unable to include gestures : Mary is a person who typically makes an average amount of gestures while talking. Under which of the following situations is Mary likely to make more speech-related gestures than usual? What speech difficulties have been observed in speakers unable t..
They primarily benefit the communicator doing the gesturing : The speaker’s gestures tend to be smaller and less precise when relaying information that the receiver is unfamiliar with. Gestures are used because they primarily benefit the communicator doing the gesturing.
Find and fix the error in the given code : Find and fix the error. Compile and run the fixed program. Take a screenshot of the result. Paste your screenshot into a Microsoft® Word document that includes the following:
Price elasticity of market demand for retail gasoline : Suppose the own price elasticity of market demand for retail gasoline is -0.7, the Rothschild index is 0.4, and a typical gasoline retailer enjoys sales of $2,150,000 annually. What is the price elasticity of demand for a representative gasoline reta..
Good character-management capability-collateral : What primary considerations, in addition to good character, management capability, collateral, and owner’s equity in the SBA's loan decision process should be realized in an entrepreneur’s application for a basic 7(a) guaranteed loan?
What does each word of erd mean : ERD stands for Entity Relationship Diagram. There are three very meaningful words in that title. What does each word mean? What does the entire phrase mean? Normalization serves several purposes. What are they? What are the pros and cons of normaliza..
Discuss which aspects of your personality have changed over : Reflect on your life history and discuss which aspects of your personality have changed over time and which aspects have stayed consistent.Based on your retrospective analysis, describe the roles of nature and nurture in shaping your personality. Ref..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are the basic network management functions

(1) What are the basic network management functions: OAMP? (2) Describe what are in SNMPv1

  What networking-communications changes were in past decades

What networking and communications changes were introduced in the past decade (2000s), and what were their implications?

  What are advantages and disadvantages of immediate update

Discuss the immediate update recovery technique in both single-user and multiuser environments. What are the advantages and disadvantages of immediate update?

  Write an arm assembly code to implement a loop for factorial

Write an ARM assembly code to implement a loop for calculating factorial of an integer N. For example if the input N from the standard input is equal to 5, it should return 120 (i.e, 5! ); the result (i.e, 120) should be printed on the standard ou..

  Determine the highest bit rate possible for a circuit

1. Determine the number of conditions possible for a binary code

  Identify the make and model of one 1 laser printer and one

identify the specific manufacture and model of one 1 magnetic disk one 1 solid state drive and one 1 optical drive.

  How many healthy class instances were correctly classified?

How many healthy class instances were correctly classified?

  Define a lan-to-wan, internet, and web surfing

Richman Investments requires the enforcement of strict ingress-egress filtering policies for network traffic. Certain traffic is expressly forbidden:

  Definition of composition of relations

Explain, using the definition of composition of relations on a set why the ordered pair (b, d) is or is not an element of the composition of relations R and S (denoted S o R).

  Describe the proper procedures and policies

Draft an executive summary to the DR plan and explain the purpose of the plan and high-level specifics for upper management.

  A computer has a cache with block size 64 bytes the main

A Computer has a cache with block size 64 bytes the main memory has k banks, each bank being c bytes wide consecutive c-byte chunks are mapped on consecutive banks with warp-around all the k banks can be accessed in parallel, but two accesses to the ..

  Difference between cyber crimes and cyber-related crimes.

Summarize the difference between cyber crimes and cyber-related crimes. On cyber crimes, define cyber trespass, cyber privacy and cyber vandalism. On cyber-related crimes explain the difference between cyber-assisted and cyber-enhanced crimes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd