From: <whe...@us...> - 2003-07-24 18:51:57
|
Update of /cvsroot/ordweb/uop/pos407/wayneh/week5 In directory sc8-pr-cvs1:/tmp/cvs-serv3596/pos407/wayneh/week5 Added Files: week5 problems.txt Log Message: init --- NEW FILE: week5 problems.txt --- Chapter 16, exercise 6a and b, due August 4th. File Input and Output chapter. 6. a. Write a program for a mail-order company. The program uses a data-entry screen in which the user types an item number and a quantity. The valid item numbers and prices are as follows: Item number Price ($) 101 4.59 103 29.95 107 36.50 125 49.99 When the user enters an item number, check the number to make sure that it is valid. If it is valid, write a record that includes item number, quantity, price each, and total price. Save the program as MailOrderWrite2.java. b. Write a program that reads the data file created by the MailOrderWrite2 program and displays one record at a time on the screen. Save the program as MailOrderRead2.java. |