Homework 6, The last one.
Short Description:
Write a program that demonstrates you ability to use for loops and write to files.
Goals
When you finish this homework, you should have:
- Used a for loop in java
- Written output to a file.
Formal Description
Begin by asking the user for the name of a file to write to. After this ask the user for a starting number, and ending number and a skip factor. Count from the starting number to the ending number by the skip factor, writing these values to the file. You must use a for loop to do the counting.
You may assume
- All numbers are positive integers.
- The start number is smaller than the end number.
Required Files
A single java source code file.
Submission
Submit the assignment to the D2L folder Homework 6 by the due date.