TextIO.getDouble | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

TextIO.getDouble

I am doing an assignment for school and I need to make a code for this question: Hold your arm straight out and measure the circumference of your resting bicep. Flex your bicep and measure the circumference again. Write a program to determine the percentage increase of your bicep circumference resulting from the flex. The formula would be: percentage increase = flex / resting * 100. Display the result. Use TextIO and System.out. Can someone explain how to use TextIO?

24th Sep 2019, 11:56 PM
MayaMack
MayaMack - avatar
1 Answer
+ 1
copy this code to file: TextIO.java http://math.hws.edu/eck/cs124/javanotes8/source/chapter2/textio/TextIO.java where you run your code sources, create folder: textio add the TextIO.java file there in your code add at begin of code import: import textio.TextIO; (-) here are additional install remarks http://math.hws.edu/eck/cs124/javanotes8/c2/s6.html#basics.6.6 //example of usage import textio.TextIO; public class TexIO_test { public static void main(String[] args) { System.out.println("Enter double number:"); double y = TextIO.getDouble(); System.out.println(y); } } here in 2.4.2 is some other examples: http://math.hws.edu/eck/cs124/javanotes8/c2/s4.html#basics.4.2 API sumary http://math.hws.edu/eck/cs124/javanotes8/TextIO_Javadoc/index.html source book http://math.hws.edu/eck/cs124/javanotes8/index.html
25th Sep 2019, 6:49 AM
zemiak