Computer Science

Course Description

The computer science class here at MAMS is very interesting and insightful. In this class, the teacher would explain a broad concept in Java, usually a class of the language, and the student would then solve coding problems as assignments. Since the class would only give the fundamentals of the notion, the student must independently familiarize themselves with the material through online research and critical thinking skills to piece together the codes for a working program that completes the task stated in the assignment. These activities will increase the students’ fluency in Java as they learn to code programs by themselves or by collaborating with others.

Sample Programs

Line Art Lab

In this CS assignment, one is tasked with creating an intricate pattern shown in the picture below. The curves are merely an illusion formed by straight lines of varying slope values that intersect each other in such a small interval that makes their formation looks like a curve. For this programming problem, Java loops will be extremely helpful in generating the multitude of lines to form the curve.

Output:

Line art picture

ArrayLists Exercises

This CS assignment is to familiarize the students with dynamic arrays by using the Java class ArrayLists. There are numerous exercises in this assignment that would test the students’ reasoning for programming and enhance their skill for finding useful methods in the database for ArrayLists. These exercises all involve manipulating one or even many ArrayLists to reach a desired output. As one codes, the programs will get harder and more challenging throughout the assignment.