|
After the above commands have been executed, what happens to the file called output.txt in the subdirectory C:\Myfiles ? A good answer might be:Nothing. A file named output.txt in the current subdirectory will be replaced with a new file, but not a file in any other subdirectory. | |
Discount ProgramHere is a (slightly) more realistic program that computes the discounted price, given the list price and the percentage discount:
Here is an example of the normal operation of this program: C:\users\default\JavaLessons>java Discount Enter list price in cents: 100 Enter discount in percent: 10 Discount Price: 90 C:\users\default\JavaLessons> | |
QUESTION 10:Can the output of this program be redirected to a file? Click Here after you have answered the question |