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 attributes/variables.
g. Get two float numbers from the user with the accompanying text.
h. Add these two numbers and print the formatted result (2 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: 3.4
Please enter the second float number: 6.7
The sum of float numbers is: 10.10
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 attributes/variables.
g. Get two float numbers from the user with the accompanying text.
h. Add these two numbers and print the formatted result (2 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: 3.4
Please enter the second float number: 6.7
The sum of float numbers is: 10.10
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 attributes/variables.
g. Get two float numbers from the user with the accompanying text.
h. Add these two numbers and print the formatted result (2 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: 3.4
Please enter the second float number: 6.7
The sum of float numbers is: 10.10
Please enter your name: Kedit Alpaslan Demin
Nice to meet you Kadir Alpaslan Demir
Write the Java program to implement the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!