Completed

Java assignment

This project was successfully completed by kawsar92 for $2 USD / hour in 5 days.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$2 - $8 USD / hour
Completed In
5 days
Total Bids
54
Project Description

Need two quick java assignment completed. Here are instructions:

1. Consider the following program segment:

//import classes

public class Exercise2

{

public static void main(String[] args)

{

//variable declaration

//executable statements

}

}

a. Write Java statements that declare the following variables: num1, num2,

and num3, and average of type int.

b. Write Java statements that store 125 into num1, 28 into num2, and -25

into num3.

c. Write a Java statement that stores the average of num1, num2, and num3

into average.

d. Write Java statements that output the values of num1, num2, num3, and

average.

e. Compile and run your program.

2. Write a program that prompts the user to input a decimal number and

outputs the number rounded to the nearest integer.

SUBMIT DATE

LAST UPDATED

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online