Lab 4: Introduction to Programming

Size: px
Start display at page:

Download "Lab 4: Introduction to Programming"

Transcription

1 _ Unit 2: Programming in C++, pages 1 of 9 Department of Computer and Mathematical Sciences CS 1410 Intro to Computer Science with C++ 4 Lab 4: Introduction to Programming Objectives: The main objective of this lab is to learn how to use Microsoft Visual Studio.NET to create VB.NET applications. To understand how to develop an algorithm To understand how to develop a flowchart from an algorithm To understand how to use Microsoft Visual Studio To understand how to create a C++ program using Visual C++ To understand how to run a C++ program Task 1: Terminology In this task, we will learn about a process of creating a computer program. What is a computer programming? A computer programming is a process of planning a sequence of instructions for a task or an event to be performed by a computer. What is a programming language? A programming language is a special language used to write computer programs such as C, C++, Java, C#, Visual Basic. A programming language consists of: Keywords (Reserved Words) -- Words with special meaning that make up a high-level programming language, cannot be used for any other purpose Operators -- Special symbols that perform various operations on data Variables -- Used to store data in memory, named by the programmer Syntax Set of rules Similar to the syntax (rules) of a spoken language, such as English, but must be strictly followed If even a single syntax error appears in a program, it will not compile or execute Statements -- Instructions made up of keywords, variables, and operators. Functions -- Set of programming statements that perform a specific task Comments (Remarks) Ignored when the program runs, help human reader understand the purpose of programming statements In C++, any statement that begins with // or begins with /* and ends with */ Methods of Programming Procedural Constructed as a set of procedures (operational, functional units) Each procedure is a set of instructions

2 Unit 2: Visual Basic.NET, pages 2 of 9 Object-Oriented Uses real-world objects such as students, transcripts, and courses Objects have data elements called attributes Objects also perform actions How do we write a program? There are different phases to write a program -- Programming Life Cycle Phases: Problem solving Analysis and Specification: Determine precise objective of the solution to the problem Design a solution (Algorithm): Develop a logical sequence of steps to solve the problem. Verification: Check whether the solution does solve the problem Implementation Coding (Program): Translate the design or algorithm into a programming language Documentation -- your written comments Compiler -- translates your program into machine language Main Program -- may call subalgorithms Testing: Have the computer follow the instruction in the program (Run the program) and check the results If it does not, then you must find out what is wrong with your program or algorithm and fix it--this is called debugging Maintenance Utilization: Use the program Maintain: Revise or modify the program according to changing requirements What is an algorithm? An algorithm is a step-by-step procedure for solving a problem with a finite amount of data in a finite amount of time. One way to represent an algorithm is to use a chart. The following is an algorithm chart to compute area of a circle. Algorithm Computing Area of a Circle Input a radius Compute area of the circle Output the area of the circle Algorithm Chart Start Input Radius Compute area of a circle Output area of the circle End

3 Lab 4: Getting Started in Visual Basic.NET, page 3 of 9 Activity 1.1: Source code of computing area of a circle looks as follows: Algorithm Chart Start Input Radius Compute area of a circle Output area of the circle End Algorithm Chart #include <iostream> /* This program computes area and perimeter of a circle for a given radius. */ using namespace std; int main() { const double Pi=3.14; int Radius; double Area; } //Input radius. cout<<"enter a radius > "; cin>>radius; //Compute area of circle. Area=Pi*Radius*Radius; //for a given radius. cout<<"\n The radius is "<<Radius; cout<<"\n The area of a circle is "<<Area; cin.get(); cin.get(); return 0; Activity 1.2: Download Circle source code from my webpage by following these steps: 1. Right-mouse click on the link Circle Source Code and select the command Save Target As 2. Save As window will appear. On the left side of the window, search for your USB drive. So, you can this file onto your USB drive. Then click on Save button. In Activity 1.3, you will learn how use Microsoft Visual Studio Integrated Development Environment (IDE) to access C++. Activity 1.3: Look for Visual Studio.NET icon on the desktop or All Programs command in the menu from the Start button. Then follow the following steps. There are two ways to start Visual Studio.NET 1) From the Visual Studio.NET icon, highlight the icon then press Enter key or double click on the icon. 2) From the All Programs command, click on Start button and then select All Programs command from the Start menu as shown in Figure 1. Then

4 Unit 2: Visual Basic.NET, pages 4 of 9 choose Microsoft Visual Studio.NET command in the Microsoft Visual Studio.NET command menu as shown in Figure 2. Figure 1: Menu from Start button Figure 2: All Programs After you started Visual Studio.NET, a Visual Studio.NET Start Page with a title Start Page Microsoft Visual Studio like in Figure 3a should appear on the screen. Under the Recent Projects section, as shown in Figure 3b, it will show a list of existing projects and the date that the project was last modified. Usually the first time you start Visual Studio.NET, the Recent Projects section should be empty. To start a new C++ project, click on Project in the Create: line in the Recent Projects section in MS Visual Studio Start Page. But if you want to open an existing project, click on Project in the Open: line. Figure 3a: Visual Studio.NET Start Page Figure 3b: Recent Projects Section Activity 1.4: In this activity, you will learn how to use the Visual C++ Integrated Development environment (IDE) to create and save a C++ program. You will call your C++ project as Lab4. Click on Project link under Create: in Recent Projects window as in Figure 3b in MS Visual Studio.NET Start Page, a New Project dialog window will appear as shown in Figure 4. Then follow these steps: Figure 4: New Project dialog window

