Question: You will write a java program code from scratch that accomplishes the following: 1. You should declare two int variables and assign explicit values to

You will write a java program code from scratch that accomplishes the following:

1. You should declare two int variables and assign explicit values to them.

2. You should declare two double variables and assign explicit values to them

3. You should print out the following output:

Print your name on one line ( Kabba Bangura)

Print the two integers on the next line separated by one space,

using the variables from step 1 above Print the two doubles on the next line separated by one space,

using the variables from step 2 above Print the value of the sum of the two int variables on the next line

Print the value of the sum of the two double variables on the next line

Print the value of the first integer multiplied by the first double on the next line

Print the value of the second integer multiplied by the second double on the next line

You should name the class Lab02Calculator

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 Databases Questions!