This preview shows pages 1–2. Sign up to view the full content.
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
- Spring '11
- Computer Science