5 Lab 4: Getting Started in Visual Basic.NET, page 5 of 9 1. Click on + icon at Other Languages to expand the list of other languages. 2. Click on + icon at Visual C++ to expand the list of choices. 3. Click on General template from the list of Visual C++ and select Empty Project template Figure 5: New Project dialog window with Empty Project Selected 4. Name your project in the Name: text box You should see the default appears in the Name: textbox. Replace it with C++Project by typing over it. 5. Browse to location that you want to save your project by clicking Browse button. You should see the default location in the Location: drop-down menu. Make sure the location that you choose is your USB drive. 6. To complete creating C++Project project, just click OK button. After OK button in Step 6 is clicked, Visual C++ IDE window titled: C++Project Microsoft Visual Studio as shown in Figure 6 will appear and you are ready to create a C++ program. Figure 6: Visual Basic.NET environment window 7. Select Add Existing Item from the Project menu to add Circle.cpp file as shown in the figure below.

6 Unit 2: Visual Basic.NET, pages 6 of 9 8. An Add Existing Item window will appear as shown in Figure 7. Look for Circle.cpp file and select the file to add to the project. 9. Click Add button to save to add the file in Step 8. The icon Circle.cpp source file will appear in Solution Explorer window as shown Figure 8. Figure 7: Add Existing Item Window Figure 8: Lab4Tsk3 source file workspace 10. Double click on the icon to open the source file. The source file tab titled Circle.cpp including the source code will appear as shown below. Activity 1.5: Run the program by either pressing F5 or clicking on the green arrow icon should the console window as shown below. Try several values.. You

7 Lab 4: Getting Started in Visual Basic.NET, page 7 of 9 Task 2: Process of Creating a New Program Suppose we are given the following problem to solve: Write a program to find the sum and the product of two numbers. The program should ask for two numbers, compute the sum and the product. Then output the sum and the product of the two numbers. Activity 2.1: The following is a step by step of an algorithm to solve the above problem: 1. Input two numbers. 2. Compute the sum of the two numbers. 3. Compute the product of the two numbers 4. Output the sum and the product. Activity 2.2: Create an algorithm chart for the algorithm in Activity2.1. Activity 2.3: Convert the chart of the algorithm in Activity 2.1 to C++ code. This code will be used in the next task. Task 3: Add new source code to the existing project In this task, you will learn how to add a source code to the source file that you created in the previous task. Activity 3.1: You will use the same project C++Project that was created in Task 1 and follow the steps below: 1. Delete existing source files in the Source Files folder as shown below. In this case, you might have Circle.cpp file in the Source Files folder. Select the file to be deleted and press delete key from the keyboard. 2. Select Add New Item from the Project menu as shown in the figure below.

8 Unit 2: Visual Basic.NET, pages 8 of 9 3. Add New Item Lab4 window will appear as shown below. Select C++ File (.cpp) icon to create a source file. Then type Lab4Task3 in the Name: textbox. This will create a source file called Lab4Task3.cpp. Note that all C++ source files have cpp extension. The Location: should be the location of C++Project project. That means there is nothing to change. 4. Click Add button to save to create the file in Step 3. The source file workspace for Lab4Task3.cpp will appear as shown below. Activity 3.2: Type the following source code that you obtained from Activity 2.3 to the workspace exactly how it looks. #include <iostream> using namespace std; /* This program computes the sum and product of two integers. Program name: TaskThree */ int main(void) { int Number1, Number2, Sum, Product; // Input prompt for two numbers cout<<"enter two integers separate by a space--> "; cin>>number1>>number2; // Compute sum of two numbers Sum = Number1 + Number2; // Compute product of two numbers Product = Number1 * Number2; // Output sum and product cout<<"the sum is "<<Sum<<'\n'; cout<<"the product is "<<Product; cin.get( ); cin.get( ); return 0; }

9 Lab 4: Getting Started in Visual Basic.NET, page 9 of 9 Activity 3.3: In order to check if you source code in Activity 3.2 or program is correct, you will compile and run the program. Following these steps: 1) Select Build C++Project command from Build Menu. When it finishes building you should see the message how the program is built in Output window located at the bottom of the screen. 2) Open C++Project folder using Window Explorer. You will see a Debug folder was created. 3) Run the program by pressing F5 key on the keyboard. This will run or debug the program that you created in Activity 3.2. A DOS console window will appear and display output as instructed in the code. To close the window, just press Enter key twice. 4) Test the program by try to enter different numbers.

