Forums Register Login

new to java languange but my little sister ask me to do her homework

+Pie Number of slices to send: Send
Give the java codes to perform the indicated tasks

1. Declare variables x and y to be of type float
2. Assign the value 10 to variable A.
3. Increase the value of variable X by 2.
4. Double the value assigned to variable X
5. Assign the sum of A and B to variable sum.

Thank you and more power to you guys!!!
+Pie Number of slices to send: Send
 

nico gecale wrote:Give the java codes


Sorry, but you have come to the wrong place to get other people to do homework for you (or your sister).

If, however, you want help with your homework, then this is the right place. Please post your code and explain what problems you are having with it.
I knew that guy would be trouble! Thanks tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 341 times.
Similar Threads
Need Help get output
Operators In Java Step by Step Guide
Learn Prolog
Please Help
Apply function names as parameters in other functions
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:10:56.