Question: Create a class named Half, that efines a double variable you name using camelCase style (see pg 57 of text), Initialize it to 10.Then display

 Create a class named Half, that efines a double variable you

Create a class named Half, that efines a double variable you name using camelCase style (see pg 57 of text), Initialize it to 10.Then display that number divided by 2. Then take the answer of that division and display the answer when divided by 3. Display any fractional amounts. Next, add 3 to this variable(do NOT declare a new variable) Display this new answer Next declare an integer variable using camelCase style. Initialize it to 20. Then divide it by 2, display the answer, then divide the new value by 3, display the answer. (do NOT declare a new variable) (What happens to the fractional amount? explain this in a comment).. Next declare a String variable using camelCase style. Initialize it to your first name. Display the value of this variable out. Next declare a boolean variable using camelCase style. Initialize it to true Then change the value to false Display it out Required: The code should use escape sequences to format the output (pages 62,63 in text) One more specification: I want you to place a comment before every single line, explaining what is going on! And as always, add comments to the beginning of your codel Also, line up your code correctly

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!