Departme and. Computer. CS Intro to. Science with. Objectives: The main. for a problem. of Programming. Syntax Set of rules Similar to.

Departme and. Computer. CS Intro to. Science with. Objectives: The main. for a problem. of Programming. Syntax Set of rules Similar to. _ Unit 2: Visual Basic.NET, pages 1 of 13 Departme ent of Computer and Mathematical Sciences CS 1408 Intro to Computer Science with Visual Basic.NET 4 Lab 4: Getting Started with Visual Basic.NET Programming

More information

Getting Started with Visual Studio

Getting Started with Visual Studio Getting Started with Visual Studio Visual Studio is a sophisticated but easy to use integrated development environment (IDE) for C++ (and may other languages!) You will see that this environment recognizes

More information

MS Visual Studio.Net 2008 Tutorial

MS Visual Studio.Net 2008 Tutorial 1. Start Visual Studio as follows: MS Visual Studio.Net 2008 Tutorial 2. Once you have started Visual Studio you should see a screen similar to the following image: 3. Click the menu item File New Project...

More information

Lab 10: Alternate Controls

Lab 10: Alternate Controls _ Unit 2: Programming in C++, pages 1 of 8 Department of Computer and Mathematical Sciences CS 1410 Intro to Computer Science with C++ 9 Objectives: Lab 10: Alternate Controls The objective of this lab

More information

TREX Set-Up Guide: Creating a TREX Executable File for Windows

TREX Set-Up Guide: Creating a TREX Executable File for Windows TREX Set-Up Guide: Creating a TREX Executable File for Windows Prepared By: HDR 1 International Boulevard, 10 th Floor, Suite 1000 Mahwah, NJ 07495 May 13, 2013 Creating a TREX Executable File for Windows

More information

Welcome Application. Introduction to C++ Programming (Solutions) 2004 by Deitel & Associates, Inc. All Rights Reserved.

Welcome Application. Introduction to C++ Programming (Solutions) 2004 by Deitel & Associates, Inc. All Rights Reserved. T U T O R I A L 2 Welcome Application Introduction to C++ Programming (Solutions) 1 2 Introduction to C++ Programming (Solutions) Tutorial 2 These solutions will not be available to students. Instructor

More information

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Introduction. Key features and lab exercises to familiarize new users to the Visual environment Introduction Key features and lab exercises to familiarize new users to the Visual environment January 1999 CONTENTS KEY FEATURES... 3 Statement Completion Options 3 Auto List Members 3 Auto Type Info

More information

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010 CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010 The process of creating a project with Microsoft Visual Studio 2010.Net is similar to the process in Visual

More information

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Using Eclipse for Java. Using Eclipse for Java 1 / 1 Using Eclipse for Java Using Eclipse for Java 1 / 1 Using Eclipse IDE for Java Development Download the latest version of Eclipse (Eclipse for Java Developers or the Standard version) from the website:

More information

Appendix M: Introduction to Microsoft Visual C Express Edition

Appendix M: Introduction to Microsoft Visual C Express Edition Appendix M: Introduction to Microsoft Visual C++ 2005 Express Edition This book may be ordered from Addison-Wesley in a value pack that includes Microsoft Visual C++ 2005 Express Edition. Visual C++ 2005

More information

IDE: Integrated Development Environment

IDE: Integrated Development Environment Name: Student ID: Lab Instructor: Borja Sotomayor Do not write in this area 1 2 3 TOTAL Maximum possible points: 30 One of the goals of this lab is to introduce the Eclipse IDE, a software environment

More information

JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN. ModelSim Tutorial. Prepared by: Phil Beck 9/8/2008. Voter Function

JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN. ModelSim Tutorial. Prepared by: Phil Beck 9/8/2008. Voter Function JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN ModelSim Tutorial Prepared by: Phil Beck 9/8/2008 Vote 1 Vote 2 Voter Function Pass Vote 3 Pass is only a 1 when two or more of the Vote inputs

More information

Creating a new CDC policy using the Database Administration Console

Creating a new CDC policy using the Database Administration Console Creating a new CDC policy using the Database Administration Console When you start Progress Developer Studio for OpenEdge for the first time, you need to specify a workspace location. A workspace is a

More information

Department of Computer and Mathematical Sciences. Lab 10: Functions. CS 1410 Intro to Computer Science with C++

Department of Computer and Mathematical Sciences. Lab 10: Functions. CS 1410 Intro to Computer Science with C++ _ Unit 2: Programming in C++, pages 1 of 8 Department of Computer and Mathematical Sciences CS 1410 Intro to Computer Science with C++ 10 Lab 10: Functions Objectives: The objective of this lab is to understand

More information

VARIABLES & ASSIGNMENTS

VARIABLES & ASSIGNMENTS Fall 2018 CS150 - Intro to CS I 1 VARIABLES & ASSIGNMENTS Sections 2.1, 2.2, 2.3, 2.4 Fall 2018 CS150 - Intro to CS I 2 Variables Named storage location for holding data named piece of memory You need

