[an error occurred while processing this directive]

Individual Work 6 - Practice: Arrays and Simple I/O

[an error occurred while processing this directive]

Description

In this assignment you will not be using Processing. Instead, you will be practicing using arrays and simple input and output statements. As opposed to previous assignments where you were given test cases to run your code against, here you will type in your own input and see the output. In a few cases, sample input has been provided for your use.

Directions

Read all directions before beginning your work.

  1. Start by importing IW6Arrays.zip into Eclipse.
  2. You will notice a single file IW6Arrays.java. All of your work will occur in this file.
  3. Each question is described in the file. and split into two parts (part a and part b). You should try to solve each part in order since they are related.
  4. Once you think you have a solution to one of the problems, run the program and interact with the program in the Console window.
  5. On problems #1 and #4, input files have been provided for you to test your code. p1.txt and p11.txt are samples for problem #1. p4.txt, p44.txt, and p444.txt are samples for problem #4. Each file starts with a number to indicate how many lines follow. Each subsequent line contains a single integer. The getNums method reads all but the first line into an array of integers for processing.

Resources

The resources below are the only resources you should use in completing this assignment. In particular, do not use the CSC 130 tutors and do not search any electronic resources such as the Web for sample code. You may visit the tutors for general guidance, but they have been instructed not to help with the specific assignment questions.

Grading

Recall that individual work assignments are worth 50 points each. Refer to the syllabus for more course grading information. Points are broken down as follows.

Each student receives 2 points for following submission instructions.

Submission

Submit by taking two actions: upload an exported java project as a zip file and submit a printout. Details are below.

  1. Ensure that your name appears as a comment at the top of the IW6Arrays.java code file.
  2. Export your project using the export directions and submit the zip file to Moodle.
  3. Make a printout of the IW6Arrays.java code file. Use duplex if possible so you submit fewer pieces of paper. Ensure that each method prints entirely on one side of a page - avoid splitting method code across pages. If you have multiple sheets, staple them. Print the file before class starts, not during class.
[an error occurred while processing this directive]