# LAB 1 REPRESENTATION OF NUMBERS AND INTRODUCTION TO C

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 LAB 1 REPRESENTATION OF NUMBERS AND INTRODUCTION TO C 1. LAB OBJECTIVE The objective of this lab is to review binary numbers and to review/introduce you to the C programming language and the MATLAB environment. Specifically, you will learn: How to use the Visual C++ editor in Microsoft Developer Studio for writing C programs How to compile and execute C programs in Developer Studio Basic C syntax The use of for loops The use of arrays Hexadecimal and binary number systems Plotting data in MATLAB 2. BACKGROUND 2.1. C Language Basics C will be used extensively throughout this class, and the first two weeks will be devoted specifically to the C language. Several good books on C are available and can be used to review the basic syntax of C as well as to study example programs: Brian W Kernighan, Dennis M Ritchie, The C Programming Language, Prentice Hall. Byron S Gottfried, Schaum s Outline of Theory and Problems of Programming in C, (Schaum s outline series), McGraw Hill. In addition, the course web site includes a tutorial on C. For Lab1, the following aspects of C will be emphasized: Declaring variables (integer, floating point, character) Basic math operations (+, -, *, /) Scanf and printf statements Loops ( for, while ) Arrays 2.2. Unary operators (++, --) The unary operators ++ and -- are shorthand notation for incrementing and decrementing variables.

2 (i++) is equivalent to i=i+1 (i--) is equivalent to i=i-1 The unary operators ++ and -- can appear either before or after a variable. The order can make a difference, for example: but notice that i = 1; a = i++; /* results in a = 1; i = 2 */ i = 1; a = ++i; /* results in a = 2; i = 2; */ Write a test program to try it yourself if you don t believe it. Writing test programs is often the most effective way of learning the subtleties of C syntax = operator a += b; is equivalent to a = a + b; Similarly, we can use -=, *= and /= operators Number Systems Computers and programs that use real-time data acquisition systems deal with binary numbers (1s and 0s, i.e. ON/OFF states), hence, we need to know how to represent numbers in binary (base-2) numbering systems. Instead of dealing directly with binary numbers, though, it is often more convenient to use hexadecimal (base-16) numbers. For example, we will use hexadecimal (hex) numbers when we address input/output (I/O) ports on the Sensoray card for reading and writing electrical signals in this course. The following sections outline procedures for converting from decimals to hex and for representing negative numbers in hex Converting Decimal Integers to Two s Complement Hexadecimal Integers Consider the following examples. Example 1: Convert the decimal number to hexadecimal.

3 Solution: Form the following table: Quotient Integer part Remainder 18435/ / / / Read the reminder column from bottom to top, i.e Therefore, 4803 is the hexadecimal two s complement representation of the decimal number In C, hexadecimal numbers are typically represented with a 0x in front of them. For example 4803 is written as: 0x4803. Note: This procedure also works when converting to other bases. For example, to convert to binary (base-2) divide by 2 instead of 16 in the quotient column above Representing Negative Decimal Integers This involves two steps. First find the hex equivalent of the magnitude of the number. Then find its two s complement. The procedure for finding the two s complement of a number is explained below using an example. Example 2: Convert the decimal number to hexadecimal. Solution: First, find the hexadecimal value of , then take two s complement of that value. The result is the hexadecimal value of Note: Taking the two s complement of a number gives the negative of that number. From Example 1, the hexadecimal value of is 0x4803. Now, take the two s complement of 0x4803. Convert the hexadecimal number to binary. 0x4803 = ( ) in binary Complement the binary number by changing the 1 s to 0 s and the 0 s to 1 s: Complement of ( ) is ( )

4 Add one to the complement: ( ) + 1 ( ) Convert back to hexadecimal. ( ) = 0xB7FD 0xB7FD is the two s complement of 0x4803. Thus, 0xB7FD = As a check, verify that 0x xB7FD equals zero: 0x xB7FD + (-18435) 0x0000 0x00000 When adding two s complement numbers, ignore the remainder of the most significant digit if there is one, i.e., ignore the overflow bit. The example below shows a faster method of obtaining the two s complement of a hexadecimal number: What is the two s complement of 0xB7FD? Solution: Subtract each hexadecimal digit from B F - D Add one: 0x x4803 This is the same result as above Declaring Hex Numbers in C Example: #include <stdio.h> main() { int a = 0x4803; int b = 0xb7fd; int c; c = a + b; printf( \n A =%x, B =%x, C =%x \n,a,b,c);

