Get Writing Help
WhatsApp
    ✍ ️Get Free Writing Help
WhatsApp

// 2. Practice debugging this program. It has approximately 22 compiler errors, 1 logic error and…


Write My Assignment FREE

Homework Help Question & Answers

// 2. Practice debugging this program. It has approximately 22 compiler errors, 1 logic error and…

// 2. Practice debugging this program. It has approximately 22 compiler

errors, 1 logic error and

//1 usability error. Identify them all.

import java.util.scanner;

//This program finds the average of three input values.

public class Arithmeticx

{

public static void main( String [] args )

// declare variables

double number1, number2, number3;

// input data

scanner in = newscanner( );

System.out.print( “Number 1? ” );

System.out.print( “Number 2? ” );

System.out.print( “Number 3? ” );

number 1 = in.nextDouble;

number 2 = in.nextDouble;

number 3 = in.nextDouble;

// calculate average

average = num1 + num2 + num3 / 3;

// print results

system.out.print( Number1 + “, ” + Number2 + ” & ” + Number3 );

system.out.println( ” averages to ” + average );

0 0
Add a comment
Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes
Write My Assignment FREE Get A Free Quote →
Limited Offer     Get 25% off your first order — use code STUDYLINK25 at checkout    Claim Now
 
Don`t copy text!