How do u set up a program where you have to find the length and width of a pool with talking to a customer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do u set up a program where you have to find the length and width of a pool with talking to a customer

Java intro to program 3

8th Nov 2016, 2:47 PM
Oppp O
Oppp O - avatar
2 Answers
0
Could you please be more specific? I'd personally use scanners and some println statements because I don't really know a lot about User Interface, but you could program an interface with some input boxes to get the values. You'd also need (of course) some message dialogs to tell the user what to do. :-)
31st Dec 2016, 12:33 PM
Tomáz
Tomáz - avatar
0
Another thing, I'd use double type variables, because they allow for a more procise mesurement
31st Dec 2016, 12:34 PM
Tomáz
Tomáz - avatar