More information

int n = 10; int sum = 10; while (n > 1) { sum = sum + n; n--; } cout << "The sum of the integers 1 to 10 is " << sum << endl;

int n = 10; int sum = 10; while (n > 1) { sum = sum + n; n--; } cout << The sum of the integers 1 to 10 is  << sum << endl; Debugging Some have said that any monkey can write a program the hard part is debugging it. While this is somewhat oversimplifying the difficult process of writing a program, it is sometimes more time

More information

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003 CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003 The process of creating a project with Microsoft Visual Studio 2003.Net is to some extend similar to the process

More information

clicking on the on the New

clicking on the on the New ECCS 1611 Programming 1 Dr. Estell Lab 1 Introduction to C++ Programming using Visual Studio 2010 Today s lab is meant as an introduction, both to the development system that you will be using this semester

More information

Installing and Using Dev-C++

Installing and Using Dev-C++ Installing and Using Dev-C++ 1. Installing Dev-C++ Orwell Dev-C++ is a professional C++ IDE, but not as big and complex as Visual Studio. It runs only on Windows; both Windows 7 and Windows 8 are supported.

More information

Click on the Start Icon. Click on All Programs

Click on the Start Icon. Click on All Programs Click on the Start Icon Click on All Programs Scroll down to a point where the Microsoft Visual Studio 2013 folder appears. Click on the Microsoft Visual Studio 2013 folder. Click on Visual Studio 2013

More information

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005 CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005 The process of creating a project with Microsoft Visual Studio 2005.Net is similar to the process in Visual

More information

CMPE110 - EXPERIMENT 1 * MICROSOFT VISUAL STUDIO AND C++ PROGRAMMING

CMPE110 - EXPERIMENT 1 * MICROSOFT VISUAL STUDIO AND C++ PROGRAMMING CMPE110 - EXPERIMENT 1 * MICROSOFT VISUAL STUDIO AND C++ PROGRAMMING Aims 1. Learning primary functions of Microsoft Visual Studio 2008 * 2. Introduction to C++ Programming 3. Running C++ programs using

More information

Visual C++ Tutorial. For Introduction to Programming with C++ By Y. Daniel Liang

Visual C++ Tutorial. For Introduction to Programming with C++ By Y. Daniel Liang 1 Introduction Visual C++ Tutorial For Introduction to Programming with C++ By Y. Daniel Liang Visual C++ is a component of Microsoft Visual Studio 2012 for developing C++ programs. A free version named

More information

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline 2 T U T O R I A L Objectives In this tutorial, you will learn to: Navigate Visual Studio.NET s Start Page. Create a Visual Basic.NET solution. Use the IDE s menus and toolbars. Manipulate windows in the

More information

Windows 2000 Safe Mode

Windows 2000 Safe Mode LAB PROCEDURE 29 Windows 2000 Safe Mode OBJECTIVES 1. Restart and try various startup options. RESOURCES Troubleshooting 1. Marcraft 8000 Trainer with Windows 2000 installed 2. A PS2 mouse 3. A LAN connection

More information

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs Linux Tutorial #1 Introduction The Linux operating system is now over 20 years old, and is widely used in industry and universities because it is fast, flexible and free. Because Linux is open source,

More information

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE 1 Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE Outline 2.1 Test-Driving the Welcome Application 2.2 Overview of the Visual Studio.NET 2003 IDE 2.3 Creating a Project for the

More information

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking) Lab 1: Introduction to C Programming (Creating a program using the Microsoft developer Studio, Compiling and Linking) Learning Objectives 0. To become familiar with Microsoft Visual C++ 6.0 environment

More information

Code Composer Studio. MSP Project Setup

Code Composer Studio. MSP Project Setup Code Composer Studio MSP Project Setup Complete the installation of the Code Composer Studio software using the Code Composer Studio setup slides Start Code Composer Studio desktop shortcut start menu

More information

Intro to Programming & C Why Program? 1.2 Computer Systems: Hardware and Software. Why Learn to Program?

Intro to Programming & C Why Program? 1.2 Computer Systems: Hardware and Software. Why Learn to Program? Intro to Programming & C++ Unit 1 Sections 1.1-4 and 2.1-10, 2.12-13, 2.15-17 CS 1428 Spring 2019 Jill Seaman 1.1 Why Program? Computer programmable machine designed to follow instructions Program a set

More information

Engr 123 Spring 2018 Notes on Visual Studio

Engr 123 Spring 2018 Notes on Visual Studio Engr 123 Spring 2018 Notes on Visual Studio We will be using Microsoft Visual Studio 2017 for all of the programming assignments in this class. Visual Studio is available on the campus network. For your

More information

Lab01: C++ Expressions ES036a: Programming Fundamentals Fall 2007

Lab01: C++ Expressions ES036a: Programming Fundamentals Fall 2007 Lab01: C++ Expressions ES036a: Programming undamentals all 2007 A. Rationale and Background Welcome to ES036b Lab01. In Lab00 we learned how to create a solution and then a project within this solution

