Question: NEEDS TO BE FROM NETBEANS Using JAVA INT ONLY PLEASE AND THANK YOU please provide a clear and easy to follow coding Objectives use Strings

 NEEDS TO BE FROM NETBEANS Using JAVA INT ONLY PLEASE AND

NEEDS TO BE FROM NETBEANS Using JAVA INT ONLY PLEASE AND THANK YOU

please provide a clear and easy to follow coding

Objectives use Strings literals define and use primitive data declare and use of variables and constants create a and use a String variable in output define and use expressions and operator precedence use data conversions with casting accept input from the user using keyboard, and output to the monitor Use an if else block statement . . . Instructions See second page for example output. Don't just output the number, precede it with a message saying what it is. (Focus initially on getting the correct value output, then add the messages if you have time.) Write a program that does the following using the variable names and types as specified below: 1) Declare the following variables a) three variables of type int b) a String constant and assign it your first name only, i.e. Jane 2) Output some words followed by the value of the String constant. 3) Prompt the user to input two positive int values and assign them to your first 2 int variables. 4) Use an if structure to print out the larger of the 2 int variables 5) Divide the first integer by the second integer and output the value 6) Divide the first integer by the second integer and output the value, but use casting to output a double 7) Divide the second integer by the first integer and output the value 8) Divide the second integer by the first integer and output the value and use casting to output a double 9) Assign to the third int variable the result of this formula a) sum the first two integers and then multiply the sum by 120 b) output the third int value

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!