CST 230 Spring 2008 HW #1: Creating myIO Class for Text File Reading and Reversing, Assignments of Data Structures and Algorithms

Instructions for a programming homework assignment in cst 230 spring 2008. The goal is to create a myio class that prompts a user for a text file, reads the strings from the file, and prints them in reverse order. The assignment is worth 2% of the total grade and is due on 8/27/07. Students are expected to use eclipse and java for this assignment.

Typology: Assignments

Pre 2010

Uploaded on 09/02/2009

koofers-user-wtg-1
koofers-user-wtg-1 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Razdan 8/20/07
CST 230 Spring 2008
Homework #1
Weight 2%
Due 8/27/07
Instructions: This is a programming home work.
This is a test programming assignment to make sure you are up to speed in using
Eclipse, basic Java and I/O in Java. Most of the projects will rely on reading from a
file, screen (for user input) and writing to a file or to the screen for output. This
assignment is designed to test just that.
Write a myIO class that prompts a user for a text file. The text file name may be
passed as an argument to your program. The text file may contain one or more
strings per line such as
Course CST230
Hello
Your name
Good bye
The strings on the same line can be separated by space(s) and/or tabs. Your goal is
to reproduce the strings that you read from the file (.75 pts). For added fun you can
print them in reverse such as “olleH” for “Hello” (.75 pt). For super programming
fun you can print them in the reverse order of appearance (.5 pt) such as above
would be printed as
eyb dooG
eman rouY
olleH
032TSC esruoC
If you can do this you already have a head start in the course.
Please deposit your working code by 1/23/08 by class time (9 am) in the
myasucourses/blackboard in the digital drop box.

Partial preview of the text

Download CST 230 Spring 2008 HW #1: Creating myIO Class for Text File Reading and Reversing and more Assignments Data Structures and Algorithms in PDF only on Docsity!

Razdan 8/20/

CST 230 Spring 2008

Homework

Weight 2%

Due 8/27/

Instructions: This is a programming home work.

This is a test programming assignment to make sure you are up to speed in using Eclipse, basic Java and I/O in Java. Most of the projects will rely on reading from a file, screen (for user input) and writing to a file or to the screen for output. This assignment is designed to test just that.

Write a myIO class that prompts a user for a text file. The text file name may be passed as an argument to your program. The text file may contain one or more strings per line such as

Course CST Hello Your name Good bye

The strings on the same line can be separated by space(s) and/or tabs. Your goal is to reproduce the strings that you read from the file (.75 pts). For added fun you can print them in reverse such as “olleH” for “Hello” (.75 pt). For super programming fun you can print them in the reverse order of appearance (.5 pt) such as above would be printed as

eyb dooG eman rouY olleH 032TSC esruoC

If you can do this you already have a head start in the course.

Please deposit your working code by 1/23/08 by class time (9 am) in the myasucourses/blackboard in the digital drop box.