More information

WRITING CONSOLE APPLICATIONS IN C

WRITING CONSOLE APPLICATIONS IN C WRITING CONSOLE APPLICATIONS IN C with Visual Studio 2017 A brief step-by-step primer for ME30 Bryan Burlingame, San José State University The Visual Studio 2017 Community Edition is a free integrated

More information

INFORMATICS LABORATORY WORK #2

INFORMATICS LABORATORY WORK #2 KHARKIV NATIONAL UNIVERSITY OF RADIO ELECTRONICS INFORMATICS LABORATORY WORK #2 SIMPLE C# PROGRAMS Associate Professor A.S. Eremenko, Associate Professor A.V. Persikov 2 Simple C# programs Objective: writing

More information

Security Coding Module - Buffer Overflow Data Gone Wild CS1

Security Coding Module - Buffer Overflow Data Gone Wild CS1 Security Coding Module - Buffer Overflow Data Gone Wild CS1 Background Summary: Buffer overflow occurs when data is input or written beyond the allocated bounds of an buffer, array, or other object causing

More information

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete CIS 231 Windows 2008 Server Install Lab #1 (Virtual Machines) Keys to Remember when using the vsphere client. Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins

More information

Using Templates. 5.4 Using Templates

Using Templates. 5.4 Using Templates 5.4 Using Templates Templates are used to create master files for control panel programming data to speed up programming of a new account. A template gives you a very quick and easy way to add a customer

More information

Getting Started. with SoftWIRE

Getting Started. with SoftWIRE Getting Started with SoftWIRE for Visual Studio.NET Document Revision 1, September, 2005 Copyright 2005, SoftWIRE Technology Table of Contents About SoftWIRE and this Getting Started Guide... 1 Introducing

More information

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below. CS520 Setting Up the Programming Environment for Windows Suresh Kalathur 1. Java8 SDK Java8 SDK (Windows Users) For Windows users, download the Java8 SDK as shown below. The Java Development Kit (JDK)

More information

F28069 ControlCard Lab1

F28069 ControlCard Lab1 F28069 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f28069\v135

More information

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 1 Introduction to Programming and Visual Basic Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 1.1 COMPUTER SYSTEMS: HARDWARE AND SOFTWARE Computer systems

More information

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java) Goals - to learn how to compile and execute a Java program - to modify a program to enhance it Overview This activity will introduce you to the Java programming language. You will type in the Java program

More information

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2) Skill Area 336 Explain Essential Programming Concept Programming Language 2 (PL2) 336.1-Examine Basic Language Environment 336.1.1 Describe the basic operating environment of the language 336.1.2 Define

More information

Lab: Supplying Inputs to Programs

Lab: Supplying Inputs to Programs Steven Zeil May 25, 2013 Contents 1 Running the Program 2 2 Supplying Standard Input 4 3 Command Line Parameters 4 1 In this lab, we will look at some of the different ways that basic I/O information can

More information

Superior University. Department of Electrical Engineering CS-115. Computing Fundamentals. Experiment No.1

Superior University. Department of Electrical Engineering CS-115. Computing Fundamentals. Experiment No.1 Superior University Department of Electrical Engineering CS-115 Computing Fundamentals Experiment No.1 Introduction of Compiler, Comments, Program Structure, Input Output, Data Types and Arithmetic Operators

More information

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET Chapter. 03 9/17/01 6:08 PM Page 35 Visual Studio.NET T H R E E Although it is possible to program.net using only the command line compiler, it is much easier and more enjoyable to use Visual Studio.NET.

More information

F28335 ControlCard Lab1

F28335 ControlCard Lab1 F28335 ControlCard Lab1 Toggle LED LD2 (GPIO31) and LD3 (GPIO34) 1. Project Dependencies The project expects the following support files: Support files of controlsuite installed in: C:\TI\controlSUITE\device_support\f2833x\v132

More information

Chapter 1 - What s in a program?

Chapter 1 - What s in a program? Chapter 1 - What s in a program? I. Student Learning Outcomes (SLOs) a. You should be able to use Input-Process-Output charts to define basic processes in a programming module. b. You should be able to

More information

Lab 1: First Steps in C++ - Eclipse

Lab 1: First Steps in C++ - Eclipse Lab 1: First Steps in C++ - Eclipse Step Zero: Select workspace 1. Upon launching eclipse, we are ask to chose a workspace: 2. We select a new workspace directory (e.g., C:\Courses ): 3. We accept the

More information

Computer Programming : C++

Computer Programming : C++ The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2003 Muath i.alnabris Computer Programming : C++ Experiment #1 Basics Contents Structure of a program

More information

Developing Intelligent Apps

Developing Intelligent Apps Developing Intelligent Apps Lab 1 Creating a Simple Client Application By Gerry O'Brien Overview In this lab you will construct a simple client application that will call an Azure ML web service that you

More information

University of Technology. Laser & Optoelectronics Engineering Department. C++ Lab.

