Question: Write the Java program to implement the following functionality. a . Create a Java Project with the name MyJavaProject. b . Create a package with
Write the Java program to implement the following functionality.
a Create a Java Project with the name "MyJavaProject".
b Create a package with the name "myjavapackage".
c Create a class with the name "FirstJavaProgram" that includes a "main" method.
d In your program, import "Scanner" package as shown in the lecture notes.
e Create a scanner object.
f Do not forget to initialize your class attributesvariables
g Get two float numbers from the user with the accompanying text.
h Add these two numbers and print the formatted result digits after the dot on the console.
i Print the text to input your name from the console.
j Write code to input your name on the console.
k Here is a sample output:
Please enter the first float number:
Please enter the second float number:
The sum of float numbers is:
Please enter your name: Kedit Alpaslan Demin
Nice to meet you Kadir Alpaslan DemirWrite the Java program to implement the following functionality.
a Create a Java Project with the name "MyJavaProject".
b Create a package with the name "myjavapackage".
c Create a class with the name "FirstJavaProgram" that includes a "main" method.
d In your program, import "Scanner" package as shown in the lecture notes.
e Create a scanner object.
f Do not forget to initialize your class attributesvariables
g Get two float numbers from the user with the accompanying text.
h Add these two numbers and print the formatted result digits after the dot on the console.
i Print the text to input your name from the console.
j Write code to input your name on the console.
k Here is a sample output:
Please enter the first float number:
Please enter the second float number:
The sum of float numbers is:
Please enter your name: Kedit Alpaslan Demin
Nice to meet you Kadir Alpaslan DemirWrite the Java program to implement the following functionality.
a Create a Java Project with the name "MyJavaProject".
b Create a package with the name "myjavapackage".
c Create a class with the name "FirstJavaProgram" that includes a "main" method.
d In your program, import "Scanner" package as shown in the lecture notes.
e Create a scanner object.
f Do not forget to initialize your class attributesvariables
g Get two float numbers from the user with the accompanying text.
h Add these two numbers and print the formatted result digits after the dot on the console.
i Print the text to input your name from the console.
j Write code to input your name on the console.
k Here is a sample output:
Please enter the first float number:
Please enter the second float number:
The sum of float numbers is:
Please enter your name: Kedit Alpaslan Demin
Nice to meet you Kadir Alpaslan Demir
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