5 The value of c should be zero in the output. Here the %x format tells the printf statement to print hexadecimal numbers Loops and if statements Review the online C tutorial paying particular attention to the following concepts if statement for loops while statement array declaration function declaration Adding comments to the program 2.9. break statement The break statement can be used to exit from loops (for, while). The following two programs produce identical results /* First program */ #include <stdio.h> #include <conio.h> /* conio declares console i/o functions like getch */ void main() { char a= a ; while(a!= 'q') { a = getch(); printf("you typed in %c\n", a); /* Second program */ #include <stdio.h> #include <conio.h> /* conio declares console i/o functions like getch */ void main() { char a= a ; while(1) {

6 a = getch(); printf("you typed in %c\n", a); if(a == 'q') break; continue statement The continue statement is used to bypass the remainder of the current pass through a loop. The loop does not terminate when a continue statement is encountered. Rather, the remaining loop statements are skipped and the computation proceeds to the next pass through the loop. For example, consider a program that prompts a user for an input and calculates the square root of the number. Whenever a negative number is encountered we want to ignore the input. #include <stdio.h> #include <math.h> /* declares math functions */ void main() { int i; double x,y; for(i=0; i < 10; i++) { printf("\n Enter a positive number: "); scanf("%lf",&x); if (x < 0.0) continue; /* ignore this dope s input */ y = sqrt(x); printf( \nthe square root of %f is %f\n,x,y); /* end of for */ /* end of main */ Arrays Review the lecture slides and the online C tutorial paying particular attention to the declaration and use of arrays. 3. PRELAB 1. Read the lab handout and any additional readings listed in the handout. 2. Write a program to convert temperature reading in degree Celsius to degree Fahrenheit (F=(9/5)C + 32). Take the Celsius value as the input from user and print out the Fahrenheit value to the screen. 4. Perform the following calculations (written hand in required). Calculate the sum in hexadecimal numbers. 0x x0009 0x x0079 0x x54BF 0x x4A05????

7 5. Convert the augends and addends of the above problem to binary, then calculate the sum for each problem. 6. Convert the augends and addends of the above problems to decimal, then calculate the sum for each problem. 7. Write a program that uses nested "for" loops to sort an array of integer numbers. Input = [ ]; Output = [ ]; 4. LAB PROCEDURE Microsoft Developer Studio will be used for creating and compiling C programs. More specifically, the Visual C++ Integrated Development Environment (IDE), a part of Developer Studio, will be used for program development (C++ will not be covered in this class). The IDE provides an editor where source code can be written, compiled and run. The IDE is a useful tool to learn, because Microsoft intends to support all future Windows programming languages within this environment. To get started with the editor follow the guidelines below. Creating a new project in Visual C++: Open the program by clicking on the Visual Studio shortcut on the Desktop or through the start menu of Windows (Start All programs etc.) When the program is opened, Click on File New Project. From the dialog box which opens up select Visual C++ Projects Win 32 under the Project Types Window on the left hand side of the dialog box. From the Templates window on the right, select Win32 Console Project. Now you should give a name to the project. Use reasonable names to avoid confusion in the future. For the defining the Location click Browse and choose a directory within your protected disk subdirectory area on drive Z:, which corresponds to the file server for this class. For example, using Windows Explorer you might want to create a subdirectory called Z:\userid\projects. If you choose this as the location of your workspace, then the directory Z:\userid\projects\lab1 will be created along with three workspace files required by Developer Studio. Click OK. This opens a Win32 Application Wizard dialog box. Click on Application Settings tab and check the Empty Project checkbox. Click Finish. A new project with the name that you specified opens. Creating a new C source file under a project: To add a new source file to your project select from the menu: File New File. On the dialog box that opens up select Visual C++ under the categories window and select C++ File under the templates window that is on the right hand side. Click Open Now to save the file from the menu select : File Save As and then from the Save As dialog box locate you project directory under Shared Documents students YOUR

### C Programming Dr. Hasan Demirel