University of Technology. Laser & Optoelectronics Engineering Department. C++ Lab. University of Technology Laser & Optoelectronics Engineering Department C++ Lab. Fifth week Control Structures A program is usually not limited to a linear sequence of instructions. During its process

More information

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET VB.NET Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and

More information

Toolkit Activity Installation and Registration

Toolkit Activity Installation and Registration Toolkit Activity Installation and Registration Installing the Toolkit activity on the Workflow Server Install the Qfiche Toolkit workflow activity by running the appropriate SETUP.EXE and stepping through

More information

CS 241 Computer Programming. Introduction. Teacher Assistant. Hadeel Al-Ateeq

CS 241 Computer Programming. Introduction. Teacher Assistant. Hadeel Al-Ateeq CS 241 Computer Programming Introduction Teacher Assistant Hadeel Al-Ateeq 1 2 Course URL: http://241cs.wordpress.com/ Hadeel Al-Ateeq 3 Textbook HOW TO PROGRAM BY C++ DEITEL AND DEITEL, Seventh edition.

More information

Carleton University Department of Systems and Computer Engineering SYSC Foundations of Imperative Programming - Winter 2012

Carleton University Department of Systems and Computer Engineering SYSC Foundations of Imperative Programming - Winter 2012 Carleton University Department of Systems and Computer Engineering SYSC 2006 - Foundations of Imperative Programming - Winter 2012 Lab 1 - Introduction to Pelles C Objective To become familiar with the

More information

Introduction to Computation and Problem Solving

Introduction to Computation and Problem Solving Class 3: The Eclipse IDE Introduction to Computation and Problem Solving Prof. Steven R. Lerman and Dr. V. Judson Harward What is an IDE? An integrated development environment (IDE) is an environment in

More information

1) Log on to the computer using your PU net ID and password.

1) Log on to the computer using your PU net ID and password. CS 150 Lab Logging on: 1) Log on to the computer using your PU net ID and password. Connecting to Winter: Winter is the computer science server where all your work will be stored. Remember, after you log

More information

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components Week 0: Intro to Computers and Programming Gaddis: Sections 1.1-3 and 2.1 CS 1428 Fall 2014 Jill Seaman 1.1 Why Program? Computer programmable machine designed to follow instructions Program instructions

More information

Since you can designate as many symbols as needed as baseline symbols it s possible to show multiple baselines with unique symbology.

Since you can designate as many symbols as needed as baseline symbols it s possible to show multiple baselines with unique symbology. In this lesson you will learn how to: Tutorials Lesson 17 - Work with a Baseline Set up the symbols and bars used to display a baseline using the Baseline Setup Wizard. Insert a baseline. Highlight, lock

More information

Firewalls can prevent access to the Unix Servers. Please make sure any firewall software or hardware allows access through Port 22.

Firewalls can prevent access to the Unix Servers. Please make sure any firewall software or hardware allows access through Port 22. EINSTEIN OVERVIEW Einstein (Einstein.franklin.edu) and Codd (codd.franklin.edu) are two servers that are used for many Computer Science (COMP) courses. Students will be directed to use either Einstein

More information

Overview. - General Data Types - Categories of Words. - Define Before Use. - The Three S s. - End of Statement - My First Program

Overview. - General Data Types - Categories of Words. - Define Before Use. - The Three S s. - End of Statement - My First Program Overview - General Data Types - Categories of Words - The Three S s - Define Before Use - End of Statement - My First Program a description of data, defining a set of valid values and operations List of

More information

TEST 1 CS 1410 Intro. To Computer Science Name KEY. October 13, 2010 Fall 2010

TEST 1 CS 1410 Intro. To Computer Science Name KEY. October 13, 2010 Fall 2010 TEST 1 CS 1410 Intro. To Computer Science Name KEY October 13, 2010 Fall 2010 Part I: Circle one answer only. (2 points each) 1. The decimal representation of binary number 11011 2 is a) 19 10 b) 29 10

More information

Visual Basic Course Pack

Visual Basic Course Pack Santa Monica College Computer Science 3 Visual Basic Course Pack Introduction VB.NET, short for Visual Basic.NET is a language that was first introduced by Microsoft in 1987. It has gone through many changes

More information

Fairfield University Using Xythos for File Storage

Fairfield University Using Xythos for File Storage Fairfield University Using Xythos for File Storage Version 7.0 Table of Contents I: Accessing your Account...2 II: Uploading Files via the Web...2 III: Manage your Folders and Files via the Web...4 IV:

More information

Eclipse Setup. Opening Eclipse. Setting Up Eclipse for CS15

Eclipse Setup. Opening Eclipse. Setting Up Eclipse for CS15 Opening Eclipse Eclipse Setup Type eclipse.photon & into your terminal. (Don t open eclipse through a GUI - it may open a different version.) You will be asked where you want your workspace directory by

More information

Command-line interface DOS Graphical User interface (GUI) -- Windows

