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

  Design a network topology that has the minimum latency

Design a network topology that has the minimum latency

  Define information-gathering technique

Describe how joint application design (JAD) might be considered a better information-gathering technique than the traditional method of requirements gathering. What are its shortcomings

  Separation-deprivation or privation in childhood

What are the possible long term implications for children who have experienced separation, deprivation or privation in childhood? Refer to research in your answer.

  What is occurring and the possible uses of the information

Is the activity occurring in packets 9-18 abnormal? If so, provide a detailed interpretation of what is occurring, and the possible uses of the information gained. You don't have to tell me IP xx.xx.xx.xx is accessing port x on IP xx.xx.xx.xx. I ..

  Practices that support effective control of risk

Why each organisation should have policies, procedures and practices that support effective control of risk How and why policies and procedural documentation will align with the relevant legislation (taking into considerations industry relevant leg..

  Use the binomial theorem to give the expansion

Use the Binomial Theorem to give the expansion of: (p+q)3

  Does this improve the overall display

Does this improve the overall display?

  Write analogous steps in dimensioning computer network

Write four steps which you think a transportation engineer takes when dimensioning such highway. What are the analogous steps in dimensioning computer network?

  Create a name class of three string objects

Provide methods and operators for reading and writing Persons and for allowing the retrieval and changing of components of a Person (Name and Address)

  Long division of polynomials

Patrick Just Math Tutorials: "Long Division of Polynomials" Consider the rational expressions: (x-1)/(x-1), (x^2 - 1) / (x -1), (x^3 - 1)/ (x-1), and (x^4 -1)/ (x-1). Do you see a pattern when simplifying them through either long or synthetic divisio..

  Find the expected number of jobs in the system at any time

An M/M/1 queuing system spends 30% of the time in the idle state. Find the expected number of jobs in the system at any time.

  Explaining role-computer forensic investigator for law firm

You are the computer forensic investigator for a law firm. The firm acquired a new client, a young woman who was fired from her job for inappropriate files discovered on her computer

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