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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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