my name is Java Wolf and I love IT and programming.
I am a scholar and am in my first year of IT.
I have a test on Wednesday and i have no idea how to go about it.
I need to be able to:
1.) Be able to write a program that asks a person to enter their data for the area of a standard(4m squared) tile and by how much longer the person wants it(this being 1 m). The program must find the sqrt of 4 (which is 2) and then adds 1 meter to that. it must be rounded to the nearest integer. It must then be shown in a JOptionPane and must use the /n and /t to space it out nicely.
^ I have absolutely no idea how to do the above.
2.) I have to write a program that outputs only the middle letter of a word. It needs to use length() and the "div" and charAt method.
Can anyone help. I'm so scared that I am going to fail. And I love IT so i don't want that to happen. I just don't understand, is all.