- Create one ".java" file with two methods, output
()
and input()
- You may use a simple
for
loop to get the 100 random numbers and write them to the output file- Use the output file Exercise17_02.data created in Exercise 17.2 as the input file in Exercise 17.3 (not Exercise17_03.data as specified in the textbook)
- Output the sum of the numbers read from the input file to either the terminal window or a
showMessageDialog()
- Create one ".java" file with two methods, output
()
and input()
- The "Loan" class is to be copied directly from Chapter 10 with the only change to convert it to
Serializable
- Get input either from the keyboard or from a
showInputDialog()
method- Use the output file Exercise17_06.data created in Exercise 17.6 as the input file in Exercise 17.7 (not Exercise17_07.data as specified in the textbook)
- Instead of outputting just the "total loan amount" for each Loan object as specified in the textbook, add a toString
()
method to the Loan class that returns the annual interest rate, number of years, loan amount, monthly payment, loan date and total loan amount all formatted with appropriate labeling; display the return value of this toString()
method to either the terminal window or ashowMessageDialog()
(do not add atoString()
method but only show the "total loan amount" for a ½ point reduction or maximum credit of 8½ points )
- Write a JavaFX application that stores, retrieves, adds, and updates books as shown in the figure below. The <Add> button adds a new record to the file, while the <First>, <Previous>, <Next> and <Last> buttons retrieve and display records from the file. The <Update> button updates the currently displayed record
- Use random-access file for reading and writing a book's properties
- Use a fixed-length string for storing each book's title and author (assume the size of the title is 35 characters and the size of the author is 20 characters); the pages attribute is an
int
- Do not write your own FixedLengthStringIO class to complete this assignment but rather use the one demonstrated in class; the previous link is to on-line documentation created by the instructor which demonstrates the syntax and usage of the
readFixedLengthString
andwriteFixedLengthString
methods- (Eliminate the <Update> button and its processing for a ½ point reduction or maximum credit of 9½ points )
- Including a substantive comment statement that describes the class's or interface's purpose, as well as substituting your name for the existing @author comment and the assignment due date for the @version comment that already exist at the top of each new class
- Entering a substantive comment before each method (including the constructor) to describe its function along with @parameter and @return tags
()
and input()
()
and input()
as well as the
updated Loan.java file
... submitted electronically via attachments to a Blackboard dropbox is due to Prof. Struck by 11:59 p.m. on the date specified in the course outline.