Overview
This lab gives you practice with the following java functionalities:
- Use javax.Swing components for interaction with the user
- Use if, if-else, and switch statements for conditional execution
- Use DecimalFormat and printf for formatting output
LEGEND: Keyboard Screen
Task 1: ArabicToRoman 2.0
- Update your ArabicToRoman program from lab 3.0 to use the switch statement rather than if-then-else.
Task 2: Internet Service Provider
Read and implement task 13 on page 177 of the text.
- Fixed values (e.g., $9.95, $13.95, $19.95) should be stored internally as constants (i.e., using the Java keyword final)
- Use DecimalFormat or printf to properly format the output values (see section 3.10-3.11 in the text).
- Use JOptionPane for user input; echo input to the console.
- Use System.out to display a nicely-formatted bill including all relevant information. Points will be assigned both for completeness of information and for formatting.
