Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Im using eclipse for this basic java project. I need help, my teacher gave us this without any notes or instructions. He told us to

Im using eclipse for this basic java project. I need help, my teacher gave us this without any notes or instructions. He told us to create these.

1. System.out.print

2.System.out.println

3.Outputting a string literal

4.Using "\t" and " "

5.Using + to concatenate two things inside a print

6.Creating an int, double, boolean and char primitive variables

7.Storing values into the previous variables

8.Creating a String object

9.Storing a string into the String object

10.Print all of the previously created variables and the String object and separated by tabs

11.Show how to make a variable a constant

12.Create a Scanner object

13.Use the Scanner object to read from the keyboard an int, double and String and store the values into the previously declared variables

14.Print the variables again, and separated by tabs

15.Use three of the Math class methods

17.Create a use a Random object to print a random number between 10 and 20 inclusively

18.Show an example of data type conversion without explicit casting

19.Show an example of data type conversion with casting

20.Show the use of an if statement

21.Show the use of an if-else statement

22.Use a For loop to print the numbers from 1 to 20 inclusively and all on the same line

23.Use a While loop to print the even numbers from 1 to 61 and all on the same line

24.Use a Do-While loop to prompt the user to enter an odd positive number

25.Create an int array that can hold 100 values. Fill it will random numbers between 0 and 300

26.Find and print the smallest number in the int array.

27.Find and print the average of the numbers in the int array.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions