If you did not do Assignment 3, then create a NetBeans project that will contain all of your homework projects for the rest of the course: Project for Assignments.
Create a package for chapter 6 and create three different main classes in it; one for each part of the assignment.
Import each of your main classes into the Menu
class. This is
the class that is in the username
package of your assignment
project.
Modify the menu in the main method of the Menu
class
(or create it if you did not do Assignment 3).
JOptionPane
dialog.
Batting.main(args);
JOptionPane
to show the menu
again and read a new selection from the user.
System.exit(0)
.
throws
java.io.FileNotFoundException
to its signature.
public static void main(String[] args) throws java.io.FileNotFoundException {
...
}
For the main method in the Letters
main class, do the following.
JOptionPane
dialog to read a word from the user.
JOptionPane
dialog to display the original string and
the string that contains its letters, separated by a space.
For the main method in the Calculations
main class, do the
following.
Scanner
to read doubles from a file named "input.txt".
Properties
Run
For the main method in the SquareRoot
main class, do
the following.
Scanner
, read a double that is greater than 10 from
the user.
throws
java.io.FileNotFoundException
to its signature.
public static void main(String[] args) throws java.io.FileNotFoundException {
...
}
To hand in the assignment, upload the JAR file online: Submitting homework on-line via the Web.