320 likes | 501 Views
Computer Tools for EAS230. Lab Rules. No late labs 12 days Submit as many times as you like, up until due date/time Submit via UB Learns Check you grades on UB Learns Do not use UB Learns otherwise use www.cse.buffalo.edu/~mikeb.
E N D
Lab Rules • No late labs • 12 days • Submit as many times as you like, up until due date/time • Submit via UB Learns • Check you grades on UB Learns • Do not use UB Learns otherwise • use www.cse.buffalo.edu/~mikeb
1. Even though there are only 3 graded lab components, no late labs are accepted for any reason, including disrupted access to submission servers and remote-access servers from home. The UB Learns submission servers get crowded in the last 10 minutes before the submission deadline. Please do not wait until the last minute. 2. You can submit assignments as many times as you want before the submission deadline. DO NOT complete your lab without submitting it as soon as it’s working. If you plan to improve it, you can submit it again later. 3. If your computer isn't properly compiling ANSI-standard C++ programs, or executing MATLAB or Excel, then you are obligated to attend your lab period. Home access is provided for your convenience, but the lab computing environment is the standard for grading. Submitted projects that do not compile or execute on the lab computers will be given a zero grade, because there would be no way to grade them.
4. Collaboration in coding, usually evidenced by unjustifiable similarity in any graded work, is never allowed. The author as well as the recipient of original work involved in a violation of academic integrity will be equally punished. This includes (-100) grade on the work in question for a first offense, and an F in the course for the second offense. Collaboration in design and understanding, however, is encouraged. 5. Re-grade requests for both labs and exams may be submitted no later than one (1) week after the graded work is posted to the class via UB Learns.
We will need • An editor – Jgrasp • For PCs this includes installing Java • For Macs, Java is already installed • A C++ “compiler” – • MinGW for 64 bit PCs • Cygnus for 32 bit PCs • Xcode for Mac
32 or 64 bit? Run Control Panel, select System
checklists • PC • 32 or 64 bit? Control-Panel /System • C++ - 32 bit http://www.cse.buffalo.edu/~mikeb/full.exe • C++ - 64 bit mingw-get-setup.exe • Java JDK - http://www.oracle.com/technetwork/java/javase/downloads/index.html • Editor - http://www.jgrasp.org • Mac • Editor - http://www.jgrasp.org • XCode - https://developer.apple.com/support/xcode/
all instructions are on the web Step by Step: http://www.cse.buffalo.edu/~mikeb/EAS230Instructions2.htm Editor for PC http://jgrasp.org/ http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java) C++ for PC 64-bit (most new PCs) - http://www.cse.buffalo.edu/~mikeb/mingw-get-setup.exe 32-bit (old PCs) - http://www.claremontmckenna.edu/pages/faculty/alee/g++/g++.html Editor for Mac http://jgrasp.org/ Compiler for Mac XCode in the iTunes Store here later: Excel for PC http://ubit.buffalo.edu/software/win/ Excel for Mac http://ubit.buffalo.edu/software/mac/
First, an EDITOR • Allows you to edit, check (called COMPILE), and run a C++ program • JGrasp, free for PC and Mac - http://www.jgrasp.org/
On a Mac You must get Apple’s Xcode https://developer.apple.com/support/xcode/ You will need iTunes to get to the app store XCode in the iTunes Store here
Install the Command Line Tools In XCode, you must download and install the command-line tools. Under the XCode pull down menu, selectXCode - Preferences, and then the Downloads tab.
or, do it without XCode Installs the gcc compiler on your Mac OS X 10.7 Lion: GCC-10.7.pkg OS X 10.6 Snow Leopard: GCC-10.6.pkg
Excel for Mac http://ubit.buffalo.edu/software/mac/
If you're using a Windows PC • this is more complicated • Microsoft does not provide the C++ environment like Apple does for the Mac
JGrasp needs a Java environment http://www.oracle.com/technetwork/java/javase/downloads/index.html
32 bit 64 bit
Now, get a C++ compiler 32 bit computer • http://www.claremontmckenna.edu/pages/faculty/alee/g++/g++.htmlor • http://horstmann.com/bigcpp/help/gnuwindows/index.htmlor • http://www.cse.buffalo.edu/~mikeb/full.exe 64 bit • Download and Install the C++ programming environment from the class web site: mingw-get-setup.exe
Adding it to your PATH • The C++ program is called g++ (or sometimes gcc). After installing g++, you’ll need to locate where the bin folder was created for the g++ installation. On my Windows XP machine, it was created in the following path: 32 bit: ;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin; 64 bit: ;C:\MinGW\bin; • You now should add it to the PATH environment variable. You do that by following: Start -> Control Panel -> System -> Advanced -> Environment Variables At this point you can see the PATH variable in the System Variables box (the bottom, NOT the User Variables part). Add the g++ path into the PATH variable VALUE (not the name). You add it to the end of the existing value separated by a semicolon (';'). Make sure that you do not lose the original value. You are just appending more to the end separated by a semicolon.
add ;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin; or ;C:\MinGW\bin; to the end here
minGW • You’ll need the Windows x86 version for 32-bit computers, or the x64 version for 64-bit computers. • Download and Install the C++ programming environment from the class web site: mingw-get-setup.exe • This actually installs the installer, which you then run to install the C++ compiler.
Select the basic, gcc-bin, gcc-dev, g++ bin, and g++ dev installations: minGW
add to path ;C:\MinGW\bin; You now should add it to the PATH environment variable. You do that by following: Start -> Control Panel -> System -> Advanced -> Environment Variables At this point you can see the PATH variable in the System Variables box (the bottom, NOT the User Variables part). Add the g++ path into the PATH variable VALUE (not the name). You add it to the end of the existing value separated by a semicolon (';'). Make sure that you do not lose the original value. You are just appending more to the end separated by a semicolon.
if you don't have an Engineering account • www.sens.buffalo.edu/accounts • go to the helpdesk in Bell 101 • Bell 101 is open 24/7
Excel for PC http://ubit.buffalo.edu/software/win/
Matlab $99 at UBMicro, but available on all UB computers Information on MATLAB: http://ubit.buffalo.edu/software/matlab/ It can be run from your PC or Mac if you log in to UB IT computers: http://www.sens.buffalo.edu/services/timeshares/#Software We will cover this in detail when we get to MATLAB in the course