Command-line interface DOS Graphical User interface (GUI) -- Windows Introduction To Computer Programming g Outline Operating System Computer Programming Programming Life-Cycle Phases Creating an Algorithm Machine Language vs. High Level Languages Compilation and Execution

More information

SMART Notebook Quick Reference Guide. Created by Veronica Garcia

SMART Notebook Quick Reference Guide. Created by Veronica Garcia SMART Notebook Quick Reference Guide Created by Veronica Garcia Grouping To group objects, you must have all of the objects you want to group together already on the SMART Notebook page. Grouping can be

More information

CS 150 Lab 3 Arithmetic and the Debugger. Lab 3.0 We are going to begin using the Visual Studio 2017 debugger to aid with debugging programs.

CS 150 Lab 3 Arithmetic and the Debugger. Lab 3.0 We are going to begin using the Visual Studio 2017 debugger to aid with debugging programs. CS 150 Lab 3 Arithmetic and the Debugger The main objective of today s lab is to use some basic mathematics to solve a few real world problems. In doing so, you are to begin getting accustomed to using

More information

CaliberRM 5.1 Integration for Describe Enterprise

CaliberRM 5.1 Integration for Describe Enterprise CaliberRM 5.1 Integration for Describe Enterprise Describe Enterprise integration is now available from within the Borland CaliberRM 5.1 software suite. This document describes how to set up and configure

More information

Computer Essentials Session 1 Lesson Plan

Computer Essentials Session 1 Lesson Plan Note: Completing the Mouse Tutorial and Mousercise exercise which are available on the Class Resources webpage constitutes the first part of this lesson. ABOUT PROGRAMS AND OPERATING SYSTEMS Any time a

More information

2.8. Decision Making: Equality and Relational Operators

2.8. Decision Making: Equality and Relational Operators Page 1 of 6 [Page 56] 2.8. Decision Making: Equality and Relational Operators A condition is an expression that can be either true or false. This section introduces a simple version of Java's if statement

More information

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols.

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols. Chapter 7 Highlights 7.1 The Use of Formulas and Functions 7.2 Creating Charts 7.3 Using Chart Toolbar 7.4 Changing Source Data of a Chart Separate Text Across Cells The Convert Text to Columns Wizard

More information

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio ECE2049 Embedded Computing in Engineering Design Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab, you will be introduced to the Code Composer Studio

More information

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1 COMP 210: Object-Oriented Programming Lecture Notes 1 Java Program Structure and Eclipse Robert Utterback In these notes we talk about the basic structure of Java-based OOP programs and how to setup and

More information

Tint Tek 20/20 Cloud Software Installation Guide

Tint Tek 20/20 Cloud Software Installation Guide Tint Tek 20/20 Cloud Software Installation Guide Page 1 of 9 Software Installation In your inbox, you will have received an email from us (it may show up in your junk mail). (Figure 1) This email contains

More information

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide TRAINING GUIDE FOR OPC SYSTEMS.NET Simple steps to successful development and deployment. Step by Step Guide SOFTWARE DEVELOPMENT TRAINING OPC Systems.NET Training Guide Open Automation Software Evergreen,

More information

UEE1302 (1102) F10: Introduction to Computers and Programming

UEE1302 (1102) F10: Introduction to Computers and Programming Computational Intelligence on Automation Lab @ NCTU Learning Objectives UEE1302 (1102) F10: Introduction to Computers and Programming Programming Lecture 00 Programming by Example Introduction to C++ Origins,

More information

WELCOME TO KIN (KIRKWOOD INFORMATION NETWORK) Initial steps to set up KIN on your computer.

WELCOME TO KIN (KIRKWOOD INFORMATION NETWORK) Initial steps to set up KIN on your computer. WELCOME TO KIN (KIRKWOOD INFORMATION NETWORK) Initial steps to set up KIN on your computer. After launching KIN, there are 4 steps that must be done on your computer to allow single sign on. Add KIN website

More information

Computer Programming-1 CSC 111. Chapter 1 : Introduction

Computer Programming-1 CSC 111. Chapter 1 : Introduction Computer Programming-1 CSC 111 Chapter 1 : Introduction Chapter Outline What a computer is What a computer program is The Programmer s Algorithm How a program that you write in Java is changed into a form

More information

This manual will explain how to do a mail merge in Cordell Connect, using the following Windows programs:

This manual will explain how to do a mail merge in Cordell Connect, using the following Windows programs: Section 10 Mail Merge Cordell Connect has very a useful mail merge function for letters and mailing labels. Mail merges can be performed using project, company or contact information. The data source for

More information

How to set up an Amazon Work Profile for Windows 8

How to set up an Amazon Work Profile for Windows 8 How to set up an Amazon Work Profile for Windows 8 Setting up a new profile for Windows 8 requires you to navigate some screens that may lead you to create the wrong type of account. By following this

More information

Creating Projects using Microsoft Visual Studio 2017

Creating Projects using Microsoft Visual Studio 2017 Creating Projects using Microsoft Visual Studio 2017 CTEC1239/2018S Computer Programming Version 1.0: Covers Windows 10 PCs in L2 Last updated: 2018.05.12 Starting Visual Studio 2017 From the Windows 10