C How to Program, H. M. Deitel and P. J. Deitel, Prentice Hall, 5 th edition (3 rd edition or above is also OK). Introduction to C Programming Dr. Hasan Demirel Programming Languages There are three types

### Useful Number Systems

Useful Number Systems Decimal Base = 10 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} Binary Base = 2 Digit Set = {0, 1} Octal Base = 8 = 2 3 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7} Hexadecimal Base = 16 = 2

### Introduction to the use of the environment of Microsoft Visual Studio 2008

Steps to work with Visual Studio 2008 1) Start Visual Studio 2008. To do this you need to: a) Activate the Start menu by clicking the Start button at the lower-left corner of your screen. b) Set the mouse

### Lecture 2. Binary and Hexadecimal Numbers

Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations

### CP Lab 2: Writing programs for simple arithmetic problems

Computer Programming (CP) Lab 2, 2015/16 1 CP Lab 2: Writing programs for simple arithmetic problems Instructions The purpose of this Lab is to guide you through a series of simple programming problems,

### Computer Science 281 Binary and Hexadecimal Review

Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two

### Microsoft Visual Studio 2010 Instructions For C Programs

Microsoft Visual Studio 2010 Instructions For C Programs Creating a NEW C Project After you open Visual Studio 2010, 1. Select File > New > Project from the main menu. This will open the New Project dialog

### CSI 333 Lecture 1 Number Systems

CSI 333 Lecture 1 Number Systems 1 1 / 23 Basics of Number Systems Ref: Appendix C of Deitel & Deitel. Weighted Positional Notation: 192 = 2 10 0 + 9 10 1 + 1 10 2 General: Digit sequence : d n 1 d n 2...

### Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: -Our standard number system is base, also

### Appendix K Introduction to Microsoft Visual C++ 6.0

Appendix K Introduction to Microsoft Visual C++ 6.0 This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++ integrated development environment (IDE):

### 198:211 Computer Architecture

198:211 Computer Architecture Topics: Lecture 8 (W5) Fall 2012 Data representation 2.1 and 2.2 of the book Floating point 2.4 of the book 1 Computer Architecture What do computers do? Manipulate stored

### COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

### Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

Today Binary addition Representing negative numbers 2 Binary Addition Consider the following binary numbers: 0 0 1 0 0 1 1 0 0 0 1 0 1 0 1 1 How do we add these numbers? 3 Binary Addition 0 0 1 0 0 1 1

### Lab 2 - CMPS 1043, Computer Science I Introduction to File Input/Output (I/O) Projects and Solutions (C++)

