COMP14 RECITATION 1 by- Bian Wu. Bare Bone Environment MS-DOS Prompt (Command Interpreter) Notepad (editor, c:\autoexec.bat) Jvc (J++ compiler) Jview.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Project 8 Creating Style Sheets.
Creating and Editing a Web Page Using Inline Styles
Using Macros and Visual Basic for Applications (VBA) with Excel
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
1604E and 1604CF Validation Module (Procedures for Validating
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
C OMP 110 O BJECTS Instructor: Jason Carter. 2 C OMPUTER VS. P ROGRAM M ODEL Processor Compiler Program (source code)
Chapter 8: Programming the Microprocessor. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel.
C Pre-Course Workshop Terence Lee QT406 -> PQ607
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Go to the link ( as shown, then choose downloads.
Getting Started with Java
Guidelines for working with Microsoft Visual Studio.Net.
SUNY Morrisville-Norwich Campus-Week 12 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Object-based Programming Intuitive explanation Two concrete examples Calculators addition BMI Programming Environment.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
Chapter 2 Software Tools and Assembly Language Syntax.
Programming For Nuclear Engineers Lecture 12 MATLAB (3) 1.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
Visual Basic Chapter 1 Mr. Wangler.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA ‏ Packages.
 2005 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 11 1 Microsoft Office Access 2003 Tutorial 11 – Using and Writing Visual Basic for Applications.
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
JUnit in Action SECOND EDITION PETAR TAHCHIEV FELIPE LEME VINCENT MASSOL GARY GREGORY ©2011 by Manning Publications Co. All rights reserved. Slides Prepared.
1 Documenting Your Project. 2 Documenting your Project Insert Banner Comments in your code Comment - coding statement used by humans not the compiler.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
The Python interpreter CSE 140 University of Washington Michael Ernst.
Computer Programming for Engineers Introduction to Programming in C Language on Visual C Platform Intro. Comp. Prog. C-Language1.
Ch 101 Chapter 10 Introduction to Batch Files. Ch 102 Overview A batch file is a text file that contains an ordered series of commands.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
Active-HDL Interfaces Debugging C Code Course 10.
Introduction to Engineering MATLAB – 2 Introduction to MATLAB - 2 Agenda Defining Variables MATLAB Windows.
CMPS 1371 Introduction to Computing for Engineers MatLab.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Chapter 4 - Visual Basic Schneider1 Chapter 4 General Procedures.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Compiling a Native C++ Program on the Command Line #define #include.
You may have already done this… Download the class files to the desktop Expand those files into root of USB stick Change your USB stick to drive “Z”!
1 How to Install OpenGL u Software running under Microsoft Windows makes extensive use of "dynamic link libraries." A dynamic link library (DLL) is a set.
The Python interpreter CSE 160 University of Washington Ruth Anderson 1.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Aquarium Lab Series Developed by Alyce BradyAlyce Brady of Kalamazoo CollegeKalamazoo College.
Intro Compiler Configuration and Sample Project Walkthrough (For Axiom CME11E9-EVB)
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Creating Web Pages with Links, Images, and Embedded Style Sheets
An Introduction to Programming with C++1 Void Functions Tutorial 5.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
 CSC 215 : Procedural Programming with C C Compilers.
Visual Basic.NET Windows Programming
The Python interpreter
Text by: Lambert and Osborne
Microsoft Office Illustrated
How to Import an Excel File
The SMS Query Menu System for the iSeries
The Python interpreter
Here is how you find MS Visual C on the Engineering
Debugging Visual Basic Programs
How to import CAP Library
The Python interpreter
Presentation transcript:

COMP14 RECITATION 1 by- Bian Wu

Bare Bone Environment MS-DOS Prompt (Command Interpreter) Notepad (editor, c:\autoexec.bat) Jvc (J++ compiler) Jview (J++ interpreter) ObjectEditor

Setting Path and Classpath Path Class Path List of Command Directories Must have Jvc and Jview Directories List of Library Directories, Jar Files, Zip Files Add oe.jar, shapes.jar, swingall,jar

Setting Path and Classpath SET PATH=%PATH%;C:"\Program Files\Microsoft Visual Studio\VJ98" SET CLASSPATH=%CLASSPATH%;.;D:\Java\lib\oe.jar;D:\Java\lib\shapes.jar;D:\Java\lib\swingall.jar Reboot! previous classpath current directory jar files may be zipped

Any question on assignment 1 implemented with bare-bone environment? Next, we’ll see how to do it in Visual J++...

Launch Visual J++ choose ‘new project’ choose ‘Empty Project’

Choose the location and the name of the project Press [Open] button

Select menu Project|Add Class...

Type the name of the class

A new source code window will appear (Visual J++ has already added some code for you)

Edit your source code and save it

Select menu Build|Build

If no error in your source code, you will pass the build Go to the directory of the project, you should see the class file There will be some other files (related to the project)

Some questions... Define class, method, object, variable, formal parameter, actual parameter, type, statement, return statement, and expression.

What are the case conventions for naming classes, methods, and variables Start variable name with lowercase letter (weight). Start class name with uppercase letter (ABMICalculator) Start each new word with upper case letter (ASquareCalculator) Use the variable, method class names, which are self- explaining

Why is it useful to follow style principles? It’s easier for you to program It’s easier for others to understand your source code It’s easier to avoid some ‘silly errors’