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

  Software development life cycle

Literature Review - 3-4 pages Take the paper to next level. Identify about 15 scholarly articles using VIU library resources as related to your topic, extract information as needed and blend the content into your paper with suitable sections

  Gui library to convert celsius to fahrenheit

Write a program in Java using Swing GUI library to convert Celsius to Fahrenheit. If the input is in Celsius, the program can output equivalent Fahrenheit. Both the input and output should use Swing GUI program. Both the input and output should use S..

  Discuss the data characteristics presented.

When reviewing posts made by other students, discuss the data characteristics presented. Do you agree? Could there be more than one data characteristic involved?

  Language processing can be classified

List the criteria on the basis of which data structures used in language processing can be classified.

  Explaining dui and charges of domestic violence

You will be handling sensitive information and may end up in court as a technical or expert witness. How can things such as a DUI, charges of domestic violence and other items affect your career?

  The rules or guidelines for people to follow

Which part of an information system consists of the rules or guidelines for people to follow?

  Detailed description of learning activity

Detailed Description of Learning Activity

  Npv analysis without a cost of capital

Do you think the same kind of analysis can or should be done in small companies, non-profits or schools? Given that they don't have publicly traded stocks or bonds how would you go about doing NPV analysis without a cost of capital?

  Are the activities appropriate for the brand

Overview of the social media presence of the company. What platforms do they use? How actively - Evaluation of the social media activities and Are the activities appropriate for the brand?

  Can you make the code faster

Can you make the code faster?

  Security management in global environment

This is the third section of your Research Project paper. The major research question or hypothesis is derived from the problem statement. The research question or hypothesis is almost always broken down into applicable and manageable sub-questions o..

  Privacy on a desktop application

How does data privacy on a mobile device differ from privacy on a desktop application?

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