Assignment 3-A

Methods and Arrays Practice

Build programs using methods, arrays, and string manipulation techniques. Learn to write modular, reusable code with proper method design and array operations.

4-5 hours
Intermediate
100 Points
Submit Assignment
What You'll Practice
  • Define and call methods correctly
  • Work with single and multi-dimensional arrays
  • Manipulate strings effectively
  • Apply method overloading
  • Use Arrays class utilities
Contents
01

Assignment Overview

This assignment challenges you to create modular, well-structured programs using methods and arrays. You'll practice decomposing problems into smaller, reusable methods and work with various array operations.

Skills Applied: Methods (3.1), Arrays (3.2), and Strings (3.3) from Module 3.
Methods

Parameters, return types, overloading, static vs instance

Arrays

Single/multi-dimensional, indexing, iteration

Strings

String methods, StringBuilder, manipulation

02

Requirements

Part 1: Array Utilities (30 points)

  • Create a utility class with static methods for array operations
  • Implement: findMax, findMin, calculateAverage, reverseArray
  • Use method overloading for different array types (int[], double[])
  • Include a method to search for an element in array

Part 2: Matrix Operations (30 points)

  • Create methods for 2D array (matrix) operations
  • Implement: matrix addition, matrix multiplication
  • Transpose a matrix
  • Print matrix in formatted table layout

Part 3: String Analyzer (25 points)

  • Count vowels, consonants, digits, and special characters
  • Check if a string is a palindrome
  • Reverse words in a sentence
  • Find and replace substrings

Part 4: Student Grade Manager (15 points)

  • Store student names and grades in parallel arrays
  • Sort students by grade using your own sorting method
  • Find class average and students above/below average
03

Submission Guidelines

Folder Structure: Submit all files in a folder named assignment3_yourname
Required Files:
  1. ArrayUtils.java
  2. MatrixOperations.java
  3. StringAnalyzer.java
  4. GradeManager.java
  5. Main.java - Demo program calling all methods
  6. README.txt
Ready to submit? Ensure all methods are properly documented!
Submit Now
04

Grading Rubric

Criteria Points Description
Array Utilities 30 Correct implementation with method overloading
Matrix Operations 30 Proper 2D array handling and operations
String Analyzer 25 All string operations working correctly
Grade Manager 15 Sorting and statistics calculations
Total 100