Answer:

Yes. But beware of destroying files you need!

A Run of the Modified Program

Here is a sample run of the modified program:

C:\users\default\JavaLessons>java Discount > discount.out

100
50

C:\users\default\JavaLessons>type discount.out
Enter list price in cents:
List price:100
Enter discount in percent:
Discount:50
Discount Price: 50

C:\users\default\JavaLessons>

QUESTION 13:

What happened to the previous version of the file discount.out in the current subdirectory?