Syntax and semantic errors with the command

Assignment Help JAVA Programming
Reference no: EM131591849

trying to run a simple program just need to fix the syntax and semantic errors with the command

package totalweight;

/**
*
* @author Andrew
*/
public class Totalweight {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int weightOfLoaf = 16;// ounces per loaf
int numberOfLoaves = 4;


system.out.print ("with a weight of " +weightOfLoaf + "ounces in each loaf")
system.out.printin ("and a total of " + numberOfOLoaves +"loaves, ");
int totalweight = weightOfLoaf + numberOfLoaves;
system.out.printin ("the total weight of all " + numberOfLoaves + " loaves is " + totalweight + "ounces.n")
}

Reference no: EM131591849

Questions Cloud

Discuss the measure phase and the commonly used tools : Read the article that discusses the Measure phase and the commonly used tools and concepts within the Measure phase.
Statement of operations includes : Statement of Operations includes,
Discuss evidence-based organizational strategies : How should you logically respond in this situation. Provide rationales and evidence to support your decisions
Comprehensive analysis of global entry : Perhaps one of the first key decisions a prospective business owner makes is the mode of entry in the chosen country.
Syntax and semantic errors with the command : trying to run a simple program just need to fix the syntax and semantic errors with the command
Two principals sources of financing for corporations : The two principals sources of financing for corporations are
What is the number of units that must be sold to breakeven : what is the number of units that must be sold to breakeven?
What other factors should marvin and his team consider : What other factors should Marvin and his team consider?Should they bid on the job?
How given accounts reported in guillen balance sheet : Guillen, Inc. began work on a $7,000,000 contract in 2014 to construct an office building. Guillen uses the completed-contract method.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Improving problem solving and programming ability

Improving problem solving and programming ability using Java programming language - Improving design ability - implement a system or parts of a system

  Create a dice game that uses a six-sided die

Create a dice game that uses a six-sided die - Using switch statements print the face of the die based on the value obtained.

  Modify the java application using java netbeans ide

Modify the Java application using Java NetBeans IDE to meet these additional and changed business requirements

  Java programming assignment

Java programming assignment - Looking for someone to review my work and help me with the final few lines of unfinished code

  Run both c++ and java versions of your program

In C++, create an Exception class, and a DivideByZero sub-class that takes a string for its constructor, and use this in the try-catch mechanism. In Java, use the division by zero exception object.

  Design a boolean function named isprime,

A prime number is a number that is only evenly divisible by itself and 1. For example, the number 5 is prime because it can only be evenly divided by 1 and 5. The number 6, however, is not prime because it can be divided evenly by 1, 2, 3, and 6. Des..

  Explain we have to make a project in java

We have to make a project in java . This is a small deskstop application no specifications given so far . The CD store has CD games and music we can rent a cd or we can buy . This is all we need to develop.

  Program with backtracking removing all gotos

Please fix the below program with backtracking removing all gotos  and also run the program before posting it and please comment before each line or explain such as what this line means or does .

  Display at least the waiting at each floor

From the 1st floor, the elevator can only go in one direction - up. And from the 12th floor the elevator can only go in one direction - down.

  Write program that prompts the user to enter the first digit

Write a program that prompts the user to enter the first 9 digits and displays the 10 digit ISBN( including leading zeros) . Your probram should read the input

  Create a class called numberset

You need to create a class called NumberSet.  It needs an empty default constructor and an overloaded constructor that takes an integer argument and creates a vector with that many random numbers in it.  So... if I created

  Find additional amount of sale that each salesperson achieve

It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared.

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