COMP 2150 Fall 2016
Homework 5: File Input and Big-O
(40 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/cur
COMP 2150 Fall 2016
Homework 4: Polymorphism
(25 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/current_stu
COMP 2150 Fall 2012
Programming Assignment 1: Othello
(Posted Sept. 16 - Due Oct. 16 by 11:59 pm)
Background Information
Othello (also known as Reversi) is a two-player game played on an 8x8 board sim
COMP 2150 Fall 2012
Lab 9: Queues
(Posted Nov. 25 Due Dec. 2 by 11:59 pm)
As we discussed in class, a queue is a data structure that supports these basic operations:
isEmpty returns whether the queue
COMP 2150 Fall 2017
Project 2: Too Much to Watch
(75 points)
Number of People: Up to 2. If you work with someone else, include both your name and your teammates name on
all source code files. Only one
COMP 2150 Fall 2017
Homework 5: File Input
(25 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/current_stude
COMP 2150 Fall 2017
Homework 4: Polymorphism
(25 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/current_stu
COMP 2150 Fall 2017
Homework 2: Classes and Objects
(25 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/curr
COMP 2150 Fall 2017
Homework 3: Inheritance
(25 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/current_stud
COMP 2150 Fall 2017
Homework 1: String Manipulation
(25 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/curr
COMP 2150 Fall 2017
Project 1: Othello
(75 points)
Number of People: Up to 2. If you work with someone else, include both your name and your teammates name on
all source code files. Only one person ne
Linked Lists
The linked list
Both arrays and array lists involve an inflexible
structure
The array list makes the resizing operation of its data
array transparent, but it still needs to happen every n
COMP 2150 Fall 2016
Homework 8: Recursion
(35 points)
Number of People: Up to 2. If you work with someone else, include both your name and your teammates name on
all source code files. Only one person
COMP 2150 Fall 2012
Lab 8: Stacks
(Posted Nov. 13 Due Nov. 20 by 11:59 pm)
This lab will give you a concrete idea of why we made some of the decisions we did in the linked list and array
implementatio
COMP 1900 Review Problem*
Suppose a hiking trail has elevation information
posted on markers at regular intervals on the trail.
This elevation information can be stored in an array,
where each elemen
Linked Lists
The linked list
Both arrays and array lists involve an inflexible
structure
The array list makes the resizing operation of its data array
transparent, but it still needs to happen every n
COMP 2150 Fall 2012
Lab 1: String Manipulation
(Posted Sept. 4 Due Sept. 11 by 5:30 pm)
Remember that as stated on the syllabus, this assignment should be an individual effort (contact me or visit the
Inheritance, Part Deux
Parameters and inheritance
Because of the is-a relationship, an instance of a
subclass can be used in situations where the
superclass is specified.
Example: Suppose you have the
COMP 2150 Fall 2012
Lab 6: Array Lists
(Posted Oct. 19 Due Oct. 30 by 11:59 pm)
Add the following methods to the ArrayListGeneric<E> class that we wrote during lecture (code posted on Oct. 23).
You ma
COMP 2150 Fall 2012
Lab 2: Classes and Objects
(Posted Sept. 12 Due Sept. 20 by 5:30 pm)
Remember that as stated on the syllabus, this assignment should be an individual effort (contact me or visit th
COMP 2150 Fall 2012
Lab 3: Inheritance
(Posted Sept. 18 Due Sept. 26 by 5:30 pm)
Suppose youre designing a video game where the objective is to travel around the world collecting cute cartoonish
creat
COMP 2150 Fall 2012
Programming Assignment 2: Fantastic Fun with Netflix Filters
(Posted Oct. 21 - Due Nov. 14 by 11:59 pm)
Background Information
In case youve been living under a rock, Netflix (www.
Some Applications of Stacks
Evaluating arithmetic expressions
We usually write arithmetic expressions using infix
notation
The operator (+ - * /) is written in between the operands
Order of operations
COMP 2150 Fall 2012
Programming Assignment 3: Evaluating Infix Expressions
(Posted Nov. 10 Due Nov. 27 by 11:59 pm)
Background Information
As discussed in class, you can evaluate an infix expression b
COMP 2150 Fall 2012
Lab 5: Big-O
(Posted Oct. 15 Due Oct. 22 by 5:30 pm)
This lab is optional, but your score on it can be used to replace your lowest lab grade. (In other words, if
you do this lab, y
Software Engineering Basics
Software engineering
l
l
Sit down and code approach works for small
projects, but not larger ones
Software engineering the field devoted to
the specification, design, produ
COMP 2150 Fall 2016
Programming Assignment 2: Fantastic Fun with Netflix Filters
(75 points)
Number of People: Up to 2. If you work with someone else, include both your name and your teammates name on
Some Applications of Stacks
Evaluating arithmetic expressions
We usually write arithmetic expressions using infix
notation
The operator (+ - * /) is written in between the operands
Order of operations
COMP 2150 Fall 2016
Homework 7: Stacks and Queues
(35 points)
Number of People: Individual. Feel free to ask me for help, or visit the Computer Science Learning Center
(http:/www.memphis.edu/cs/curren
/*
* The GameBoard class maintains the internal state of the game.
* in this class we set the number of tiles the board will have and
* how the game is played.
*
* @author (Mamadou Ba)
* @version (27/
Section 1-1
Review and Preview
Preview
Polls, studies, surveys and other data collecting
tools collect data from a small part of a larger
group so that we can learn something about the
larger group. T
import java.util.*;
public class RailFenceCipher
cfw_
public static void encryptRailFence(String plaintext, int numRails)cfw_
plaintext = plaintext.toUpperCase();
String array[] = new String[plaintext