Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
CS 1400 (Java®) CS 1400 Fundamentals of Programming (Problem Solving with Java�) The course focuses on the fundamental concepts of computer programming. This includes basic problem solving, debugging techniques, program design, and contemporary coding styles. Programming problems are implemented in the Java programming language and specific emphasis is placed on compilation and library use; data types, including arrays, and Java collections; flow-of-control statements; object-oriented programming, including inheritance, method overriding, and polymorphism; recursion; and input/output. Prerequisites: CS 1030: Foundations of Computer Science and Computer Literacy Contents Page Updates Text Syllabus Compiler, Editors, and Documentation Tools and Information Class Materials The vi Text Editor Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 7 Chapter 8 Programming Labs and Assignments Exam Resources Scores Legal Stuff Page Updates I am not currently teaching this course Jan 5 Accessing Weber's Secure Network Syllabus Text Building Java Programs: A Back to Basics Approach Stuart Reges Marty Stepp ISBN: 978-0-321-38283-2 Publisher: Pearson / Addison Wesley Copyright: 2008 code_files.zip Source code files from the CD Compiler, Editors, and Documentation The recommended compiler and toolset for the class is JDK 6 Update 11 or newer from Sun Microsystems. (A version of JDK 6 -- update unknown -- is available on the CD, but I couldn't get mine to read.) Download JDK 6 SE Update 11 (be sure to get the SDK and not JRE) Also download the documentation: Java SE 6 Documentation Note that when installing Java, the installation directory is named after the specific version of Java installed Set the path environment variable as described in class. (Read about Environment variables, especially %PATH%.) Editors and Integrated Development Environments (IDE) Class demonstrations are presented using a "Command Prompt" window and basic text editor. You use any text editor or IDE available. However, you are responsible for learning these on your own as they are not covered in class. On the CD accompanying the text DrJava lightweight Java IDE designed primarily for students and beginners Eclipse A sophisticated and extensible IDE written in Java and often used expensively in industry available on the lab computers under the start menu JCreatorLE A "Light Edition" of a Java IDE similar to Visual Studio JGrasp A lightweight development environment written in Java - provides nice Control Structure Diagrams Download and Documentation available on the lab computers under the start menu NETBEANS An extensive IDE often used in industry TextPad A simple but very effective text editor - popular w/ professionals Download Free downloads Notepad++ Simple but usable text editor Download here available on the lab computers under the start menu gvim A windowed version of the Unix/Linux vi editor - what more could you ever want!? (also popular w/ professionals) Download Windows version here Main gvim web site available on the lab computers under the start menu TextEdit Simple, intuitive, but quite capable editor Download here On-line Java Resources at Sun Java API (Version 6) Java Tutorials Event Handler Summary Listeners Supported by Swing Components Tools and Information Many of the documents on this web site are provided in portable document format (pdf). Get the Acrobat Reader here: WSU Testing Centers Class Materials (Slides, Sample Programs, Etc.) Editing Files With vi: The vi Text Editor Slides Slides Slides 6/page Supplemental Pocket vi Reference (print front to back on a single sheet and fold in thirds) vi Mode Diagram Chapter 1: Introduction To Java Programming Slides Slides Slides 6/page Supplemental CS 1030 Review Debugging Programs Installing the JDK Chapter 2: Primitive Data and Definite Loops Slides Slides Slides 6/page Supplemental Java Program Structure Chapter 3: Introduction to Parameters and Objects Slides Slides Slides 6/page Chapter 4: Conditional Execution Slides Slides Slides 6/page Chapter 7: Arrays Slides Slides Slides 6/page Sample Programs MultTab.java Two-dimensional array SelectionSort.java Demonstrates making and filling an array and Arrays.sort StringArrays.java Demonstrates Arrays.sort and Arrays.binarySearch Palindrome.java Demonstrates using Strings like an array, Scanner input, command line input WC.java Demonstrates command line arguements, checking if a file exits, line-based file processing, and "passing the buck" exception handling WC.java Same as above but also demonstrates token-based file processing WC1.java Similar to the above - only processes one file - demonstrates "the buck stops here" exception handling (try / catch) Chapter 8: Classes Slides Slides Slides 6/page Sample Programs Calculator.java Fraction.java Card.java Rolodex.java Problem Solution Chapter 3G: Introduction to Graphics Slides Slides Slides 6/page Sample Programs DrawingPanel.java from the text Combine with your Glass.java to form a graphical version of the pouring puzzle GraphicPuzzle.java GraphicGlass.java Chapter 9: Inheritance and Interfaces Slides Slides Slides 6/page Sample Programs Inheritance Person.java Base/super class Student.java Derived/subclass Address.java "is-a" class Client.java Uses the other three classes Inheritance and Polymorphism Shape.java Base/super class Shape.java Subclass class Rectangle.java Subclass class Triangle.java Subclass class PolyDemo.java Client code DrawingPanel.java From the authors (3G) Programming Labs and Assignments You may work together on assignments but the work you submit must be your own All assignments are due at 10:00 p.m. on the due date Upload all assignments to WSU Online Please do not zip multiple files unless instructed to do so Question answers may be submitted as (a) text files (please insert line-breaks at about 60 characters), (b) WordPerfect files, (c) Word files, (d) OpenOffice files, or (e) RTF files; file names are not generally not specified but use appropriate names Program submissions should only include .java files (i.e., do not submit .class files) All programs are compiled with the current JDK from Sun Microsystems and are executed from the console (i.e., a command prompt window) I often use batch files to grade programs; the automated tests will fail if you do not follow the naming instructions or if you place your assignments in packages (which many IDEs do automatically) Keep a backup of all files. Uploading files Select "Assignments" from the "Course Tools" menu at the left If not displayed, select the "Inbox" tab Click the appropriate assignment Press the "Add Attachments" button (you may need to scroll down the page until it is visible) At the left, press the "My Computer" button In the popup window, locate your assignment file or files (multiple files may be selected by holding down the control button on the keyboard while selecting files) Press the "Open" button at the bottom of the popup window (the popup window will close) Press the "Submit" button at the bottom of the window (you may need to scroll down until it is visible) once all files are uploaded Removing (Taking Back) Files Select the "Submitted" tab Click the appropriate assignment link There is a gray bar at the top of the page with assignment information. Locate the button, with an icon of a hand holding a page, at the right of this bar and press it On the next page, scroll down to the file name. At the right of the file name is a button, with an icon of an arrow over a page, press this button Chapter Date Due Cutoff Date Points Notes / Comments Fundemental Tasks Lab #1 1 Jan 13 Jan 14 10 Upload two files to WSU Online. Press "Submit" only after uploading both files. Primitive Data, Arithmetic, and for Loops Lab #2 2 Jan 22 Jan 26 25 The information on the diagram at the bottom of page 2 does not display well when viewed on screen but prints clearly. Upload three files to WSU Online. Lab #3 3 Jan 29 Feb 2 25 Write your answers using Word, WordPerfect, OpeneOffice, or a text editer (instert new lines every ~60 characters) Optional Lab #2 Redo 3 Feb 10 Feb 10 20 You may correct your lab #2 programs and resubmit for partial credit. You may also submit the assignment for partial credit if you did not turn it in before. Interactive Programs, For-Loops, and If-Statements Lab #4 3 and 4 Feb 13 Feb 16 15 Uploade PineTree.java to WSU Online Extra Credit 1 3 and 4 Feb 18 Feb 18 10 Uploade your program to WSU Online (not that no file name is specified) Token-Based File Processing Lab #5 checkbook.txt 4, 5, and 6 Mar 6 Mar 15 15 Uploade CheckBook.java to WSU Online Classes (1) Lab #6 8 Mar 23 Mar 24 10 Inheritance and Interfaces Lab #8 8 and 9 Apr 9 Apr 10 10 Inheritance, Abstract Classes/Methods, and Polymorphism Lab #9 Lab9.java 8 and 9 Apr 14 Apr 16 10 Upload 5 files - please do not zip Final Project Final Project Description GameConsole.java Location.java LocationGame.java Directions.java BunnyQuest.java An example for your class Example Map BunnyQuest.jar An example program. Execute either by double-clicking the icon or by entering java -jar BunnyQuest.jar at the command prompt. 8 and 9 Apr 21 (part a) / Apr 25 (program) Apr 25 25 Upload 5 files - please do not zip Exam Resources WSU Testing Centers Scores and Grades Scores and grades are available with your WSU W-number (the 'W' must be entered as a upper-case letter). If you do not know your WSU student number, you may find it here: Student Account Information (look for your "Personal Profile") Selecting the link below will run a Java 1.6 applet. You must have the Java 1.6 or newer runtime installed to view your scores. You should be able to view your scores on the lab computers. Scores Legal Stuff Copyright Notice Contents are Copyright © 1998-2009, Delroy A. Brinkerhoff. Class materials (slides, example programs, etc.) may be used for non-commercial, academic classes only; all other rights reserved. Warning and Disclaimer Information on these web pages are provided "as is" without any warranty or fitness for any use implied. The author, Weber State University, and the Weber State University Computer Science Department shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information on these web pages. Trademark Notice All terms mentioned on these pages that are known to be trademarks or service marks have been appropriately marked. The author cannot attest to he accuracy of this information. The use of a term on these web pages should not be regarded as affecting the validity of any trademark or service mark.