Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a java statement to do each of the following: 1. Declare a variable named result of type integer. 2. Declare a variable named GPA
Write a java statement to do each of the following:
1. Declare a variable named result of type integer. 2. Declare a variable named GPA of type double, and assign a value of 3.5 to it. (do it in single statement) 3. Declare a variable named GPA of type double, and assign a value of 3.5 to it. (do it in double statement) 4. Define a constant named AVERAGE of type double of value 4.2. 5. Assign a value of 5.6 to a variable named radius. 6. Request the user to inter a value for variable x. 7. print ("Corona Go! :)" on screen. 8. Increment a variable y by 6. 9. Decrement variable x by 1 . 10. Multiply variable z by 2 and save the value in the same variable
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