CSE Spring 2015 Homework #1 Assigned January 22 nd, 2015, 2:00 pm Due: February 5 th, 2015, 2:00 pm
|
|
- Lydia Fox
- 6 years ago
- Views:
Transcription
1 CSE Spring 2015 Homework #1 Assigned January 22 nd, 2015, 2:00 pm Due: February 5 th, 2015, 2:00 pm This file is a homework assignment for a college course that includes individual work. If this file should submitted to a newsgroup or answer page, please contact me at becker@uta.edu. Thank you. Introduction For this assignment, you will be creating a small text program in order to begin your education in Object-Oriented Programming and Java. Object-oriented programming is about how to relate computer code to items in the real world. The real world gives us literally millions of different examples and ideas to choose from, anything from nightmare monsters to buried treasure to asteroids. For this assignment, the topic will be cargo ships and docks. You will have to create a basic set of classes, the menus to create them, and complete a few mathematical problems. Objectives By the time you complete this assignment, you should be familiar with: Primitive Data Types Control, Branching and Logic Repetition and looping Creating a Java Class Creating a Constructor Beginning Input and Output Mathematical and Logical Operators
2 Requirements to turn in assignment Netbeans has an export project to a zip file ability. When turning in the assignment, please zip the entire project and upload to Blackboard, or other instructions as needed. Be sure to complete the first menu task, for this is where your name is on your program. Required Comments: At the beginning of each file, you should ensure your name and student id number appear at the top of the file. At the beginning of each class, you should write a short description of the class At the beginning of each function, you should write a short description, and include the parameters and returns of the function. If there are no parameters or returns, leave that part blank. Good Naming Standards Writers of Java code have established some simple standards for how a program should be written, addressing both the functionality and the readability of the code. You can find several standards online by simply searching for Java coding standards, including ones by Oracle and Google. Additionally many corporations who use Java have established their own, slightly modified, set of coding standards. 1. Variable names will be written in camel case ( mapdata or mainmapmenu). This includes both the member variables of your classes and the internal variables used by a method, such as the parameters. 2. Class names will be written with the first letter of each word capitalized ( MainMenu, MapNode). 3. Class and variable names will be in plain language and will not be abbreviated ( instead of calling an instance of MainMenu simply mm you would call it mainmenu). 4. Any member variables of a class will be set as "private" variables. In order to access those variables getter and setter methods will be created. public class MapData { private MapNode mapnode; } public MapNode getmapnode() { return mapnode; } public MapNode setmapnode(mapnode newmapnode) { this.mapnode = newmapnode; }
3 Description Cargo comes to and from a seaport loaded onto ships. Each ship can contain a tonnage of cargo. The ships exist somewhere on a map at a point of longitude and latitude. Ships sail into the seaport, and the seaport will have one or more docks. Each dock has a certain size to be able to handle the different sizes of ships, and also exist on the map. When the ship of the correct size is in a dock of the correct size, the cargo can be loaded and off-loaded. If two ships occupy the same coordinate, they have collided. If a ship that is too big is in a dock that is too small, then that ship has been grounded. If a ship has more cargo than it has tonnage, then it will be declared unsafe. Instructions In order to complete this assignment, three key issues must be done. First, you must create an abstract top-level diagram of the description. Second, you must create the object-oriented classes. Third, you must create a menu system that manipulates these classes. Part 1. Top-Level Abstract Diagram A key skill that is often missing in computer studies is the ability to think abstractly. Many technical systems exist, where the fine detail has a set of rules and routines and have a known standard. When a computer programmer tries to explain this diagram to someone without the same technical skill, it causes confusion. A top-level diagram only outlines the large pieces of a system, and how they are connected, without going into deep detail of the components. For the description above, you are to create a top-level abstract diagram that will include the port, the docks, the ships, and the cargo.
4 Part 2. Creating Classes Use a Java system, ideally NetBeans, to create the following classes for use in your program. Class Main: A class that will be where your program begins. This class will include the public static void main (String args[]) method that will be the beginning of the program. Each of the other tasks (Describe below) will be methods of this class. These will be discussed in Part 3. Class Cargo: The class Cargo will represent a volume and weight of material each ship can contain. In this exercise, the cargo will have a weight and a label. These properties are part of cargo. Weight, in tonnage, as a double A description, as a String In addition, the class Cargo will have the following methods. The class will have a constructor, which will set the default values of the ship properties to: The constructor will set the volume to 10 tons The constructor will set the description to Bananas For each of the properties, will a have a get method that will return the current value For each of the properties, will a have a set method that will set the current value. The Cargo class will also have a display method, which will print out the current information about the cargo 10 tons of bananas
5 Class Ship: A class that will represent a cargo carrying vessel. This class will have the following properties: Name of Ship, as a String Country of Registration, as a String Transponder Number, as a long Cargo Capacity as a double, in tonnage Length of the ship, as a double, in metres Beam (width) of the ship, in metres Draft (depth) of the ship, in metres Longitude as a double, in degrees Latitude as a double, in degrees A variable of the Cargo class. In addition, the class will have the following methods. The class will have a constructor, which will set the default values of the ship properties to: The name of the ship to "Zenda" The country of origin to "Ruritania" The Transponder code will be set to 0. The cargo Capacity will be set to 10 tons. The length of the ship will be set to 90 metres The beam (width) of the ship will be set to 10 metres The draft (Depth in the water) will be set to 5 metres The longitude will be set to The latitude will be set to The cargo of 10 tons of bananas. For each of the properties, will a have a get method that will return the current value. For each of the properties, will a have a set method that will set the current value. The class will also have a display method, which will print out the current information about the ship: This method should call the display method of the cargo. Name: Zenda Country of Origin: Ruritania Transponder: 0 Length: 90 metres Beam: 10 metres Draft: 5 metres Capactiy:10 tons Location ( , ) Cargo: 10 tons of bananas
6 Class Dock: The class Dock will represent an area where a ship can be moored, so cargo can be loaded and unloaded. To this end, the Dock has to have the following properties. The number of the dock, as an integer The depth of the dock, a double, in metres The length of the dock, a double, in metres The width of the dock, a double, in metres Longitude as a double, in degrees Latitude as a double, in degrees In addition, the class Dock will have the following methods. The class will have a constructor, which will set the default values of the ship properties to: The constructor will set the number of the dock to 100 The depth of the dock set to 15 metres The length of the dock set to 100 metres The width of the dock to 6 metres The longitude will be set to The latitude will be set to For each of the properties, will a have a get method that will return the current value For each of the properties, will a have a set method that will set the current value. The Dock class will also have a display method, which will print out the current information about the dock: Dock Number: 1 Size: 100x15x6 metres Location ( , )
7 The Menu Functions Now the classes have been defined, it is time to define what the systems should do with these classes. Main Menu Show Student ID 2. Ship Menu 3. Dock Menu 4. Display Report 5. Quit Function 1: Show Student ID Show your name, ID Number, and CSE , and the date. The first item on the menu will be to display your name and student information. Name: Anthony Hope ID: CSE February 5, 2015
8 Function 2: Ship Menu Add class Ship as a property to your Main class. Have your second menu item open up a ship editing tool as a second menu. Ship Menu Allocate Memory for Ship 2. Update Ship 3. Set Ship to Null 4. Display the Ship 5. Previous Menu In the Update Ship, have a further menu that allows you to change each property listed in Part 2. Remember to include the display. Ship Properties Menu Update Name 2. Update Registration 3. Update Transponder 4. Update Capacity 5. Update Length 6. Update Beam 7. Update Draft 8. Update Longitude and Latitude 9. Update Cargo 10. Display the Ship 11. Previous Menu
9 When Update Cargo is selected, yet another submenu will be shown. Cargo Properties Menu Update Description 2. Update Weight 3. Display Cargo 4. Previous Menu Function 3: The Dock Menu Each of the dock properties must be addressed. Dock Menu Allocate Memory for Dock 2. Update Dock 3. Set Dock to Null 4. Display the Dock 5. Previous Menu And for updating the dock, will be each of the properties. Remember to include the display Dock Properties Menu Set the number 2. Set the length 3. Set the width 4. Set the depth 5. Set longitude and latitude 6. Display the Dock 7. Previous Menu Function 4: Status Report Display the status of the cargo, the ship, and the dock all in one report. This includes comparing the location and sizes of the various values. For the ship to be in the dock, the longitude and latitude must match. If the cargo is greater than the capacity, the report will say the ship is unsafe. If the ship is larger than the dock, and is in the dock, the report will say the ship is grounded. If the ship is not in the dock, then the ship is at sea. If the ship is safely in the dock, then the ship should be ready for offloading
CS 215 Software Design Homework 3 Due: February 28, 11:30 PM
CS 215 Software Design Homework 3 Due: February 28, 11:30 PM Objectives Specifying and checking class invariants Writing an abstract class Writing an immutable class Background Polynomials are a common
More informationRecitation 3 Class and Objects
1.00/1.001 Introduction to Computers and Engineering Problem Solving Recitation 3 Class and Objects Spring 2012 1 Scope One method cannot see variables in another; Variables created inside a block: { exist
More informationHow to Activate Student Log in to the student Registration system (also known as My Community Education or Banner ).
How to Activate Student E-Mail 1. Log in to the student Registration system (also known as My Community Education or Banner ). 2. The new account notice shows at the top of the screen once signed in. Click
More informationArray Basics: Outline. Creating and Accessing Arrays. Creating and Accessing Arrays. Arrays (Savitch, Chapter 7)
Array Basics: Outline Arrays (Savitch, Chapter 7) TOPICS Array Basics Arrays in Classes and Methods Programming with Arrays Searching and Sorting Arrays Multi-Dimensional Arrays Static Variables and Constants
More informationAlgorithmic Thinking and Structured Programming (in Greenfoot) Teachers: Renske Smetsers-Weeda Sjaak Smetsers Ana Tanase
Algorithmic Thinking and Structured Programming (in Greenfoot) Teachers: Renske Smetsers-Weeda Sjaak Smetsers Ana Tanase Today s Lesson plan (10) Retrospective Previous lesson Theory: Nested if.. then..
More informationExercise: Inventing Language
Memory Computers get their powerful flexibility from the ability to store and retrieve data Data is stored in main memory, also known as Random Access Memory (RAM) Exercise: Inventing Language Get a separate
More informationClasses and Objects 3/28/2017. How can multiple methods within a Java class read and write the same variable?
Peer Instruction 8 Classes and Objects How can multiple methods within a Java class read and write the same variable? A. Allow one method to reference a local variable of the other B. Declare a variable
More informationKing Abdulaziz University Faculty of Computing and Information Technology Computer Science Department
King Abdulaziz University Faculty of Computing and Information Technology Computer Science Department CPCS204, 3 rd Term 2014 (Summer) Program1: FCIT Samba Bank Assigned: Wednesday June 11 th, 2014 Due:
More informationcoe318 Lab 1 Introduction to Netbeans and Java
coe318 Lab 1 Week of September 12, 2016 Objectives Lean how to use the Netbeans Integrated Development Environment (IDE). Learn how to generate and write formatted API documentation. Add a constructor,
More informationACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1
ACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1 Due to CMS by Tuesday, February 14. Social networking has caused a return of the dot-com madness. You want in on the easy money, so you have decided to make
More informationCSSE 220 Day 3. Check out UnitTesting and WordGames from SVN
CSSE 220 Day 3 Unit Tests and Object References Implementing Classes in Java, using Documented Stubs, Test-First Programming Check out UnitTesting and WordGames from SVN What Questions Do You Have? Syllabus
More informationCISC-124. Dog.java looks like this. I have added some explanatory comments in the code, and more explanation after the code listing.
CISC-124 20180115 20180116 20180118 We continued our introductory exploration of Java and object-oriented programming by looking at a program that uses two classes. We created a Java file Dog.java and
More informationTopic 7: Algebraic Data Types
Topic 7: Algebraic Data Types 1 Recommended Exercises and Readings From Haskell: The craft of functional programming (3 rd Ed.) Exercises: 5.5, 5.7, 5.8, 5.10, 5.11, 5.12, 5.14 14.4, 14.5, 14.6 14.9, 14.11,
More informationCS2630: Computer Organization Homework 1 Bits, bytes, and memory organization Due January 25, 2017, 11:59pm
CS2630: Computer Organization Homework 1 Bits, bytes, and memory organization Due January 25, 2017, 11:59pm Instructions: Show your work. Correct answers with no work will not receive full credit. Whether
More informationCS Final Exam Review Suggestions - Spring 2014
CS 111 - Final Exam Review Suggestions p. 1 CS 111 - Final Exam Review Suggestions - Spring 2014 last modified: 2014-05-09 before lab You are responsible for material covered in class sessions, lab exercises,
More informationWeek 3 Classes and Objects
Week 3 Classes and Objects written by Alexandros Evangelidis, adapted from J. Gardiner et al. 13 October 2015 1 Last Week Last week, we looked at some of the different types available in Java, and the
More informationFull file at
Java Programming, Fifth Edition 2-1 Chapter 2 Using Data within a Program At a Glance Instructor s Manual Table of Contents Overview Objectives Teaching Tips Quick Quizzes Class Discussion Topics Additional
More information************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE
Program 10: 40 points: Due Tuesday, May 12, 2015 : 11:59 p.m. ************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE *************
More informationCOMP-202: Foundations of Programming. Lecture 26: Review; Wrap-Up Jackie Cheung, Winter 2016
COMP-202: Foundations of Programming Lecture 26: Review; Wrap-Up Jackie Cheung, Winter 2016 Announcements Final is scheduled for Apr 21, 2pm 5pm GYM FIELD HOUSE Rows 1-21 Please submit course evaluations!
More informationSpring, 2014 CIT 590. Programming Languages and Techniques Homework 7
Spring, 2014 CIT 590 Programming Languages and Techniques Homework 7 Mar 21, 2014; Due Mar 28, 2014, before first recitation This homework deals with the following topics * Getting started with Java *
More informationLecture 02, Fall 2018 Friday September 7
Anatomy of a class Oliver W. Layton CS231: Data Structures and Algorithms Lecture 02, Fall 2018 Friday September 7 Follow-up Python is also cross-platform. What s the advantage of Java? It s true: Python
More informationCS 463 Project 1 Imperative/OOP Fractals
CS 463 Project 1 Imperative/OOP Fractals The goal of a couple of our projects is to compare a simple project across different programming paradigms. This semester, we will calculate the Mandelbrot Set
More informationLab 5 Classy Chat. XMPP Client Implementation --- Part 2 Due Oct. 19 at 11PM
Lab 5 Classy Chat XMPP Client Implementation --- Part 2 Due Oct. 19 at 11PM In this week s lab we will finish work on the chat client programs from the last lab. The primary goals are: to use multiple
More informationAccessing your online class
Accessing your online class Terminology Login information: Your login information is your username and password assigned to you at the beginning of your studies at the ELC. BB: Abbreviation for Blackboard,
More informationCIT 590 Homework 10 Battleship
CIT 590 Homework 10 Battleship Purposes of this assignment: To give you more experience with classes and inheritance General Idea of the Assignment Once again, this assignment is based on a game, since
More informationInheritance and Interfaces
Inheritance and Interfaces Object Orientated Programming in Java Benjamin Kenwright Outline Review What is Inheritance? Why we need Inheritance? Syntax, Formatting,.. What is an Interface? Today s Practical
More informationLesson 10A OOP Fundamentals. By John B. Owen All rights reserved 2011, revised 2014
Lesson 10A OOP Fundamentals By John B. Owen All rights reserved 2011, revised 2014 Table of Contents Objectives Definition Pointers vs containers Object vs primitives Constructors Methods Object class
More informationContextual Android Education
Contextual Android Education James Reed David S. Janzen Abstract Advances in mobile phone hardware and development platforms have drastically increased the demand, interest, and potential of mobile applications.
More informationChapter 2 Using Data. Instructor s Manual Table of Contents. At a Glance. Overview. Objectives. Teaching Tips. Quick Quizzes. Class Discussion Topics
Java Programming, Sixth Edition 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives Teaching Tips Quick Quizzes Class Discussion Topics Additional Projects Additional
More informationLecture 14 CSE11 Fall 2013 For loops, Do While, Break, Continue
Lecture 14 CSE11 Fall 2013 For loops, Do While, Break, Continue General Loops in Java Look at other loop constructions Very common while loop: do a loop a fixed number of times (MAX in the example) int
More informationCMPSCI 187 / Spring 2015 Hangman
CMPSCI 187 / Spring 2015 Hangman Due on February 12, 2015, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 CMPSCI 187 / Spring 2015 Hangman Contents Overview
More informationObject-Oriented Programming for Managers
95-807 Object-Oriented Programming for Managers 12 units Prerequisites: 95-815 Programming Basics is required for students with little or no prior programming coursework or experience. (http://www.andrew.cmu.edu/course/95-815/)
More informationUsing Turnitin for electronic submission and marking of assignments: guidance paper for staff.
Using Turnitin for electronic submission and marking of assignments: guidance paper for staff. College of Nursing, Midwifery and Health Care June 2011 Catherine Lynch amended April 2012, February 2013,
More informationProgramming II (CS300)
1 Programming II (CS300) Chapter 03: Creating Classes MOUNA KACEM mouna@cs.wisc.edu Spring 2019 Creating Classes 2 Constructors and Object Initialization Static versus non-static fields/methods Encapsulation
More informationRegis University CC&IS CS310 Data Structures Programming Assignment 2: Arrays and ArrayLists
Regis University CC&IS CS310 Data Structures Programming Assignment 2 Arrays and ArrayLists Problem Scenario The real estate office was very impressed with your work from last week. The IT director now
More informationRecursion 1. Recursion is the process of defining something in terms of itself.
Recursion 1 Recursion is the process of defining something in terms of itself. A method that calls itself is said to be recursive. Recursion is an alternative form of program control. It is repetition
More information6.001 Notes: Section 17.5
6.001 Notes: Section 17.5 Slide 17.5.1 Now, let's look at one example in which changing the evaluation model allows us to explore a very different kind of computational problem. Our goal is to show how
More informationCSE 201 JAVA PROGRAMMING I. Copyright 2016 by Smart Coding School
CSE 201 JAVA PROGRAMMING I Primitive Data Type Primitive Data Type 8-bit signed Two s complement Integer -128 ~ 127 Primitive Data Type 16-bit signed Two s complement Integer -32768 ~ 32767 Primitive Data
More informationCS 342 Software Design Spring 2018 Term Project Part II Development of Question, Answer, and Exam Classes
CS 342 Software Design Spring 2018 Term Project Part II Development of Question, Answer, and Exam Classes Due: Wednesday 21 February. Electronic copy due at 3:30 P.M. Optional paper copy may be handed
More informationProgramming II (CS300)
1 Programming II (CS300) Chapter 03: Creating Classes MOUNA KACEM mouna@cs.wisc.edu Spring 2018 Creating Classes 2 Constructors and Object Initialization Static versus non-static fields/methods Encapsulation
More informationWorking with Objects. Overview. This chapter covers. ! Overview! Properties and Fields! Initialization! Constructors! Assignment
4 Working with Objects 41 This chapter covers! Overview! Properties and Fields! Initialization! Constructors! Assignment Overview When you look around yourself, in your office; your city; or even the world,
More informationCS 231 Data Structures and Algorithms, Fall 2016
CS 231 Data Structures and Algorithms, Fall 2016 Dr. Bruce A. Maxwell Department of Computer Science Colby College Course Description Focuses on the common structures used to store data and the standard
More informationLab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018
Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018 Due: Tuesday, September 18, 11:59 pm Collaboration Policy: Level 1 (review full policy for details) Group Policy: Individual This lab will give you experience
More informationCS 2223 B15 Term. Homework 1 (100 pts.)
CS 2223 B15 Term. Homework 1 (100 pts.) Homework Instructions This homework is to be completed individually. If you have any questions as to what constitutes improper behavior, review the examples I have
More informationOverview of Eclipse Lectures. Module Road Map
Overview of Eclipse Lectures 1. Overview 2. Installing and Running 3. Building and Running Java Classes 4. Refactoring Lecture 2 5. Debugging 6. Testing with JUnit 7. Version Control with CVS 1 Module
More informationAssessment details for All students Assessment item 1
Assessment details for All students Assessment item 1 Due Date: Weighing: 20% Thursday of Week 6 (19 th April) 11.45 pm AEST 1. Objectives The purpose of this assessment item is to assess your skills attributable
More informationTwo Types of Types. Primitive Types in Java. Using Primitive Variables. Class #07: Java Primitives. Integer types.
Class #07: Java Primitives Software Design I (CS 120): M. Allen, 13 Sep. 2018 Two Types of Types So far, we have mainly been dealing with objects, like DrawingGizmo, Window, Triangle, that are: 1. Specified
More informationCMPSC 111 Introduction to Computer Science I Fall 2016 Lab 8 Assigned: October 26, 2016 Due: November 2, 2016 by 2:30pm
1 CMPSC 111 Introduction to Computer Science I Fall 2016 Lab 8 Assigned: October 26, 2016 Due: November 2, 2016 by 2:30pm Objectives To enhance your experience with designing and implementing your own
More informationArray Basics: Outline
Array Basics: Outline More Arrays (Savitch, Chapter 7) TOPICS Array Basics Arrays in Classes and Methods Programming with Arrays Searching and Sorting Arrays Multi-Dimensional Arrays Static Variables and
More informationTopic Notes: Java and Objectdraw Basics
Computer Science 120 Introduction to Programming Siena College Spring 2011 Topic Notes: Java and Objectdraw Basics Event-Driven Programming in Java A program expresses an algorithm in a form understandable
More informationWeb API Lab. The next two deliverables you shall write yourself.
Web API Lab In this lab, you shall produce four deliverables in folder 07_webAPIs. The first two deliverables should be pretty much done for you in the sample code. 1. A server side Web API (named listusersapi.jsp)
More informationDatabases IIB: DBMS-Implementation Exercise Sheet 13
Prof. Dr. Stefan Brass January 27, 2017 Institut für Informatik MLU Halle-Wittenberg Databases IIB: DBMS-Implementation Exercise Sheet 13 As requested by the students, the repetition questions a) will
More informationCOMP 250 Winter 2011 Reading: Java background January 5, 2011
Almost all of you have taken COMP 202 or equivalent, so I am assuming that you are familiar with the basic techniques and definitions of Java covered in that course. Those of you who have not taken a COMP
More informationCOE318 Lecture Notes Week 3 (Week of Sept 17, 2012)
COE318 Lecture Notes: Week 3 1 of 8 COE318 Lecture Notes Week 3 (Week of Sept 17, 2012) Announcements Quiz (5% of total mark) on Wednesday, September 26, 2012. Covers weeks 1 3. This includes both the
More informationCS Computer Science I
CS 1309-001 Computer Science I Fall 2017, Sul Ross State University Instructor: Dr. Kennard Laviers Office Location: ACR 107 Office Phone: 432-837- 8500 Email: kennard.laviers@sulross.edu Office Hours:
More informationAlgorithmic Thinking and Structured Programming (in Greenfoot) Teachers: Renske Smetsers Sjaak Smetsers
Algorithmic Thinking and Structured Programming (in Greenfoot) Teachers: Renske Smetsers Sjaak Smetsers Today s Lesson plan (3) 10 min Looking back What did we learn last week? Blocks of: Theory Exercises
More informationCS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM
CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM Objectives Defining a wellformed method to check class invariants Using assert statements to check preconditions,
More informationTips from the experts: How to waste a lot of time on this assignment
Com S 227 Spring 2018 Assignment 1 100 points Due Date: Friday, September 14, 11:59 pm (midnight) Late deadline (25% penalty): Monday, September 17, 11:59 pm General information This assignment is to be
More informationClaremont McKenna College Computer Science
Claremont McKenna College Computer Science CS 51 Handout 4: Problem Set 4 February 10, 2011 This problem set is due 11:50pm on Wednesday, February 16. As usual, you may hand in yours until I make my solutions
More informationCMPSCI 187 / Spring 2015 Implementing Sets Using Linked Lists
CMPSCI 187 / Spring 2015 Implementing Sets Using Linked Lists Due on Tuesday February 24, 2015, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 CMPSCI
More informationCampus France Registration Guide
Campus France Registration Guide Here are instructions on how to complete the Campus France registration process. This is the first step of the French visa application process. We ve created this registration
More informationOne of these "compartments" is more correctly referred to as an element of the array
An array is a special type of variable in that it can contain many values If a standard variable is like a box, think of an array as being like a box with compartments: One of these "compartments" is more
More informationCS 161 Computer Security
Raluca Popa Spring 2018 CS 161 Computer Security Homework 1 Due: Monday, January 29th, at 11:59pm Instructions. This homework is due Monday, January 29th, at 11:59pm. No late homeworks will be accepted
More informationIntroduction to the C++ Programming Language
LESSON SET 2 Introduction to the C++ Programming Language OBJECTIVES FOR STUDENT Lesson 2A: 1. To learn the basic components of a C++ program 2. To gain a basic knowledge of how memory is used in programming
More informationCSE : Python Programming
CSE 399-004: Python Programming Lecture 2: Data, Classes, and Modules January 22, 2007 http://www.seas.upenn.edu/~cse39904/ Administrative things Teaching assistant Brian Summa (bsumma @ seas.upenn.edu)
More informationCS 342 Software Design Spring 2018 Term Project Part III Saving and Restoring Exams and Exam Components
CS 342 Software Design Spring 2018 Term Project Part III Saving and Restoring Exams and Exam Components Due: Wednesday 13 March. Electronic copy due at 3:30 P.M. Optional paper copy may be handed in during
More informationBuilding Java Programs. Chapter 2: Primitive Data and Definite Loops
Building Java Programs Chapter 2: Primitive Data and Definite Loops Copyright 2008 2006 by Pearson Education 1 Lecture outline data concepts Primitive types: int, double, char (for now) Expressions: operators,
More informationNotes from the Boards Set # 5 Page
1 Yes, this stuff is on the exam. Know it well. Read this before class and bring your questions to class. Starting today, we can no longer write our code as a list of function calls and variable declarations
More informationChapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1
Chapter 2 Input, Processing, and Output Fall 2016, CSUS Designing a Program Chapter 2.1 1 Algorithms They are the logic on how to do something how to compute the value of Pi how to delete a file how to
More informationCOMP 401 Midterm. Tuesday, Oct 18, pm-3:15pm. Instructions
COMP 401 Midterm Tuesday, Oct 18, 2016 2pm-3:15pm Instructions 1. Please spread out and try and sit in alternate seats. 2. This is a closed book exam. 3. You will not be penalized for errors in Java syntax.
More informationLearning objectives. Reading carefully. Managing your time. CS2110 Fall 2017 Assignment A1. PhD Genealogy. See CMS for the due date
1 CS2110 Fall 2017 Assignment A1 PhD Genealogy Website http://genealogy.math.ndsu.nodak.edu contains the PhD genealogy of about 214,100 mathematicians and computer scientists, showing their PhD advisors
More informationObjects and Classes. 1 Creating Classes and Objects. CSCI-UA 101 Objects and Classes
Based on Introduction to Java Programming, Y. Daniel Liang, Brief Version, 10/E 1 Creating Classes and Objects Classes give us a way of defining custom data types and associating data with operations on
More informationExample: Fibonacci Numbers
Example: Fibonacci Numbers Write a program which determines F n, the (n + 1)-th Fibonacci number. The first 10 Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, and 34. The sequence of Fibonacci numbers
More informationCIT 590 Homework 5 HTML Resumes
CIT 590 Homework 5 HTML Resumes Purposes of this assignment Reading from and writing to files Scraping information from a text file Basic HTML usage General problem specification A website is made up of
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationHomework 1. Notes. What To Turn In. Unix Accounts. Reading. Handout 3 CSCI 334: Spring, 2017
Homework 1 Due 14 February Handout 3 CSCI 334: Spring, 2017 Notes This homework has three types of problems: Self Check: You are strongly encouraged to think about and work through these questions, but
More informationLinked Lists. College of Computing & Information Technology King Abdulaziz University. CPCS-204 Data Structures I
College of Computing & Information Technology King Abdulaziz University CPCS-204 Data Structures I What are they? Abstraction of a list: i.e. a sequence of nodes in which each node is linked to the node
More informationSoftware Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore
Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore Lecture 04 Software Test Automation: JUnit as an example
More informationExercise 1.1 Hello world
Exercise 1.1 Hello world The goal of this exercise is to verify that computer and compiler setup are functioning correctly. To verify that your setup runs fine, compile and run the hello world example
More informationCampus France Registration Guide
Campus France Registration Guide Here are instructions on how to complete the Campus France registration process. This is the first step of the French visa application process. We ve created this registration
More informationCOMP6700/2140 Methods
COMP6700/2140 Methods Alexei B Khorev and Josh Milthorpe Research School of Computer Science, ANU 9 March 2017 Alexei B Khorev and Josh Milthorpe (RSCS, ANU) COMP6700/2140 Methods 9 March 2017 1 / 19 Methods
More informationProgramming Assignment #2
Programming Assignment #2 Due: 11:59pm, Wednesday, Feb. 13th Objective: This assignment will provide further practice with classes and objects, and deepen the understanding of basic OO programming. Task:
More informationECE 122. Engineering Problem Solving with Java
ECE 122 Engineering Problem Solving with Java Lecture 13 Two Dimensional Arrays Outline Problem: How do store and manipulate data in tabular format Two-dimensional arrays easy access with 2 indices This
More informationECE 122. Engineering Problem Solving with Java
ECE 122 Engineering Problem Solving with Java Lecture 13 Two Dimensional Arrays Outline Problem: How do store and manipulate data in tabular format Two-dimensional arrays easy access with 2 indices This
More informationPIC 10A. Review for Midterm I
PIC 10A Review for Midterm I Midterm I Friday, May 1, 2.00-2.50pm. Try to show up 5 min early so we can start on time. Exam will cover all material up to and including todays lecture. (Only topics that
More informationComputer Science II Data Structures
Computer Science II Data Structures Instructor Sukumar Ghosh 201P Maclean Hall Office hours: 10:30 AM 12:00 PM Mondays and Fridays Course Webpage homepage.cs.uiowa.edu/~ghosh/2116.html Course Syllabus
More informationClick on the links below to navigate to the corresponding section of the document. Section 4: Completed Assessment Activities
Student Learning Assessment Management System Faculty Directions https://prd-stem.temple.edu/slam Click on the links below to navigate to the corresponding section of the document. Part 1: The Faculty
More informationDan Greenberg Senior Design Project
CSE 401 Senior Design Project Taylor Project Title: Penn Restaurants: An Interactive Map By: Daniel Greenberg deg@seas.upenn.edu Faculty Advisor: Max Mintz Abstract For my senior design project, I have
More informationBig Java Late Objects Solution Manual
BIG JAVA LATE OBJECTS SOLUTION MANUAL PDF - Are you looking for big java late objects solution manual Books? Now, you will be happy that at this time big java late objects solution manual PDF is available
More informationJScript Reference. Contents
JScript Reference Contents Exploring the JScript Language JScript Example Altium Designer and Borland Delphi Run Time Libraries Server Processes JScript Source Files PRJSCR, JS and DFM files About JScript
More informationA PROGRAM IS A SEQUENCE of instructions that a computer can execute to
A PROGRAM IS A SEQUENCE of instructions that a computer can execute to perform some task. A simple enough idea, but for the computer to make any use of the instructions, they must be written in a form
More informationAssignment List for CIS 242 Microsoft LAN Administration II. Winter 2016 (Revised 1/1/16)
Assignment List-1 Assignment List for CIS 242 Microsoft LAN Administration II Winter 2016 (Revised 1/1/16) Getting Started Module (Orientation) - Course Syllabus, Assignments List, and other Getting Started
More informationC++ Style Guide. 1.0 General. 2.0 Visual Layout. 3.0 Indentation and Whitespace
C++ Style Guide 1.0 General The purpose of the style guide is not to restrict your programming, but rather to establish a consistent format for your programs. This will help you debug and maintain your
More informationExpressions and Casting
Expressions and Casting C# Programming Rob Miles Data Manipulation We know that programs use data storage (variables) to hold values and statements to process the data The statements are obeyed in sequence
More informationComputer Science 210: Data Structures
Computer Science 210: Data Structures Welcome to Data Structures! Data structures are fundamental building blocks of algorithms and programs Csci 210 is a study of data structures design efficiency implementation
More informationgcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world
alun@debian:~$ gcc hello.c alun@debian:~$ a.out Hello, world alun@debian:~$ gcc -o hello hello.c alun@debian:~$ hello Hello, world alun@debian:~$ 1 A Quick guide to C for Networks and Operating Systems
More informationCOMP 105 Homework: Type Systems
Due Tuesday, March 29, at 11:59 PM (updated) The purpose of this assignment is to help you learn about type systems. Setup Make a clone of the book code: git clone linux.cs.tufts.edu:/comp/105/build-prove-compare
More informationCOMP-202: Foundations of Programming. Lecture 9: Classes and Objects Sandeep Manjanna, Summer 2015
COMP-202: Foundations of Programming Lecture 9: Classes and Objects Sandeep Manjanna, Summer 2015 Announcements Assignment 3: Due on 14 th of June at 11:30 pm. Small Software Glitch Costing Huge The spacecraft
More informationCS61BL. Lecture 1: Welcome to CS61BL! Intro to Java and OOP Testing Error-handling
CS61BL Lecture 1: Welcome to CS61BL! Intro to Java and OOP Testing Error-handling About me Name: Edwin Liao Email: edliao@berkeley.edu Office hours: Thursday 3pm - 5pm Friday 11am - 1pm 611 Soda Or by
More informationNotes on Chapter Three
Notes on Chapter Three Methods 1. A Method is a named block of code that can be executed by using the method name. When the code in the method has completed it will return to the place it was called in
More information