Answered step by step
Verified Expert Solution
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
- 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 and double respectively, and then initialize them.
- Print the values of the two variables using two println() statements.
- Show one use of the if statement.
- 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
- classes, telling what they do
- variables, telling their meanings
- methods, showing their purposes
- algorithms, describing their goals and key steps
- a piece of code, showing its purpose and key steps
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started