Lab 2 - CMPS 1043, Computer Science I Introduction to File Input/Output (I/O) Projects and Solutions (C++) (Revised from http://msdn.microsoft.com/en-us/library/bb384842.aspx) * Keep this information to

### Appendix M Introduction to Microsoft Visual C++.NET

Appendix M Introduction to Microsoft Visual C++.NET This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++.NET integrated development environment

### Lab 3: Introduction to Data Acquisition Cards

Lab 3: Introduction to Data Acquisition Cards INTRODUCTION: In this lab, you will be building a VI to display the input measured on a channel. However, within your own VI you will use LabVIEW supplied

### Beginner s Matlab Tutorial

Christopher Lum lum@u.washington.edu Introduction Beginner s Matlab Tutorial This document is designed to act as a tutorial for an individual who has had no prior experience with Matlab. For any questions

### Two's Complement Adder/Subtractor Lab L03

Two's Complement Adder/Subtractor Lab L03 Introduction Computers are usually designed to perform indirect subtraction instead of direct subtraction. Adding -B to A is equivalent to subtracting B from A,

### Lab 1: Full Adder 0.0

Lab 1: Full Adder 0.0 Introduction In this lab you will design a simple digital circuit called a full adder. You will then use logic gates to draw a schematic for the circuit. Finally, you will verify

### Introduction to MS Visual C/C++

1. Introduction Part 1 of this tutorial gives a simple introduction to MS Visual Studio with an emphasis on OpenGL graphics application. Part 2 introduces the basics of C/C++. At the end of this tutorial

### 2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal

2/9/9 Binary number system Computer (electronic) systems prefer binary numbers Binary number: represent a number in base-2 Binary numbers 2 3 + 7 + 5 Some terminology Bit: a binary digit ( or ) Hexadecimal

### Decimal Numbers: Base 10 Integer Numbers & Arithmetic

Decimal Numbers: Base 10 Integer Numbers & Arithmetic Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Example: 3271 = (3x10 3 ) + (2x10 2 ) + (7x10 1 )+(1x10 0 ) Ward 1 Ward 2 Numbers: positional notation Number

### Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection

### Creating Database Tables in Microsoft SQL Server

Creating Database Tables in Microsoft SQL Server Microsoft SQL Server is a relational database server that stores and retrieves data for multi-user network-based applications. SQL Server databases are

### Microsoft Access Rollup Procedure for Microsoft Office 2007. 2. Click on Blank Database and name it something appropriate.

Microsoft Access Rollup Procedure for Microsoft Office 2007 Note: You will need tax form information in an existing Excel spreadsheet prior to beginning this tutorial. 1. Start Microsoft access 2007. 2.

### Creating a Simple Visual C++ Program

CPS 150 Lab 1 Name Logging in: Creating a Simple Visual C++ Program 1. Once you have signed for a CPS computer account, use the login ID and the password password (lower case) to log in to the system.

### Generating Visual Studio Project Files

Table of Contents 1. Overview... 1 2. About this tutorial... 1 3. Setting up the pure::variants project... 1 4. Setting up the feature model... 3 5. Setting up the family model... 3 6. Setting up the transformation...

### Visual Basic 2010 Essentials

Visual Basic 2010 Essentials Visual Basic 2010 Essentials First Edition 2010 Payload Media. This ebook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited.

### The programming language C. sws1 1

The programming language C sws1 1 The programming language C invented by Dennis Ritchie in early 1970s who used it to write the first Hello World program C was used to write UNIX Standardised as K&C (Kernighan

### C Syntax and Semantics

C Syntax and Semantics 1 C Program Structure C Language Elements Preprocessor directives Function Header, and Function body Executable statements Reserved word, Standard identifiers, user defined identifiers

### Graphing Parabolas With Microsoft Excel

Graphing Parabolas With Microsoft Excel Mr. Clausen Algebra 2 California State Standard for Algebra 2 #10.0: Students graph quadratic functions and determine the maxima, minima, and zeros of the function.

### Sources: On the Web: Slides will be available on:

C programming Introduction The basics of algorithms Structure of a C code, compilation step Constant, variable type, variable scope Expression and operators: assignment, arithmetic operators, comparison,

### Appendix M: Introduction to Microsoft Visual C++ 2010 Express Edition

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

### Informatica e Sistemi in Tempo Reale

Informatica e Sistemi in Tempo Reale Introduction to C programming Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa October 25, 2010 G. Lipari (Scuola Superiore Sant Anna)

### INTRODUCTION TO FLOWCHARTING

CHAPTER 1 INTRODUCTION TO FLOWCHARTING 1.0 Objectives 1.1 Introduction 1.2 Flowcharts 1.3 Types of Flowcharts 1.3.1 Types of flowchart 1.3.2 System flowcharts 1.4 Flowchart Symbols 1.5 Advantages of Flowcharts

### Code::Blocks Student Manual

Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

### Microcontroller Systems. ELET 3232 Topic 8: Slot Machine Example

Microcontroller Systems ELET 3232 Topic 8: Slot Machine Example 1 Agenda We will work through a complete example Use CodeVision and AVR Studio Discuss a few creative instructions Discuss #define and #include

### Using MATLAB to Solve Differential Equations

ECE 350 Linear Systems I MATLAB Tutorial #3 Using MATLAB to Solve Differential Equations This tutorial describes the use of MATLAB to solve differential equations. Two methods are described. The first

### Basic Common Unix commands: Change to directory d

Basic Common Unix commands: cd d Change to directory d mkdir d rmdir d mv f1 [f2...] d mv d1 d2 ls [d] [f...] ls -1 [f...] vi [f] emacs [f] more f cp f1 f2 mv f1 f2 rm f gcc [-o f1] f2 gnuplot Create new

### FEEG6002 - Applied Programming 5 - Tutorial Session

FEEG6002 - Applied Programming 5 - Tutorial Session Sam Sinayoko 2015-10-30 1 / 38 Outline Objectives Two common bugs General comments on style String formatting Questions? Summary 2 / 38 Objectives Revise

### Binary Numbers. Bob Brown Information Technology Department Southern Polytechnic State University

Binary Numbers Bob Brown Information Technology Department Southern Polytechnic State University Positional Number Systems The idea of number is a mathematical abstraction. To use numbers, we must represent

### Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical These instructions describe the process for configuring a SAS Metadata server to work with JMP Clinical. Before You Configure

### WPUNJ Department of Computer Science

1 WPUNJ Department of Computer Science MS Visual C++ 6.0 Student User Manual Table of Contents Page No Introduction ----------------------------------------------------------------------- 2 How to Launch

### 3 IDE (Integrated Development Environment)

Visual C++ 6.0 Guide Part I 1 Introduction Microsoft Visual C++ is a software application used to write other applications in C++/C. It is a member of the Microsoft Visual Studio development tools suite,

### Birla Institute of Technology &Science, Pilani Computer Programming (CS F111) Second Semester Lab-3 (Introduction to C Programming Language)

Topics to be covered: 1. C Program structure and execution 2. Data type 3. Reading input and printing output 4. Expression 5. Operator precedency 6. Typecasting Birla Institute of Technology &Science,

### MS Visual C++ Introduction. Quick Introduction. A1 Visual C++

MS Visual C++ Introduction 1 Quick Introduction The following pages provide a quick tutorial on using Microsoft Visual C++ 6.0 to produce a small project. There should be no major differences if you are

### 16.4.3 Lab: Data Backup and Recovery in Windows XP

16.4.3 Lab: Data Backup and Recovery in Windows XP Introduction Print and complete this lab. In this lab, you will back up data. You will also perform a recovery of the data. Recommended Equipment The

### An introduction to Visual Studio

Chapter 1 An introduction to Visual Studio Murach s Visual Basic 2008, C1 2008, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Use Visual Studio 2008 to do any of these operations: Open and

### Visual C++ 2010 Tutorial

Visual C++ 2010 Tutorial Fall, 2011 Table of Contents Page No Introduction ------------------------------------------------------------------- 2 Single file program demo --------- -----------------------------------------

### 1. Constants. 2. Variables. 3. Reserved words or key words. 4. Constants. Character set in C

Character set in C We should use only the following characters in writing a C program. These characters can be combined to create C words. Alphabet: A, B, C, D.. Z, a, b, c, d..z Numeric digits: 0, 1,

### Microsoft Visual Studio: An Integrated Windows Program Development Environment

Microsoft Visual Studio: An Integrated Windows Program Development Environment Microsoft Visual Studio Self-contained environment for Windows program development: Creating/editing Compiling/linking (building)

### Visual Studio 2008 Express Editions

Visual Studio 2008 Express Editions Visual Studio 2008 Installation Instructions Burning a Visual Studio 2008 Express Editions DVD Download (http://www.microsoft.com/express/download/) the Visual Studio

### SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

SOS Online Backup USER MANUAL HOW TO INSTALL THE SOFTWARE 1. Download the software from the website: http://www.sosonlinebackup.com/download_the_software.htm 2. Click Run to install when promoted, or alternatively,

### 13-1. This chapter explains how to use different objects.

13-1 13.Objects This chapter explains how to use different objects. 13.1. Bit Lamp... 13-3 13.2. Word Lamp... 13-5 13.3. Set Bit... 13-9 13.4. Set Word... 13-11 13.5. Function Key... 13-18 13.6. Toggle

### Positional Numbering System

APPENDIX B Positional Numbering System A positional numbering system uses a set of symbols. The value that each symbol represents, however, depends on its face value and its place value, the value associated

### Borland C++ Compiler: Operators

Introduction Borland C++ Compiler: Operators An operator is a symbol that specifies which operation to perform in a statement or expression. An operand is one of the inputs of an operator. For example,

### MICROSOFT VISUAL C TUTORIAL

MICROSOFT VISUAL C++ 6.0 TUTORIAL INTRODUCTION Microsoft Visual C++ allows you to create many different types of applications. This guide addresses creating and using Console Applications.A console application

### 1 Description of The Simpletron

Simulating The Simpletron Computer 50 points 1 Description of The Simpletron In this assignment you will write a program to simulate a fictional computer that we will call the Simpletron. As its name implies

### DEPLOYING A VISUAL BASIC.NET APPLICATION

C6109_AppendixD_CTP.qxd 18/7/06 02:34 PM Page 1 A P P E N D I X D D DEPLOYING A VISUAL BASIC.NET APPLICATION After completing this appendix, you will be able to: Understand how Visual Studio performs deployment

### WS_FTP Professional 12

WS_FTP Professional 12 Tools Guide Contents CHAPTER 1 Introduction Ways to Automate Regular File Transfers...5 Check Transfer Status and Logs...6 Building a List of Files for Transfer...6 Transfer Files

### SQL Server 2005: Report Builder

SQL Server 2005: Report Builder Table of Contents SQL Server 2005: Report Builder...3 Lab Setup...4 Exercise 1 Report Model Projects...5 Exercise 2 Create a Report using Report Builder...9 SQL Server 2005:

### Summary of important mathematical operations and formulas (from first tutorial):

EXCEL Intermediate Tutorial Summary of important mathematical operations and formulas (from first tutorial): Operation Key Addition + Subtraction - Multiplication * Division / Exponential ^ To enter a

### Installing S500 Power Monitor Software and LabVIEW Run-time Engine

EigenLight S500 Power Monitor Software Manual Software Installation... 1 Installing S500 Power Monitor Software and LabVIEW Run-time Engine... 1 Install Drivers for Windows XP... 4 Install VISA run-time...

### Base Conversion written by Cathy Saxton

Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,

### Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems

Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems This assignment is designed to familiarize you with different numbering systems, specifically: binary, octal, hexadecimal (and decimal)

### Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

http://msdn.microsoft.com/en-us/library/8wbhsy70.aspx Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer In addition to letting you create Web pages, Microsoft Visual Studio

### Lecture 03 Bits, Bytes and Data Types

Lecture 03 Bits, Bytes and Data Types In this lecture Computer Languages Assembly Language The compiler Operating system Data and program instructions Bits, Bytes and Data Types ASCII table Data Types

### C programming: exercise sheet L2-STUE (2011-2012)

C programming: exercise sheet L2-STUE (2011-2012) Algorithms and Flowcharts Exercise 1: comparison Write the flowchart and associated algorithm that compare two numbers a and b. Exercise 2: 2 nd order

### Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7 Contents Overview... 1 The application... 2 Motivation... 2 Code and Environment... 2 Preparing the Windows Embedded Standard

### 10.3.1.6 Lab - Data Backup and Recovery in Windows XP

5.0 10.3.1.6 Lab - Data Backup and Recovery in Windows XP Introduction Print and complete this lab. In this lab, you will back up data. You will also perform a recovery of the data. Recommended Equipment

### Package Designer Guide

Package Designer Guide Rev: 13 December 2011 Sitecore CMS 6.5 Package Designer Guide An administrator's guide to creating and editing Sitecore packages Table of Contents Chapter 1 Introduction... 3 Chapter

### The Basics of C Programming. Marshall Brain

The Basics of C Programming Marshall Brain Last updated: October 30, 2013 Contents 1 C programming 1 What is C?................................. 2 The simplest C program, I........................ 2 Spacing

### TI-83 Plus Graphing Calculator Keystroke Guide

TI-83 Plus Graphing Calculator Keystroke Guide In your textbook you will notice that on some pages a key-shaped icon appears next to a brief description of a feature on your graphing calculator. In this

### BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005

BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without

### Presentations and PowerPoint

V-1.1 PART V Presentations and PowerPoint V-1.2 Computer Fundamentals V-1.3 LESSON 1 Creating a Presentation After completing this lesson, you will be able to: Start Microsoft PowerPoint. Explore the PowerPoint

### The Essentials of Computer Organization and Architecture. Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003

The Essentials of Computer Organization and Architecture Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003 Chapter 2 Instructor's Manual Chapter Objectives Chapter 2, Data Representation,

### CS 16: Assembly Language Programming for the IBM PC and Compatibles

CS 16: Assembly Language Programming for the IBM PC and Compatibles First, a little about you Your name Have you ever worked with/used/played with assembly language? If so, talk about it Why are you taking

### Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z This tutorial is intended for starting a new project to develop software with Freescale FRDM-KL25Z board

### How to test and debug an ASP.NET application

Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult

### E-Mail Campaign Manager 2.0 for Sitecore CMS 6.6

E-Mail Campaign Manager 2.0 Marketer's Guide Rev: 2014-06-11 E-Mail Campaign Manager 2.0 for Sitecore CMS 6.6 Marketer's Guide User guide for marketing analysts and business users Table of Contents Chapter

### Resonance and the Speed of Sound

Name: Partner(s): Date: Resonance and the Speed of Sound 1. Purpose Sound is a common type of mechanical wave that can be heard but not seen. In today s lab, you will investigate the nature of sound waves

### Setting Up ALERE with Client/Server Data

Setting Up ALERE with Client/Server Data TIW Technology, Inc. November 2014 ALERE is a registered trademark of TIW Technology, Inc. The following are registered trademarks or trademarks: FoxPro, SQL Server,

### EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors

EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors I. Introduction I.a. Objectives In this experiment, parallel adders, subtractors and complementors will be designed and investigated. In the

2: Entering Data Objectives Understand the logic of data files Create data files and enter data Insert cases and variables Merge data files Read data into SPSS from other sources The Logic of Data Files

### EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your

### RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

I. Basic Course Information RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE CISY 105 Foundations of Computer Science A. Course Number and Title: CISY-105, Foundations of Computer Science B. New

### Solution for Homework 2

Solution for Homework 2 Problem 1 a. What is the minimum number of bits that are required to uniquely represent the characters of English alphabet? (Consider upper case characters alone) The number of

### How to install and use the File Sharing Outlook Plugin

How to install and use the File Sharing Outlook Plugin Thank you for purchasing Green House Data File Sharing. This guide will show you how to install and configure the Outlook Plugin on your desktop.

### Microsoft SharePoint 2010 End User Quick Reference Card

Microsoft SharePoint 2010 End User Quick Reference Card Microsoft SharePoint 2010 brings together the people, documents, information, and ideas of the University into a customizable workspace where everyone

### 1. Objectives. 2. Create new project. 3. XOR gate

EE 121 October 1, 2002 Digital Design Laboratory Handout #3 Laboratory Assignment #1 Introduction to Xilinx Foundation Design Software Due date: Thursday, October 10, at the beginning of class To be completed

### Figure 1: Graphical example of a mergesort 1.

CSE 30321 Computer Architecture I Fall 2011 Lab 02: Procedure Calls in MIPS Assembly Programming and Performance Total Points: 100 points due to its complexity, this lab will weight more heavily in your

### ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700

Information Technology MS Access 2007 Users Guide ACCESS 2007 Importing and Exporting Data Files IT Training & Development (818) 677-1700 training@csun.edu TABLE OF CONTENTS Introduction... 1 Import Excel

### Introduction to Eclipse

Introduction to Eclipse Overview Eclipse Background Obtaining and Installing Eclipse Creating a Workspaces / Projects Creating Classes Compiling and Running Code Debugging Code Sampling of Features Summary

### Visual basic tutorial problems, developed by Dr. Clement,

EXCEL Visual Basic Tutorial Problems (Version January, 2011) Dr. Prabhakar Clement Arthur H. Feagin Distinguished Chair Professor Department of Civil Engineering, Auburn University Home page: http://www.eng.auburn.edu/users/clemept/

### Using SQL Server Management Studio

Using SQL Server Management Studio Microsoft SQL Server Management Studio 2005 is a graphical tool for database designer or programmer. With SQL Server Management Studio 2005 you can: Create databases

### Goals. Unary Numbers. Decimal Numbers. 3,148 is. 1000 s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

Number Bases //9 Goals Numbers Understand binary and hexadecimal numbers Be able to convert between number bases Understand binary fractions COMP37 Introduction to Computer Architecture Unary Numbers Decimal

### Using Eclipse for Java Programming

Using Eclipse for Java Programming NOTE: Before using Eclipse for the first time, create a folder on your desktop named MyWorkspace. This folder will be used to store all of your Java projects. 1. Start