Using Jgrasp on the Lab Computers

Total Page:16

File Type:pdf, Size:1020Kb

Using Jgrasp on the Lab Computers California State University, Sacramento College of Engineering and Computer Science Computer Science 10: Introduction to Programming Logic Getting started with JGrasp JGrasp is a free Java IDE (Integrated Development Environment) specifically targeted for computer science education. It's more primitive than Eclipse or other IDEs, but it is the easiest IDE to learn. JGrasp can be downloaded on your home computer. For more information, see the JGrasp website. Using JGrasp on the lab computers JGrasp is installed on all the ECS lab computers, as well as on the Hydra remote server cluster. To get started, do the following: 1. Search for “JGrasp” in the start menu and click it. 2. JGrasp will ask you to allow data collection and to update, probably in that order. Feel free to dismiss both dialog boxes (“Don't Allow” and “Remind me later”). Feel free to dismiss this dialog box. 2 3. You will be presented with the following window. This is JGrasp. The “Code Window” is where you will be editing your Java code. When you run your application, you'll be able to type input into the “Console Window” and see results. 4. BEFORE you can start editing, you have to create a new Java document for JGrasp. Click the File menu in the upper-left hand corner. Select “New” and then “Java”. The JGrasp window will change and several toolbars will appear. There are several items of interest: This button compiles your program but does not run it. Great for testing for syntax Compile Button errors (the Java compiler will print a message if your program has one or more) Run Button Compiles and runs your program. Compiles and runs your program, but also enables breakpoints. These allow you Debug Button to tell the program to stop at a certain line so you can look at variable values and step through line by line. Ask me for a demo. JGrasp has support for editing mutiple documents using a tabbed window. For whatever reason, the tabs are along the bottom of the Code Window. “[Grasp 1]” is the name of a file that hasn't been saved yet. Once you save your file, this will change to be the filename you specified. Document Tab 3 5. Paste or type your Java program into the Code Window, then press Control+S to save (or click File → Save). JGrasp will suggest a filename for you. Your filename must match the “class” name in your Java program. Flowgorithm uses MyProgram by default. Java expects a class named MyProgram to be saved in a file called MyProgram.java JGrasp automatically suggests an appropriate filename for you. Save it in whichever directory you please. Leave all the other settings at their defaults. Now you're ready to program in Java! 4 Using JGrasp on your home computer To use JGrasp on your home computer, you'll need to download JGrasp and the Java Development Kit. 1. Download the latest Java Development Kit (JDK) from the Oracle website. At the time of writing, the latest development kit is 8u92. Download the package appropriate for your system. If you're using a Windows machine, you're probably going to need the x64 (64-bit) .exe installer. The x86 (32-bit) installer may be necessary for some older machines or certain tablets. Linux users should try to install openjdk through their package manager instead of using the Oracle installer. 2. Run the installer. Windows users can simply follow the wizard instructions. Mac OS X users are unfortunately on their own at the moment (I don't have a Mac to test). 3. Once you've installed the JDK on your machine, download and install JGrasp from the JGrasp website. You don't have to fill out their survey. Either version is fine. 4. Start JGrasp! .
Recommended publications
  • CSCE A201 Computer Programming I Lab 0
    CSCE A201 Computer Programming I Lab 0 Lecture Instructors: Dr. Kenrick Mock, MW 11:30‐12:45pm Dr. Frank Witmer, TR 10‐11:15am Lab Assistants: Deanna Flynn Elisha Waugh Goals for Today • Introduce lab assistants • Meet some of your classmates • Introduction to Dr. Java • Understand platform independence • Write your first (!?) Java program Syllabus Highlights wrt. Lab • May students collaborate on lab assignments? • May students collaborate on programming assignments? • What percentage of the total course grade is determined by lab? • How is the lab grade determined? Introduce your Neighbor 1. Name 2. Hometown 3. Something interesting (e.g. hobby or recent trip) Some Java Development Environments • Dr. Java – from Rice University, simple & effective – standalone executable (installation instructions on Blackboard) • jGRASP – NSF funded at Auburn University • Intellij IDEA – good code completion & error messages – https://www.jetbrains.com/idea/ • NetBeans – from Oracle, good for multiple, larger projects • Eclipse – more plug‐ins, more customizable – good for Android development) • TextPad (initially free, but then ~$30) • Any text editor & command line – Notepad++ with Cygwin/DOS – emacs, vim, nano with unix/linux • See also Appendix 1 in Savitch book Java Example • Class Hello must be stored in file Hello.java public class Hello { public static void main(String[] args) { System.out.println("Hello world."); } } Platform Independence Demo • Compile java & C++ programs on linux – Which executable/bytecode will run on a Windows machine? Platform Independence • Use ‘javac’ command to compile Java source code .java files high‐level language • Use ‘java’ command to run Java bytecode .class and .jar (Java Archive) files low‐level language Same bytecodes can run any platform with an appropriate JVM (‘java’) Lab 0 Exercise 1.
    [Show full text]
  • Towards Actionable Visualisation in Software Development
    Towards Actionable Visualisation in Software Development Leonel Merino, Mohammad Ghafari, and Oscar Nierstrasz Software Composition Group, University of Bern Bern, Switzerland {merino, ghafari, oscar}@inf.unibe.ch Abstract—Although abundant studies have shown how visual- are still unaware of existing visualisation techniques to isation can help software developers to perform their daily tasks, adopt for their particular needs. A few studies have tried to visualisation is still not a common practice since developers address this issue by investigating to which software engi- have little support for adopting a proper visualisation for their needs. neering tasks particular visualisation techniques have been In this paper we review the 346 papers published in SOFT- applied [13]–[15]. Nevertheless, we believe these studies are VIS/VISSOFT venues and identify 65 design study papers that still coarse-grained to match a suitable visualisation to their describe how visualisation is used to alleviate various difficulties concrete needs. in software development. We classify these studies into several When developers perform a particular programming task problem domains that we collected from the research on soft- ware development community, and highlight the characteristics they ask some questions such as “what code is related to a of each study. On the one hand, we support software developers change?” or “where is this method called?”. Several studies to put visualisation in action by mapping existing techniques have investigated such questions and classified them into to particular needs in various problem domains. On the other groups [16]–[18]. Indeed, such questions reflect developer hand, we help researchers in the field by exposing domains with needs, and we believe mapping them to existing types of little visualisation support.
    [Show full text]
  • Overview of Jgrasp and the Tutorials
    Overview (v1.8) 8/9/2005 Overview of jGRASP and the Tutorials jGRASP is a lightweight integrated development environment IDE), created specifically to provide visualizations for improving the comprehensibility of software. jGRASP is implemented in Java, and thus, runs on all platforms with a Java Virtual Machine. As with the previous versions, jGRASP supports Java, C, C++, Ada, and VHDL, and it comes configured to work with several popular compilers to provide “point and click” compile and run. jGRASP, which is based on its predecessors, pcGRASP and UNIX GRASP (written in C/C++), is the latest IDE from the GRASP (Graphical Representations of Algorithms, Structures, and Processes) research group at Auburn University. jGRASP currently provides for the automatic generation of three important software visualizations: (1) Control Structure Diagrams (Java, C, C++, Ada, and VHDL) for source code visualization, (2) UML Class Diagrams (Java) for architectural visualization, and (3) Data Structure Diagrams (Java). jGRASP also provides an innovative Object Workbench and Debugger which are tightly integrated with these visualizations. Each is briefly described below. The Control Structure Diagram (CSD) is an algorithmic level diagram generated for Ada, C, C++, Java and VHDL. The CSD is intended to improve the comprehensibility of source code by clearly depicting control constructs, control paths, and the overall structure of each program unit. The CSD, designed to fit into the space that is normally taken by indentation in source code, is an alternative to flow charts and other graphical representations of algorithms. The goal was to create an intuitive and compact graphical notation that is easy to use.
    [Show full text]
  • Minjoo Bun Technical Skills
    MinJoo Bun 126 E. Columbia Ave. Apt 8 Palisades Park, NJ, 07650 Email: [email protected] Cell: 1-201-403-4672 Technical Skills: Programing Languages: C, C++, C#, Java, and Python, JQuery Web Development: HTML, CSS, JavaScript, and PHP Game Development: Unity IDE: jGRASP, Eclipse, and Visual Studio, phpStorm OS: Linux, macOS, and Windows Database: MySQL and Oracle Platform: Heroku, Github, Unity Other: Microsoft Office 360 Education: New Jersey Institute of Technology – also known as “NJIT” Attendance: Fall 2014 to current Expected graduation: Spring 2020 Major: Information Technology (IT) Work Experience: Verizon Wireless 2017 March - 2017 October 225 Broad Ave Suite 110, Palisades Park, NJ 07650 Mon-Sat: 9:30 AM - 8:00 PM (201) 815-1234 Dentist Assistant Align Dental Care 321 Broad Ave Bdg F5 Ridgefield, NJ 07657 Tue, Thu: 10:00 AM - 7:00 PM/Sat 10:00 AM - 4:00 PM Bakery/Café Employee 2014 September - 2017 March BB Bakery: 354 Broad Ave, Leonia, NJ 07605 Open: 6:30 AM - 10:00 PM (201) 944-1230 Online Shopping Mall Manager 2018 May - 2018 October Argus Global LLC 35 Prospect St. Palisades Park NJ 07650 10:00am - 8:00pm Turtle and Hughes Summer Internship – 2019 1900 Lower Rd. Linden NJ 07036s 10:00am – 5:00pm Ellim USA LLC August 2019 – Now 460 Bergen Blvd. Suite 380 Palisades Park NJ 0760 9:00am – 4:00pm School Projects: Unity Game – Fall 2017 Goal of the game is to have protagonist to dodge the antagonists in the map and get to the end zone with safety Using C#, an object-oriented language, multiple classes were used to enable a functional gameplay Different data structures such as arrays and lists have been incorporated into the game Sometimes a type had to be converted to another – example: int to double Website Development – Summer – 2019 Used php program such as Phpstorm to create a website that allows user to login to the website and using the website it will such for database to show questions that was previously asked for you want to ask.
    [Show full text]
  • Integrated Development Environments
    Integrated Development Environments Steven J Zeil February 13, 2013 Contents 1 The Components of an IDE 2 2 IDE Examples 3 3 Eclipse 5 1 Integrated Development Environments IDEs Integrated Develop Environments (IDEs) are software packages that attempt to provide comprehen- sive support for programming • and possible other software development activities .................................... 1 The Components of an IDE The Components of an IDE (minimal) What’s the minimum that we expect in an IDE? • editor • build – maybe no more than compiler invocation – with error messages captured/interpreted/walked by editor • run/execute • debugger .................................... The Components of an IDE (optional) What would we like to see in an IDE? • syntax highlighting & aid in editor • documentation (API) look-up • flexible/configurable build • packaging/deployment options .................................... CS7952 Integrated Development Environments The Components of an IDE (deluxe) What makes us giddy in an IDE? • smart feedback in the editor – learns API of new code – suggestions • coding aids in editor – templates – common refactoring (transformations) • documentation generation • test integration • integration with version ctrl .................................... 2 IDE Examples emacs The *nix swiss army knife of editors, emacs has long functioned as a basic IDE: • syntax-highlighting editor • build support (invokes *nix make) – parses error messages from compilers & other tools • debugger interface • works directly with many version control systems .................................... References, if you are unfamiliar with this: • Compiling in emacs • emacs Debugging mode (CS252) CS7953 Integrated Development Environments emacs Strengths and Weaknesses • highly portable • supports virtually any language you would have a compiler for • even in windowed mode, leans toward keyboard rather than mouse – (not sure if that’s a pro or a con) • outdated interface • high learning curve ...................................
    [Show full text]
  • Jgrasp Tutorials
    Tutorials Tutorials for the jGRASP™ 1.8.7 Integrated Development Environment James H. Cross II and Larry A. Barowski Auburn University September 2, 2009 Copyright © 2009 Auburn University All Rights Reserved The Tutorials have been updated with each new major release of jGRASP since their original inclusion in the jGRASP Handbook (Copyright © 2003 Auburn University). James H. Cross II is a professor of computer science and software engineering at Auburn University. Larry A. Barowski is a research associate in computer science and software engineering at Auburn University. Printing Considerations The Tutorials are formatted for 5.5 in. x 8.5 in. pages with a base font of 10 point Times New Roman. This improves on-screen viewing and facilitates booklet printing (four pages per sheet of 8.5 in. x 11 in. paper when printing on both sides). On Adobe Acrobat’s Print dialog, select “Booklet Printing” under Page Scaling. The default Booklet Subset will be Both sides. The Tutorials may also be printed “two pages per sheet” on 8.5 in. x 11 in. paper by selecting “Multiple pages per sheet” under “Page Scaling” on Adobe’s Print dialog. This may yield a slightly smaller overall font than booklet printing. If “Page Scaling” is set to “None” (the default) or “Shrink to printable area”, the Tutorials will be printed “one page per sheet” with the font slightly larger than booklet printing. If “Page Scaling” is set to “Fit printable area”, the Tutorials may be printed “one page per sheet” with the font even larger. Regardless of the pages per sheet or page scaling you select, it is strongly recommended that you print a few test pages before printing a large number of pages.
    [Show full text]
  • Getting Started with Jgrasp for Java
    Getting Started with jGRASP for Java Maria Litvin Phillips Academy, Andover, Massachusetts Gary Litvin Skylight Publishing 1. Introduction 2. Downloading and Installing jGRASP 3. Creating a Project and Running “Hello World” 4. Bringing Existing Java Files into jGRASP 5. Command-Line Arguments and User Input 6. Running GUI Applications 7. Workspaces 8. Using Jar Files 9. Creating Jar Files Copyright © 2018 by Maria Litvin, Gary Litvin, and Skylight Publishing All rights reserved. Teachers are authorized to make copies for face-to-face teaching. 2 GETTING STARTED WITH JGRASP FOR JAVA 1. Introduction This document serves as a brief introduction to jGRASP. See more detailed information on their web site. jGRASP was developed by the Department of Computer Science and Software Engineering in the Samuel Ginn College of Engineering at Auburn University. The latest version of jGRASP, as of June 2018, is Release 2.0.4_04. jGRASP is a free download. According to www.jgrasp.org, jGRASP is a lightweight development environment, created specifically to provide automatic generation of software visualizations to improve the comprehensibility of software. jGRASP is implemented in Java, and runs on all platforms with a Java Virtual Machine (Java version 1.5 or higher). jGRASP not only enables the user to edit and run Java programs, it can also produce what its developers call Control Structure Diagrams (CSDs) for Java (and other programming languages). Our primary concern here is how to use jGRASP as an IDE (Integrated Development Environment) for editing and running Java programs. 2. Downloading and Installing jGRASP First make sure the Java Development Kit (JDK) is already installed on your computer.
    [Show full text]
  • California State University Sacramento Child Safety
    CALIFORNIA STATE UNIVERSITY SACRAMENTO CHILD SAFETY: PROJECT DOCUMENTATION PROJECT GUARDIAN Authors: Zohaib ARSHAD Jashanjit BADWAL Leonardo JACOBO Didier MPONTE Harpreet SIDHU Instructor: Dr. BELKHOUCHE November 30, 2015 i CONTENTS Abstract 1 Index Terms 1 I Introduction 1 II Societal Problem 1 III Design Idea 1 Feature: Voice Communication . .2 III-A Feature: Voice Communication ........................................2 III-B Feature: Mobile GSM Network Connection ................................2 III-C Feature: Global Position System Tracking .................................2 III-D Feature: Parental Control Application ....................................3 III-E Feature: Electrocardiogram ..........................................3 III-F Feature: Panic Button .............................................3 III-G Feature: Compass ...............................................4 III-H Feature: Pedometer ..............................................4 III-I Feature: Wireless Network Usage ......................................4 IV Funding: “The Pitch” 5 V Planning for the Spring 2016 Semester 5 VI Work Breakdown Structure 6 VII Project Time Line 8 VIII Risk Assessment and Mitigation’s 8 IX Task’s Assigned 8 X User Manual 11 X-A Android Application . 11 X-B Wearable Device . 11 XI Design Documentation 11 XI-A Hardware . 11 XI-B Software . 11 XII Integration Plans 12 XIII Photographic Documentation 12 XIV Conclusion 13 Appendix 14 References 14 Glossary 15 Datasheet and Schematics 16 Resumes 109 ii LIST OF FIGURES 1 Work Breakdown Structure Diagram . .7 2 Application Overview . 11 3 Application Communication . 11 4 Application Miscellaneous . 11 5 GSM/GPRS/GPS . 12 6 Intel Edison Chip . 12 7 Intel Edison Board . 12 8 GSM/GPRS/GPS Working Prototype . 13 LIST OF TABLES I Work Breakdown Structure . .6 II Project Time Line . .8 III Zohaib’s Assignments . .9 IV Jashanjit’s Assignments . .9 V Leonardo’s Assignments .
    [Show full text]
  • New Ways of Learning OO Concepts Through Visualization &Animation
    Volume 6, No. 2, March-April 2015 International Journal of Advanced Research in Computer Science RESEARCH PAPER Available Online at www.ijarcs.info New Ways of Learning OO Concepts through Visualization &Animation Techniques for Novices Uma Sharma Computer Science Department Atma Ram Sanatan Dharm College, Delhi University, Delhi, India Abstract: Teaching fundamentals of object oriented programming at introductory level remains to be a serious pedagogical challenge. The fact remains that object oriented programming subsumes many of the constructs of structured programming in addition to its own special constructs and abstractions. Researchers abroad have made several studies on the first course in programming and have gathered data related to learning difficulties of novice vis-à-vis their dropout rate, including any gender biases etc. Animation of program execution can be used to help the student “put the pieces together”. Visualization is one approach to assisting the learner in finding out what task each piece can be expected to perform and how the pieces work together to perform the overall task of solving the problem at hand. The main purpose of this study has been to use the research findings to improve on the future offerings of the course in programming using “Object First" approach. In this paper, we try to find out different softwares which makes easier for novices to learn OO concepts through animation and visualisation techniques Key-words:visualization tools, Animation tools, OO conceots, object-first approach,challenges to OO approach of a learner and may undermine his/her enthusiasm to I. INTRODUCTION continue. Over the last two decades, researchers have developed Teaching fundamentals of object oriented programming and used several visualization tools to overcome the at introductory level remains to be a serious challenge.
    [Show full text]
  • Overview of Jgrasp and the Tutorials
    Overview (1.8.7) 9/2/2009 Overview of jGRASP and the Tutorials jGRASP is a lightweight integrated development environment (IDE), created specifically to provide visualizations for improving the comprehensibility of software. jGRASP is implemented in Java, and thus, runs on all platforms with a Java Virtual Machine. jGRASP supports Java, C, C++, Objective-C, Ada, and VHDL, and it comes configured to work with several popular compilers to provide “point and click” compile and run functions. jGRASP is the latest IDE from the GRASP (Graphical Representations of Algorithms, Structures, and Processes) research group at Auburn University. jGRASP currently provides for the automatic generation of three important software visualizations: (1) Control Structure Diagrams (Java, C, C++, Objective-C, Ada, and VHDL) for source code visualization, (2) UML Class Diagrams (Java) for architectural visualization, and (3) Dynamic Viewers (Java) which provide runtime views for primitives and objects including traditional data structures such as linked lists and binary trees. jGRASP also provides an innovative Object Workbench, Debugger, and Interactions which are tightly integrated with these visualizations. Each is briefly described below. The Control Structure Diagram (CSD) is an algorithmic level diagram generated for Ada, C, C++, Objective-C, Java and VHDL. The CSD is intended to improve the comprehensibility of source code by clearly depicting control constructs, control paths, and the overall structure of each program unit. The CSD, designed to fit into the space that is normally taken by indentation in source code, is an alternative to flow charts and other graphical representations of algorithms. The CSD is a natural extension to architectural diagrams such as UML class diagrams.
    [Show full text]
  • BS CS Co-Op Student Resume Sample SAM STUDENT
    RIT RESUME EXAMPLE BS CS Co-op Student Resume Sample Golisano College of Computing and Information Sciences Computer Science-BS /Co-op SAM STUDENT [email protected] http://github.com/XXX (585) 475-0000 www.linkedin.com/in/samstudent OBJECTIVE: To obtain a cooperative education position in the design, development, and testing of computing systems and software products. Available November – March XX. EDUCATION: Rochester Institute of Technology Rochester, NY Bachelor of Science in Computer Science Expected May 20XX GPA: 3.3 Courses: Data Structures & Problem Solving, Data Communications & Networking, Operating Systems, Concepts of Parallel & Distributed Systems, Programming Language Concepts, Software Engineering, Digital Design, Computer Organization SKILLS: Programming Languages: C++, C#, Java, HTML, Python, SQL, .NET Operating Systems: Unix/Linux, MS Windows, Mac OSX, iOS, Android Development Software: Microsoft Visual Studio, Rational Rose (UML Diagramming), Gnu Emacs Programmer’s Text Editor, Microsoft Visio, Eclipse, Django, Xcode Software: Access, NetBeans, MySQL Technologies: Boost, Version Control (Git, SVN), WPF, SQLite, OpenCV Other: Ability to handle many responsibilities and desire to learn necessary skills Work effectively and efficiently with co-workers Excellent oral and written communication skills PROJECTS: • Team Leader for a Java-based Bowling Simulator project including fully synchronized and persistent database; held meetings, designed a working product which met customer needs. • Requirements Coordinator on a team that developed a Java-based vending machine system simulator. The project included several swing graphical user interfaces and an XML storage system. Personal responsibilities included determining customer requirements and ensuring the product met customer needs. • Using Java, designed and implemented a graphical based, multi-threaded simulator for a heating system in a dynamic world.
    [Show full text]
  • Towards Left Duff S Mdbg Holt Winters Gai Incl Tax Drupal Fapi Icici
    jimportneoneo_clienterrorentitynotfoundrelatedtonoeneo_j_sdn neo_j_traversalcyperneo_jclientpy_neo_neo_jneo_jphpgraphesrelsjshelltraverserwritebatchtransactioneventhandlerbatchinsertereverymangraphenedbgraphdatabaseserviceneo_j_communityjconfigurationjserverstartnodenotintransactionexceptionrest_graphdbneographytransactionfailureexceptionrelationshipentityneo_j_ogmsdnwrappingneoserverbootstrappergraphrepositoryneo_j_graphdbnodeentityembeddedgraphdatabaseneo_jtemplate neo_j_spatialcypher_neo_jneo_j_cyphercypher_querynoe_jcypherneo_jrestclientpy_neoallshortestpathscypher_querieslinkuriousneoclipseexecutionresultbatch_importerwebadmingraphdatabasetimetreegraphawarerelatedtoviacypherqueryrecorelationshiptypespringrestgraphdatabaseflockdbneomodelneo_j_rbshortpathpersistable withindistancegraphdbneo_jneo_j_webadminmiddle_ground_betweenanormcypher materialised handaling hinted finds_nothingbulbsbulbflowrexprorexster cayleygremlintitandborient_dbaurelius tinkerpoptitan_cassandratitan_graph_dbtitan_graphorientdbtitan rexter enough_ram arangotinkerpop_gremlinpyorientlinkset arangodb_graphfoxxodocumentarangodborientjssails_orientdborientgraphexectedbaasbox spark_javarddrddsunpersist asigned aql fetchplanoriento bsonobjectpyspark_rddrddmatrixfactorizationmodelresultiterablemlibpushdownlineage transforamtionspark_rddpairrddreducebykeymappartitionstakeorderedrowmatrixpair_rddblockmanagerlinearregressionwithsgddstreamsencouter fieldtypes spark_dataframejavarddgroupbykeyorg_apache_spark_rddlabeledpointdatabricksaggregatebykeyjavasparkcontextsaveastextfilejavapairdstreamcombinebykeysparkcontext_textfilejavadstreammappartitionswithindexupdatestatebykeyreducebykeyandwindowrepartitioning
    [Show full text]