Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Java class with name: Assignment1 Create the main() method in this class In the main() method do Declare two variables of types int

  1. Create a Java class with name: Assignment1
  2. Create the main() method in this class
  3. In the main() method do
    1. Declare two variables of types int and double respectively, and then initialize them.
    2. Print the values of the two variables using two println() statements.
    3. Show one use of the if statement.
    4. Use one for-loop statement to output the following rectangle of stars.

**********

**********

**********

At the beginning of your program, provide the following information

Assignment number:

Programmer name:

Due date:

Program file name: Welcome.java (for say)

Comments: should describe what your programs want to do. There are usually five types of comments on

  1. classes, telling what they do
  2. variables, telling their meanings
  3. methods, showing their purposes
  4. algorithms, describing their goals and key steps
  5. a piece of code, showing its purpose and key steps

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

What does this public want on this issue?

Answered: 1 week ago

Question

How do books become world of wonder?

Answered: 1 week ago

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago