This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 10. JOptionPane.ShowMessageDialog(null, prog_out) 11. JOptionPane.ShowMessageDialog(null, "current Temperature: 70" "Temperature", JOptionPane.QUESTION_MESSAGE); 12.a) b) c) d) 13. x = console.nextInt(); Ch = console.nextInt().charAt (0); y = console.nextInt(); 14. 15. a) same as before b) the file contains the output produced by the program c) the file contains the output produced by the program. Old contents are erased d) the program would prepare the file and store the output in the file Chapter Three Programming Exercises 1 a) Scanner infile = new Scanner( new FileReader)) import java.util.*; import java.io.*;...
View Full Document
This note was uploaded on 06/17/2011 for the course COMPUTER S 2301 taught by Professor Staff during the Spring '11 term at Kennesaw.
- Spring '11
- Computer Science