CPTR152 Computer Science II MWR 11:30-12:20 3cr
Course Description:
A continuation of CPTR151 examines program specifications,
design, coding, correctness, and style with additional coverage
of pointers and arrays, and an in-depth study of recursion and
data structures. Includes files, lists, stacks, queues, trees,
graphs, and an overview of computer ethics. Prerequisite: CPTR151. Spring
Textbooks
1) Introduction to JAVA programming; &.Daniel Liang. Pearson-Prentice Hall Pub.
Course Objectives
Mission statement & Program Objectives:
We aspire to be a place of choice for engineering and computer science education where dedicated students and faculty grow together to reach their god-given potential for service to society and the church. We embrace a thoughtful respect for diversity of viewpoints; a caring stewardship for our God-given home, a marked excellence in our chosen vocations and a profound faith in the leadership of God in our lives. We commit ourselves to the creation of a nurturing environment where all students wiling to work diligently will succeed.
The Andrews University Computing Program prepares its graduates to be:
1) Globally, environmentally, and socially responsible computing professionals and scholars who are professionally equipped to solve diverse problems and change the world
2) Computing professionals and scholars who are an integral part of the intellectual conversation of the Seventh-day Adventist Church and who actively contribute to its world-wide mission.
Student Outcomes expected level of attainment:
e. Understand Professional Issues and Responsibilities - articles
g. Analyze the Local and Global Impact - article
i. Use Modern Technology - compilers
k. Apply Design and Development Principles - Home Work & Exams
Every FRIDAY article summary
Email to : aucs.wolfer@gmail.com
- 11:30 am, every Friday - NO LATE Submissions accepted
EMAIL ALL HOMEWORK To :
aucs.wolfer@gmail.com
Home Work
- Assignment 1 - Due 1/17/2012 11:30am
Complete the takehome quiz in both JAVA and C++
- Assignment 2 - Due 1/20/2012 11:30am
Write a program in JAVA that will populate an arry with 50 with random numbers
Call a method to sort the numbers. Call a second method to search for a number
entered from the key-board (use binary search). Display from the main if the number was found
- Assignment 3 - Due 1/27/2012 11:30am
Type in the handout, compile it and get it working correctly
-
Write a Circle class that has the following fields:
radius: a double
PI: a final double initialized with the value 3.14159
The class should have the following methods:
Constructor. Accepts the radius of the circle as an argument
setRadius. A mutator method for the radius field
getRadius. An accessor method for the radius field.
getArea. Return the area of the circle, whis is calculated as
area=PI * radius * radius
getDiameter. Returns the diameter of het circle, which is calculated as:
diameter = radius * 2
getCircumference. Returns the circumference of he circle, whis is calculated as
circumference = 2 * PI * radius
Write a program that demonstrates the Circle class by asking the user fothe circle’s radius, creating a Circle object, and then reporting the circl’s area, diameter, and circumference.
-
Due 2/13/2012 11:30am
Write a program ,MyLinkedList.java, that will accept names from the keyboard. Call a object class, LinkedList.java, and populate a linked list. The LinkedList class should determine if the Linked List is empty, the size, and if the name is to be added at the beginning, end, or middle of the linked list.
Use your hand outs as a guide.
Type in your handouts for arrystacks.java and linkedliststacks.java. compile them, learn them, and most certainly CLEAN-UP the code. Due 2/22/12 11:30am
-
Tyep in you handouts for ArrayQueue.java and LinkedListQueue.java. (and calling program(class). Compile them, lean them. and most certainly CLEAN-UP the code. Due 2/24/12 11:30am
EXTRA CREDIT - get the GUI application working for illustrating a queue.