CS

 

This assignment provides you an opportunity to practice

  • writing a program which uses the Serializable Interface.
  • developing a program which will use the read only mode in Java Binary I/O.
  • developing a program which will use the read write (rw) mode in Java Binary I/O. 

Directions

Please solve three (3) programming problems related to the content presented in Chapter 17 in your text. You can find the programming problems in the attached file (Module 8 Programming Problems Worksheet.docx (Links to an external site.)).

  • Download the worksheet and save it as Mod8-Worksheet-Programming-Last-First.docx. For example, Mod8-Worksheet-Programming-Smith-John.docx.
  • Consider the problem, design an algorithm (or algorithms) that would solve the problem, and then implement the algorithm in Java.
  • Create a new folder and name it as Mod8-Java-Programming-Last-First, for example, Mod8-Java-Programming-Smith-John.
  • Write the source code for each problem and save them as .java files in the folder you created. There are three programming problems for this module so you should have three .java files. Name your java files as Mod8Problem#.java, for example, Mod8Problem1.java.
  • Copy data file(s) used for your program and/or output file into the folder. In this module, make sure to include Pledge.txt and Stu.dat in this folder.
  • Please insert the algorithm written in pseudocode as a comment in the beginning of your program.
  • Take screenshots of your running program – you can take screenshots using PrintScreen or any tool that you are familiar with, making sure that the console window in which you run the program appears on the screen.
  • Copy the screenshots in the worksheet. If your program has different outcomes, take screenshots of each variation.

Submission

  • Compress the folder that saves all of your java files as .zip file. Please note don’t save the worksheet in the same folder as they need to be submitted seperately.
  • Submit the following two files as attachments by clicking the Submit Assignment button above.
    • Mod8-Java-Programming-Last-First.zip (including .java files, data files, Pledge.txt and Stu.dat).
    • Mod8-Worksheet-Programming-Last-First.docx.
Tags: No tags