More information

Variables and Constants

Variables and Constants 87 Chapter 5 Variables and Constants 5.1 Storing Information in the Computer 5.2 Declaring Variables 5.3 Inputting Character Strings 5.4 Mistakes in Programs 5.5 Inputting Numbers 5.6 Inputting Real Numbers

More information

Lab #1: A Quick Introduction to the Eclipse IDE

Lab #1: A Quick Introduction to the Eclipse IDE Lab #1: A Quick Introduction to the Eclipse IDE Eclipse is an integrated development environment (IDE) for Java programming. Actually, it is capable of much more than just compiling Java programs but that

More information

KIN 147 Lab Practical Mid-term: Tibial Acceleration Data Analysis Excel analyses work much better on PCs than on Macs (especially older Macs)

KIN 147 Lab Practical Mid-term: Tibial Acceleration Data Analysis Excel analyses work much better on PCs than on Macs (especially older Macs) KIN 147 Lab Practical Mid-term: Tibial Acceleration Data Analysis Excel analyses work much better on PCs than on Macs (especially older Macs) Your goal is to correctly analyze accelerometer data Analyzing

More information

Eclipse Environment Setup

Eclipse Environment Setup Eclipse Environment Setup Adapted from a document from Jeffrey Miller and the CS201 team by Shiyuan Sheng. Introduction This lab document will go over the steps to install and set up Eclipse, which is

More information

Additional Network Workstation Windows XP Installation Guide

Additional Network Workstation Windows XP Installation Guide Additional Network Workstation Windows XP Installation Guide 1 Table of Contents I. Verify Hardware and Optimize Work Station 3 II. Download Software 10 III. Install Software 13 2 I. Verify Hardware and

More information

The sequence of steps to be performed in order to solve a problem by the computer is known as an algorithm.

The sequence of steps to be performed in order to solve a problem by the computer is known as an algorithm. CHAPTER 1&2 OBJECTIVES After completing this chapter, you will be able to: Understand the basics and Advantages of an algorithm. Analysis various algorithms. Understand a flowchart. Steps involved in designing

More information

Lab 9: Creating a Reusable Class

Lab 9: Creating a Reusable Class Lab 9: Creating a Reusable Class Objective This will introduce the student to creating custom, reusable classes This will introduce the student to using the custom, reusable class This will reinforce programming

More information

Express Yourself. What is Eclipse?

Express Yourself. What is Eclipse? CS 170 Java Programming 1 Eclipse and the for Loop A Professional Integrated Development Environment Introducing Iteration Express Yourself Use OpenOffice or Word to create a new document Save the file

More information

Instruction: Download and Install R and RStudio

Instruction: Download and Install R and RStudio 1 Instruction: Download and Install R and RStudio We will use a free statistical package R, and a free version of RStudio. Please refer to the following two steps to download both R and RStudio on your

More information

As CCS starts up, a splash screen similar to one shown below will appear.

As CCS starts up, a splash screen similar to one shown below will appear. APPENDIX A. CODE COMPOSER STUDIO (CCS) v5.1: A BRIEF TUTORIAL FOR THE OMAP-L138 A.1 Introduction Code Composer Studio (CCS) is Texas Instruments integrated development environment (IDE) for developing

More information

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment Getting Started Guide Version 1.1 BoxView IDE Integrated Development Environment Table of Contents INTRODUCTION...3 System Requirements...3 INSTALLATION...4 License Server...4 Registration...5 Node Locked

More information

SCHEMATIC DESIGN IN QUARTUS

SCHEMATIC DESIGN IN QUARTUS SCHEMATIC DESIGN IN QUARTUS Consider the design of a three-bit prime number detector. Figure 1 shows the block diagram and truth table. The inputs are binary signals A, B, and C while the output is binary

More information

Dive Into Visual C# 2008 Express

Dive Into Visual C# 2008 Express 1 2 2 Dive Into Visual C# 2008 Express OBJECTIVES In this chapter you will learn: The basics of the Visual Studio Integrated Development Environment (IDE) that assists you in writing, running and debugging

More information

REVIEW. The C++ Programming Language. CS 151 Review #2

REVIEW. The C++ Programming Language. CS 151 Review #2 REVIEW The C++ Programming Language Computer programming courses generally concentrate on program design that can be applied to any number of programming languages on the market. It is imperative, however,

More information

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information Laboratory 2: Programming Basics and Variables Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information 3. Comment: a. name your program with extension.c b. use o option to specify

More information

1 Introduction. ThinPrint Client Installation Page 1

1 Introduction. ThinPrint Client Installation Page 1 ThinPrint Client Installation Page 1 1 Introduction In order to reduce the amount of bandwidth used when printing and to improve the overall performance and online experience for the customers that we

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 1 An Introduction to Visual Basic 2005 Objectives After studying this chapter, you should be able to: Explain the history of programming languages

More information