Shapes leading to CAD system project

Size: px
Start display at page:

Download "Shapes leading to CAD system project"

Transcription

1 EXERCISES Shapes leading to CAD system project Strings leading to distribution control project Tables leading to infinite precision arithmetic project Conversions leading to instrument control project Averages leading to employee information management project

2 Part 8, Page 2 C++ Programming

3 Shapes leading to CAD system project Project scope and objectives: Develop a set of shape classes with methods for computing perimeter, area, and volume. By adding coordinates, this can be extended to handle collections of intersecting shapes. 1. Define structures for the following: a. Triangle - consisting of the three lengths of sides a, b, and c. b. Rectangle - consisting of the two lengths of orthogonal edges. c. Parallelogram - consisting of the two lengths of meeting edges and the included interior angle. d. Circle - consisting of the length of the radius. 2. For each structure, write functions that initialize the object, compute the perimeter of the object, and compute the area of the object. 3. Convert the structures into data types, then merge the programs to compute perimeter and area for each of these objects by overloading functions perimeter and area. 4. Convert the structures for the four objects into classes, then write constructor functions for each object. 5. Write an output function that prints out the relevant data for each type of object including the object type, the relevant dimensions, perimeter, and area. 6. Overload the + operator to add the perimeters of any 2 objects. Overload the * operator to add the areas of any two objects. 7. Re-write the code to place the declarations into a separate.h file and then include that file into all of the program files. Compile the programs to verify that they still work correctly. 8. Convert the short functions in your code to inline functions. Exercises Part 8, Page 3

4 9. Restructure the classes so that all of the objects are derived classes from a base class shape. Also, make parallelogram a derived class of rectangle that inherits the basic properties of rectangle, adding the included interior angle as an additional attribute. Create virtual functions area and perimeter in the shape base class. 10. Make the overloading of the + and * operators virtual. Overload the << operator to print out the name of the object type (triangle, rectangle, etc.). 11. Re-write the output functions to include manipulators that make the output more presentable. 12. Re-write the constructor functions to check to make sure that the values given to the constructor result in a legal shape. For example, the sum of the two shortest sides in a triangle must not be less than the length of the longest side; lengths must not be negative; the included angle in a parallelogram must be less than 180 degrees. 13. Re-write the error checking code to throw an exception for illegal shape. Write appropriate code to catch the exceptions. 14. Add a description to each rectangle and circle, using multiple inheritance from the shape and the string base classes (use the string class from string5.h). 15. Add additional shape, including solids. Structure the base class shape into two subclasses, one for planar objects and the other for solids. Write a volume function that applies only to solids. Write/re-write the functions for perimeter, area, volume and overload the operators +, *, and << using templates. 16. (Extension to CAD) Add sufficient x, y, z coordinates (and angles, if desired) to each object to fix it in three dimensional space. (This is conceptually difficult in the general case if you want to make sure you determine a single location without overdetermining the object so as to force additional error checking.) Write a function that takes two objects as parameters and determines the area of overlap. (Again, this is a conceptually difficult function to write that may involve numerical integration.) Part 8, Page 4 C++ Programming

5 Strings leading to distribution control project Project scope and objectives: Develop a string class that includes string length with methods for the usual C string functions and a + operator for string concatenation. Use these strings to access files and compute file length. By adding files containing file lists, this can be extended to control the distribution of files for a software project to many targets. 1. Define a structure for a string containing both a string length and a fixed length area of 100 characters for the contents of the string. 2. Write functions that initialize strings, return the length of the string, copy strings, and print the contents of the string. 3. Convert the structure into a data type. Overload the string functions strlen and strcpy to behave the same way as the built-in C functions. 4. Convert the structure into a class, then write constructor functions for each object. Change the area for the contents of the string to a variable length area that dynamically allocates space using the new operator. Write destructor functions to recover the dynamically allocated space. Write a copy constructor. Temporarily insert additional code into the constructor and destructor functions to trace exactly which strings are created and destroyed when. 5. Write an output function that prints out the relevant data for each string, including the fact that it is a string, the length of the string, and the contents of the string. Overload the << operator so that the contents of the string are inserted into the output stream. 6. Overload the + operator to concatenate two strings. Overload the - operator to search for and remove the first occurrence of the second string within the first string. (If the second string is not found in the first string, then the first string remains unaltered.) Remember, the results of these operations are strings. Exercises Part 8, Page 5

6 7. Re-write the code to place the declarations into a separate.h file and then include that file into all of the program files. Compile the programs to verify that they still work correctly. 8. Convert the short functions in your code to inline functions. 9. Create a class structure so that all of the objects are derived classes from a base class text. Make string a derived class from text. Make textfile a derived class from text. Make filename a derived class from string. Printing a textfile means printing the entire contents of the file. Adding two textfiles means appending the contents of the second file to the first file. Asking for the length of a textfile means counting the number of characters in the file. (The length of the file is NOT kept within the class members - just the file name.). Create virtual functions strcat and strlen in the text base class. 10. Make the overloading of the + and - operators virtual. Overload the << operator to print out the name of the object type (string, filename, etc.) as well as the contents if a string or filename. 11. Re-write the output functions to include manipulators that make the output more presentable. Write a function that compares two files, finding either the line number and character position of the first difference between the two files, or verifying that the two files are character-for-character identical. Print the line number and character position of the first difference between the two files. Then overload the == operator for the textfile class to return TRUE if the two files are identical, FALSE if they are not. 12. Re-write the constructor functions to check to make sure that the constructor succeeds. For a string and filename, this means that the new function was able to allocate space. For a textfile and filename, this means that the path to the file (but not necessarily the file) exists and that the filename is in a legal format. 13. Re-write the error checking code to throw an exception for illegal text. Write appropriate code to catch the exceptions. 14. Add a class for a textfile containing filenames of text files, using multiple inheritance from the textfile and filenames base classes. Part 8, Page 6 C++ Programming

7 15. Write additional functions that implement some of the string functions in the C library for each of the classes using templates. Try writing additional functions that implement some of the character "functions." Because these functions work as macros for standard data types, be aware of potential problems. 16. (Extension to a software distribution system) Overload the strcpy function and << operator to copy a standard C string, the string that is a subclass of text, a filename, the contents of a textfile, or the contents of all the files in a textfile of file names. Allow destinations to allow directory names so that a list of files is copied to another directory with the same file names as the source files. Exercises Part 8, Page 7

8 Tables leading to infinite precision arithmetic project Project scope and objectives: Develop a set of classes capable of arbitrarily high precision computation with methods for computing simple tables. This project can extend to interaction will all existing numeric classes. 1. Write a C++ program that will print a table of numbers, their squares, and their cubes. The table should have a heading. Next, write two functions, one for squaring numbers and the second for cubing numbers. Call these functions to create the table instead of doing the computations within main. Finally, place the function for computing the square and the cube in a file different from the file containing main. 2. Write functions to process a whole number stored as an array of integers in which each integer array element contains one digit of the whole number. Write functions that initialize these arrays, return the value of the number (for small numbers), add 1 to the number, and add two numbers. When adding, form the sum for the least significant digit. If the sum is greater than 9, subtract 10 from the digit and add 1 to the next most significant digit. Limit whole numbers to values with less than 100 digits. 3. Convert the array of integers into an infinite precision whole number data type. Overload the + and - operators to behave like ordinary arithmetic with both integers and infinite precision whole numbers. 4. Convert the data type into a class, then write constructor functions for each value. Change the area for the contents of the value to a variable length area that dynamically allocates space using the new operator. Write destructor functions to recover the dynamically allocated space. Write a copy constructor. Temporarily insert additional code into the constructor and destructor functions to trace exactly which arrays of integers are created and destroyed when. Part 8, Page 8 C++ Programming

9 5. Write an output function that prints out the fact that it is dealing with an infinite precision value, the number of digits in the value, and the value itself, placing spaces every 5 digits from the right. Overload the << operator so that the value is inserted into the output stream, placing commas every three digits from the right (remember, output is printed left to right). 6. Overload the * operator to compute the product of two values, any mixture of integer and infinite precision. The product of two infinite precision numbers requires a temporary infinite precision value, but otherwise the code looks just like teaching a fifth grader long multiplication. Clean up the overloading of the + and - operators. Remember, the results of these operations are infinite precision numbers. Re-write the code as necessary to get tables of squares and cubes to work properly using infinite precision. 7. Re-write the code to place the declarations into a separate.h file and then include that file into all of the program files. Compile the programs to verify that they still work correctly. 8. Convert the short functions in your code to inline functions. 9. Create a class table that contains a string containing the name of the function; an infinite precision starting value; and an infinite precision ending value. Make table of squares and table of cubes derived classes from the base class table. Create virtual a function print_table to print the contents of the table in the table base class. 10. Overload the operator + for the table class. Adding two tables means running the table from the smaller starting value to the larger ending value. (Overloading the operator < for the infinite precision class may help.) The two tables must evaluate the same function. Make the overloading of the + operator virtual. Overload the << operator to print out the name of the function (square, cube, etc.). 11. Re-write the output functions for the table class to include manipulators that make the output more presentable. In particular, experiment with various formatting options within the infinite precision class, including the printing of preceding zeroes, to make tables line up. Exercises Part 8, Page 9

10 12. Re-write the constructor functions to check to make sure that the values given to the constructors are legal. For the table class, the beginning value for the table should be less than or equal to the ending value for the table. For the infinite precision class, the new operator must succeed in allocating space. 13. Re-write the error checking code to throw an exception for illegal tables or memory allocation errors for infinite precision arithmetic. Write appropriate code to catch the exceptions. 14. Add a description to square and cube functions, using multiple inheritance from the table and the string base classes (use the string class from string5.h). 15. Add additional tables using hard coded functions and pointers to functions. Structure the table class shape into two subclasses, one for single parameter functions (like square and cube) and the other for multiple-parameter functions (like min, max, and mod). Write/re-write the functions to overload the operators +, *, and << for both infinite precision and tables using templates. Using templates, write functions to provide full interaction between regular numeric types and the infinite precision numeric type. 16. (Extensions) Add sufficient coefficients to build a polynomial table class. Complete the implementation of the infinite precision class by overloading the standard C mathematical functions that take integer arguments and return integer results (pow and mod, for example, but not sin, cos, or sqrt Part 8, Page 10 C++ Programming

11 Conversions leading to instrument control project Project scope and objectives: Develop a set of measurement classes with methods for converting between various units of measurement. By adding error checking and input/output routines, this can be extended to handle instrument control. 1. Write a set of C++ functions that will convert temperatures from Celsius to Fahrenheit and Fahrenheit to Celsius; distance from meters to feet and feet to meters; time from seconds to hours and hours to seconds. Call these functions with test values from main. Finally, place the functions for converting temperatures a file different from the file containing main. 2. Create a structure for velocity in meters per second that contains a distance in meters and a time in seconds. For this structure, write functions that initialize the values, compute the velocity in meters per second, and compute the time it takes to travel one meter. Create a similar structure for velocity in feet per hour. 3. Convert the velocity structures into a data types. Also create data types for Celsius temperature, Fahrenheit temperature, distance in meters, distance in feet, time in seconds, and time in hours. Then merge the programs to compute velocity and time to travel a unit distance by overloading identically named functions. 4. Convert the velocity structures and temperature, time, and speed data types into classes, then write constructor functions for each object. 5. Write an output function that prints out the relevant data for each type of object including the object type, the relevant units of measurement, the value of the unit of measurement, and, for the velocity classes, the velocity and time to travel a unit distance. Exercises Part 8, Page 11

12 6. Overload the + operator to add the temperatures, times, distances, or velocities of objects, converting if necessary. The result should be in the units of measurement of the object on the left of the operator. Overload the / operator to accept a distance on the left, a time on the right, and generate a velocity as a result. The units of measurement for the result should be consistent with the left operand. 7. Re-write the code to place the declarations into a separate.h file and then include that file into all of the program files. Compile the programs to verify that they still work correctly. 8. Convert the short functions in your code to inline functions. 9. Restructure the classes so that all of the objects are derived classes from a base class measurement. Also, create new classes for acceleration (this class contains an additional time measurement over which the velocity developed - divide the velocity by this time to get acceleration) as a derived class of velocity. Further overload the / operator to take velocity on the left and time on the right to generate acceleration as the result. Create virtual functions for the overloading of the + and / operators in the measurement base class. 10. Make the overloading of the + and / operators virtual. Overload the << operator to print out the name of the object type (temperature, velocity, etc.). 11. Re-write the output functions to include manipulators that make the output more presentable. 12. Re-write the constructor functions to check to make sure that the values given to the constructor result in a legal values. For example, temperatures should not be below absolute 0, distances and times must not be negative. 13. Re-write the error checking code to throw an exception for illegal values. Write appropriate code to catch the exceptions. 14. Restructure the class inheritance to more closely model the situation by using multiple inheritance. Let measurement be the base class; the time, distance, and temperature classes be derived from measurement; velocity use multiple inheritance from time and distance; and acceleration use multiple inheritance from the time and the velocity derived classes. Part 8, Page 12 C++ Programming

13 15. Merge the time, distance, and temperature classes into a single class for each by adding a flag to indicate whether the measurement is in the British or metric system. Add additional derived classes as makes sense, for example, a temperature rate of change class derived from time and temperature. Write/re-write the functions for overloading the operators =, +, /, and << using templates. 16. (Extension to instrumentation) Add code for keeping track of arrays of measurements taken as a time series. Write the statistical functions necessary for averaging, smoothing, and discarding outliers. Exercises Part 8, Page 13

14 Averages leading to employee information management project Project scope and objectives: Develop a set of employee record classes with methods for computing the count, average, and total amounts in numeric fields. 1. a. Write a main function to compute the average of an array of ten numbers. Fill the array with initial values using assignment statements or using the extraction operator. b. Now write a function for computing the average of an array of n numbers, passing it a pointer to the array (the array name) and an integer, n, the number of valid elements in the array. Return the average as a double precision value. Do all input/output from main. c. Place the function for computing the average in a separate file from the file containing main. 2. Design a program to handle a structure named employee, adapting it to the structure (extracted from COBOL and C programs) on the following pages. Write functions that initialize various parts of the record and count the number of projects the employee is working on (a project code of 0 indicates the absence of a project). Use the average function to calculate the average project code. (Small project codes are assigned to easy projects, and large project codes are assigned to difficult projects, so the average project code measures the difficulty level the employee works at.) Create a second structure for contract employees. They will have the same structure, except that the employee number will be replaced by service time, and the maximum number of project codes is two. Write a second set of functions for contract employees. 3. Convert the telephone number substructure into a data type, then create an employee data type and a contract data type using the telephone data type as a component. Merge the programs to initialize parts of the record, count the number of projects, and compute the average project code by overloading functions. Part 8, Page 14 C++ Programming

15 COBOL and C STRUCTURES COBOL: 01 EMPLOYEE. 02 JOB-TITLE PICTURE X(7). 02 EMP-NO PICTURE X(9). 02 PAY-RATE PICTURE 9(2)V9(2). 02 NAME. 03 L-NAME PICTURE X(12). 03 F-NAME PICTURE X(8). 03 INIT PICTURE X. 02 OFFICE-ADDR. 03 BLDG PICTURE X(3). 03 ROOM PICTURE 9(3). 02 PROJECT-CODES OCCURS 5 TIMES PICTURE 9(2). 02 TELEPHONE-NO OCCURS 2 TIMES. 03 AREA-CODE PICTURE 9(3). 03 LOCAL PICTURE 9(7). C: struct { char char float pay_rate, struct { char } name, struct { char char job_title[8], emp_no[10], l_name[13]; f_name[9]; init; char bldg[4], int room; } office_addr, int project_codes[5], struct { int long int local; } telephone_no[2]; } employee; area_code, Exercises Part 8, Page 15

16 STRUCTURE EXAMPLE We wish to create a structure for the data processing record shown below: Job Title Analys t Emp No Pay Rate Name Last First M I Mud Joe N CSC Office Project Codes Addr Bldg Room Ar ea Telephone No Local Ar Local ea Note that the record has alphabetic, integer, and real data types (job title, employee number, pay rate). It has embedded structures (name, office address). It has an array of integers (project codes), and it has an array of embedded structures (telephone numbers). The code on the facing page shows how this would be coded in COBOL and shows the closest parallel structure in C. The C code is the most straightforward, but not the most elegant. More elegant code would involve using typedef rather than directly embedding the structures. C code is much more flexible, in that there are a great many ways in which this record can be coded. Part 8, Page 16 C++ Programming

17 4. Convert the structures for the two types of employees into classes, then write constructor functions for each record type. Define a constructor to dynamically allocate space for the employee information. Define a destructor to recover the allocated space. 5. Write an output function that prints out a data sheet for the employee or contractor, including the type of employee, all information in the employee record, the number of projects, and the average project code. 6. Overload the = sign to move data from one employee record to another. Further overload the = sign so that employee a = double b alters the pay rate. Overload the + operator so that employee a + int b assigns an additional project code to the employee. Overload the - operator so that employee a - int b removes a project code from the employee. (The integer will contain the project code number to be added/removed.) 7. Re-write the code to place the declarations into a separate.h file and then include that file into all of the program files. Compile the programs to verify that they still work correctly. 8. Convert the short functions in your code to inline functions. 9. Restructure the classes so that employee and contractor records are derived classes from a base class worker. Also, make supervisor a derived class of employee that inherits the basic properties of employee, adding the name of the department supervised as an additional attribute, and adding a set of 20 departmental project codes (that are counted as part of the project code total). The overloaded + operator adds to the supervisor s personal project codes. Overload the * operator to add to the supervisor s departmental project codes. The * operator can also operate on two workers, transferring all the personal project codes of the worker on the right to the departmental project codes of the supervisor on the left. Create virtual functions for calculating the number of projects working on and the average project code. 10. Make the overloading of the =, +, - and * operators virtual. Overload the << operator to print out the name of the worker type (employee, contractor, supervisor). Exercises Part 8, Page 17

18 11. Re-write the output functions to include manipulators that make the output more presentable. 12. Re-write the constructor functions to check to make sure that the values given to the constructor are legal. For example, none of the numbers can be negative. Also, re-write the overloaded +, -, and * operators to check for errors. For example, the + operator cannot be invoked legally with a sixth different project code for employees. The * operator is illegal if the total number of different departmental project codes would exceed 20 after the operation. 13. Re-write the error checking code to throw an exception for illegal constructors and operator usage. Write appropriate code to catch the exceptions. 14. Create a class for telephone number with all the necessary supporting functions. Replace the reference to the telephone number data types within worker by the use of multiple inheritance from worker and telephone number in the employee and temporary classes. This is done so that a class of worker without a phone number can be created. 15. Add an additional class for inactive workers. These workers will have no project codes or telephone numbers. Write/re-write the functions for project count, project average and overload the operators +, -, *, and << using templates. 16. (Extensions) Provide a mechanism for keeping track of groups of employees by department. (A department class that contains a dynamically allocated collection of employee records.) Provide an operator for processing all of the project codes of all members of the department to generate the supervisor s list of project codes on the fly without storing those codes in the supervisor s record. Part 8, Page 18 C++ Programming

19 Exercises Part 8, Page 19

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor. 3.Constructors and Destructors Develop cpp program to implement constructor and destructor. Constructors A constructor is a special member function whose task is to initialize the objects of its class.

More information

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1

+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1 Chapter -1 1. Object Oriented programming is a way of problem solving by combining data and operation 2.The group of data and operation are termed as object. 3.An object is a group of related function

More information

Object Oriented Programming 2012

Object Oriented Programming 2012 1. Write a program to display the following output using single cout statement. Maths = 90 Physics =77 Chemestry =69 2. Write a program to read two numbers from the keyboard and display the larger value

More information

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C Practical -1 Babaria Institute of Technology LEARN CONCEPTS OF OOP 1. Explain Object Oriented Paradigm with figure. 2. Explain basic Concepts of OOP with example a. Class b. Object c. Data Encapsulation

More information

BASIC ELEMENTS OF A COMPUTER PROGRAM

BASIC ELEMENTS OF A COMPUTER PROGRAM BASIC ELEMENTS OF A COMPUTER PROGRAM CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING LOGO Contents 1 Identifier 2 3 Rules for naming and declaring data variables Basic data types 4 Arithmetic operators

More information

Get Unique study materials from

Get Unique study materials from Downloaded from www.rejinpaul.com VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe OBJECT ORIENTED PROGRAMMING USING C++ CSCI 5448- Object Oriented Analysis and Design By Manali Torpe Fundamentals of OOP Class Object Encapsulation Abstraction Inheritance Polymorphism Reusability C++

More information

Cpt S 122 Data Structures. Course Review Midterm Exam # 2

Cpt S 122 Data Structures. Course Review Midterm Exam # 2 Cpt S 122 Data Structures Course Review Midterm Exam # 2 Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Midterm Exam 2 When: Monday (11/05) 12:10 pm -1pm

More information

Absolute C++ Walter Savitch

Absolute C++ Walter Savitch Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

Main Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University

Main Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University C Programming Notes Dr. Karne Towson University Reference for C http://www.cplusplus.com/reference/ Main Program #include main() printf( Hello ); Comments: /* comment */ //comment 1 Data Types

More information

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE1303. B.Tech. Year - II

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE1303. B.Tech. Year - II Subject Code: 01CE1303 Subject Name: Object Oriented Design and Programming B.Tech. Year - II Objective: The objectives of the course are to have students identify and practice the object-oriented programming

More information

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT Two Mark Questions UNIT - I 1. DEFINE ENCAPSULATION. Encapsulation is the process of combining data and functions

More information

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013 Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm

More information

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation.

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation. Lab 4 Functions Introduction: A function : is a collection of statements that are grouped together to perform an operation. The following is its format: type name ( parameter1, parameter2,...) { statements

More information

C-LANGUAGE CURRICULAM

C-LANGUAGE CURRICULAM C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals

More information

Programming. C++ Basics

Programming. C++ Basics Programming C++ Basics Introduction to C++ C is a programming language developed in the 1970s with the UNIX operating system C programs are efficient and portable across different hardware platforms C++

More information

LAB: INTRODUCTION TO FUNCTIONS IN C++

LAB: INTRODUCTION TO FUNCTIONS IN C++ LAB: INTRODUCTION TO FUNCTIONS IN C++ MODULE 2 JEFFREY A. STONE and TRICIA K. CLARK COPYRIGHT 2014 VERSION 4.0 PALMS MODULE 2 LAB: FUNCTIONS IN C++ 2 Introduction This lab will provide students with an

More information

CSC 210, Exam Two Section February 1999

CSC 210, Exam Two Section February 1999 Problem Possible Score 1 12 2 16 3 18 4 14 5 20 6 20 Total 100 CSC 210, Exam Two Section 004 7 February 1999 Name Unity/Eos ID (a) The exam contains 5 pages and 6 problems. Make sure your exam is complete.

More information

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be

More information

Tokens, Expressions and Control Structures

Tokens, Expressions and Control Structures 3 Tokens, Expressions and Control Structures Tokens Keywords Identifiers Data types User-defined types Derived types Symbolic constants Declaration of variables Initialization Reference variables Type

More information

Cpt S 122 Data Structures. Introduction to C++ Part II

Cpt S 122 Data Structures. Introduction to C++ Part II Cpt S 122 Data Structures Introduction to C++ Part II Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Topics Objectives Defining class with a member function

More information

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()

More information

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. 9 Self-Test Exercises p. 11 History Note p. 12 Programming and

More information

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and

More information

Higher Secondary Second Year COMPUTER SCIENCE Model question Paper - 3

Higher Secondary Second Year COMPUTER SCIENCE Model question Paper - 3 Higher Secondary Second Year COMPUTER SCIENCE Model question Paper - 3 Time : 2.30 Hrs] [Max Marks : 70 Part I Choose the correct answer: 15 1 = 15 1. Which of the following key deletes the characters

More information

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2013 C++ Programming Language Lab # 6 Functions C++ Programming Language Lab # 6 Functions Objective: To be familiar with

More information

FOURTH GRADE Mathematics Standards for the Archdiocese of Detroit

FOURTH GRADE Mathematics Standards for the Archdiocese of Detroit FOURTH GRADE Mathematics Standards for the Archdiocese of Detroit *Provide 3 dates for each standard Initial Date(s) Operations and Algebraic Thinking. Use the four operations with whole numbers to solve

More information

Problem Solving with C++

Problem Solving with C++ GLOBAL EDITION Problem Solving with C++ NINTH EDITION Walter Savitch Kendrick Mock Ninth Edition PROBLEM SOLVING with C++ Problem Solving with C++, Global Edition Cover Title Copyright Contents Chapter

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

Arithmetic Expressions in C

Arithmetic Expressions in C Arithmetic Expressions in C Arithmetic Expressions consist of numeric literals, arithmetic operators, and numeric variables. They simplify to a single value, when evaluated. Here is an example of an arithmetic

More information

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

KLiC C++ Programming. (KLiC Certificate in C++ Programming) KLiC C++ Programming (KLiC Certificate in C++ Programming) Turbo C Skills: Pre-requisite Knowledge and Skills, Inspire with C Programming, Checklist for Installation, The Programming Languages, The main

More information

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018) Lesson Plan Name of the Faculty Discipline Semester :Mrs. Reena Rani : Computer Engineering : IV Subject: OBJECT ORIENTED PROGRAMMING USING C++ Lesson Plan Duration :15 weeks (From January, 2018 to April,2018)

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

Fast Introduction to Object Oriented Programming and C++

Fast Introduction to Object Oriented Programming and C++ Fast Introduction to Object Oriented Programming and C++ Daniel G. Aliaga Note: a compilation of slides from Jacques de Wet, Ohio State University, Chad Willwerth, and Daniel Aliaga. Outline Programming

More information

Interview Questions of C++

Interview Questions of C++ Interview Questions of C++ Q-1 What is the full form of OOPS? Ans: Object Oriented Programming System. Q-2 What is a class? Ans: Class is a blue print which reflects the entities attributes and actions.

More information

C++ (classes) Hwansoo Han

C++ (classes) Hwansoo Han C++ (classes) Hwansoo Han Inheritance Relation among classes shape, rectangle, triangle, circle, shape rectangle triangle circle 2 Base Class: shape Members of a class Methods : rotate(), move(), Shape(),

More information

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli COMS W3101 Programming Language: C++ (Fall 2015) ramana@cs.columbia.edu Lecture-2 Overview of C continued C character arrays Functions Structures Pointers C++ string class C++ Design, difference with C

More information

C++ Programming: From Problem Analysis to Program Design, Third Edition

C++ Programming: From Problem Analysis to Program Design, Third Edition C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine

More information

3. Functions. Modular programming is the dividing of the entire problem into small sub problems that can be solved by writing separate programs.

3. Functions. Modular programming is the dividing of the entire problem into small sub problems that can be solved by writing separate programs. 1 3. Functions 1. What are the merits and demerits of modular programming? Modular programming is the dividing of the entire problem into small sub problems that can be solved by writing separate programs.

More information

California Standard Study Island Topic Common Core Standard

California Standard Study Island Topic Common Core Standard State: CA Subject: Math Grade Level: 4 California Standard Study Island Topic Standard NUMBER SENSE 1.0: Students understand the place value of whole numbers and decimals to two decimal places and how

More information

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309 A Arithmetic operation floating-point arithmetic, 11 12 integer numbers, 9 11 Arrays, 97 copying, 59 60 creation, 48 elements, 48 empty arrays and vectors, 57 58 executable program, 49 expressions, 48

More information

CSCI 6610: Intermediate Programming / C Chapter 12 Strings

CSCI 6610: Intermediate Programming / C Chapter 12 Strings ... 1/26 CSCI 6610: Intermediate Programming / C Chapter 12 Alice E. Fischer February 10, 2016 ... 2/26 Outline The C String Library String Processing in C Compare and Search in C C++ String Functions

More information

KOM3191 Object Oriented Programming Dr Muharrem Mercimek OPERATOR OVERLOADING. KOM3191 Object-Oriented Programming

KOM3191 Object Oriented Programming Dr Muharrem Mercimek OPERATOR OVERLOADING. KOM3191 Object-Oriented Programming KOM3191 Object Oriented Programming Dr Muharrem Mercimek 1 OPERATOR OVERLOADING KOM3191 Object-Oriented Programming KOM3191 Object Oriented Programming Dr Muharrem Mercimek 2 Dynamic Memory Management

More information

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli COMS W3101 Programming Language: C++ (Fall 2015) ramana@cs.columbia.edu Lecture-2 Overview of C continued C character arrays Functions Structures Pointers C++ string class C++ Design, difference with C

More information

LESSON 5 FUNDAMENTAL DATA TYPES. char short int long unsigned char unsigned short unsigned unsigned long

LESSON 5 FUNDAMENTAL DATA TYPES. char short int long unsigned char unsigned short unsigned unsigned long LESSON 5 ARITHMETIC DATA PROCESSING The arithmetic data types are the fundamental data types of the C language. They are called "arithmetic" because operations such as addition and multiplication can be

More information

Review. Modules. CS 151 Review #6. Sample Program 6.1a:

Review. Modules. CS 151 Review #6. Sample Program 6.1a: Review Modules A key element of structured (well organized and documented) programs is their modularity: the breaking of code into small units. These units, or modules, that do not return a value are called

More information

Number/Computation. addend Any number being added. digit Any one of the ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9

Number/Computation. addend Any number being added. digit Any one of the ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9 14 Number/Computation addend Any number being added algorithm A step-by-step method for computing array A picture that shows a number of items arranged in rows and columns to form a rectangle associative

More information

CS201 Latest Solved MCQs

CS201 Latest Solved MCQs Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session:

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session: ALIGARH MUSLIM UNIVERSITY Department of Computer Science Dated: 25-01-2016 JAVA Lab Assignment Course: MCA II nd Semester Academic Session: 2015-2016 CSM-241: Object Oriented Programming Using JAVA Note:

More information

Write a java program to prints the count of odd and even no s entered.

Write a java program to prints the count of odd and even no s entered. Dated: 27-01-2014 ALIGARH MUSLIM UNIVERSITY Department of Computer Science CS-2P1: Object Oriented Programming Using JAVA Java Lab Assignment Course: MCA (Semester-II nd ) Academic Session: 2013-2014 Note:

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name

More information

CS201 Some Important Definitions

CS201 Some Important Definitions CS201 Some Important Definitions For Viva Preparation 1. What is a program? A program is a precise sequence of steps to solve a particular problem. 2. What is a class? We write a C++ program using data

More information

Stratford upon Avon School Mathematics Homework Booklet

Stratford upon Avon School Mathematics Homework Booklet Stratford upon Avon School Mathematics Homework Booklet Year: 7 Scheme: 1 Term: 1 Name: Show your working out here Homework Sheet 1 1: Write 7:43 pm using the 24 hour clock 11: Find the area of this shape.

More information

Mathematics Curriculum

Mathematics Curriculum 6 G R A D E Mathematics Curriculum GRADE 6 5 Table of Contents 1... 1 Topic A: Area of Triangles, Quadrilaterals, and Polygons (6.G.A.1)... 11 Lesson 1: The Area of Parallelograms Through Rectangle Facts...

More information

CS 115 Exam 3, Spring 2010

CS 115 Exam 3, Spring 2010 Your name: Rules You must briefly explain your answers to receive partial credit. When a snippet of code is given to you, you can assume o that the code is enclosed within some function, even if no function

More information

To declare an array in C, a programmer specifies the type of the elements and the number of elements required by an array as follows

To declare an array in C, a programmer specifies the type of the elements and the number of elements required by an array as follows Unti 4: C Arrays Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type An array is used to store a collection of data, but it is often more useful

More information

A Fast Review of C Essentials Part I

A Fast Review of C Essentials Part I A Fast Review of C Essentials Part I Structural Programming by Z. Cihan TAYSI Outline Program development C Essentials Functions Variables & constants Names Formatting Comments Preprocessor Data types

More information

Understand the concept of volume M.TE Build solids with unit cubes and state their volumes.

Understand the concept of volume M.TE Build solids with unit cubes and state their volumes. Strand II: Geometry and Measurement Standard 1: Shape and Shape Relationships - Students develop spatial sense, use shape as an analytic and descriptive tool, identify characteristics and define shapes,

More information

Florida Math 0018 Correlation of the ALEKS course Florida Math 0018 to the Florida Mathematics Competencies - Lower

Florida Math 0018 Correlation of the ALEKS course Florida Math 0018 to the Florida Mathematics Competencies - Lower Florida Math 0018 Correlation of the ALEKS course Florida Math 0018 to the Florida Mathematics Competencies - Lower Whole Numbers MDECL1: Perform operations on whole numbers (with applications, including

More information

CS 162, Lecture 25: Exam II Review. 30 May 2018

CS 162, Lecture 25: Exam II Review. 30 May 2018 CS 162, Lecture 25: Exam II Review 30 May 2018 True or False Pointers to a base class may be assigned the address of a derived class object. In C++ polymorphism is very difficult to achieve unless you

More information

Central Valley School District Math Curriculum Map Grade 8. August - September

Central Valley School District Math Curriculum Map Grade 8. August - September August - September Decimals Add, subtract, multiply and/or divide decimals without a calculator (straight computation or word problems) Convert between fractions and decimals ( terminating or repeating

More information

CSE101-lec#12. Designing Structured Programs Introduction to Functions. Created By: Amanpreet Kaur & Sanjeev Kumar SME (CSE) LPU

CSE101-lec#12. Designing Structured Programs Introduction to Functions. Created By: Amanpreet Kaur & Sanjeev Kumar SME (CSE) LPU CSE101-lec#12 Designing Structured Programs Introduction to Functions Created By: Amanpreet Kaur & Sanjeev Kumar SME (CSE) LPU Outline Designing structured programs in C: Counter-controlled repetition

More information

Introduction to C++ Systems Programming

Introduction to C++ Systems Programming Introduction to C++ Systems Programming Introduction to C++ Syntax differences between C and C++ A Simple C++ Example C++ Input/Output C++ Libraries C++ Header Files Another Simple C++ Example Inline Functions

More information

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Fundamental of C Programming Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Q2. Write down the C statement to calculate percentage where three subjects English, hindi, maths

More information

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010 Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of MCA III SEM Session -2010 MCA-301 - Object Oriented Programming in C++ 1. WAP to generate Fibonacci

More information

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010 CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011 Lectures 1-22 Moaaz Siddiq Asad Ali Latest Mcqs MIDTERM EXAMINATION Spring 2010 Question No: 1 ( Marks: 1 ) - Please

More information

CSc 328, Spring 2004 Final Examination May 12, 2004

CSc 328, Spring 2004 Final Examination May 12, 2004 Name: CSc 328, Spring 2004 Final Examination May 12, 2004 READ THIS FIRST Fill in your name above. Do not turn this page until you are told to begin. Books, and photocopies of pages from books MAY NOT

More information

Exercise: Inventing Language

Exercise: Inventing Language Memory Computers get their powerful flexibility from the ability to store and retrieve data Data is stored in main memory, also known as Random Access Memory (RAM) Exercise: Inventing Language Get a separate

More information

Ch. 11: References & the Copy-Constructor. - continued -

Ch. 11: References & the Copy-Constructor. - continued - Ch. 11: References & the Copy-Constructor - continued - const references When a reference is made const, it means that the object it refers cannot be changed through that reference - it may be changed

More information

S Y B Voc Software Development Syllabus

S Y B Voc Software Development Syllabus S Y B Voc Software Development Syllabus Course Level Job Roles Course Name: Pattern: Examination Pattern: Eligibility: Medium of Instruction: NSQF Level-VI 1. Jr. Software Developer 2. Trainer Software

More information

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

Quiz Start Time: 09:34 PM Time Left 82 sec(s) Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

STRAND 1 NUMBER and OPERATIONS

STRAND 1 NUMBER and OPERATIONS STRAND 1 NUMBER and OPERATIONS Understand division of whole numbers N.MR.05.01 Understand the meaning of division of whole numbers with and without remainders; relate division to fractions and to repeated

More information

C Programs: Simple Statements and Expressions

C Programs: Simple Statements and Expressions .. Cal Poly CPE 101: Fundamentals of Computer Science I Alexander Dekhtyar.. C Programs: Simple Statements and Expressions C Program Structure A C program that consists of only one function has the following

More information

CS 376b Computer Vision

CS 376b Computer Vision CS 376b Computer Vision 09 / 25 / 2014 Instructor: Michael Eckmann Today s Topics Questions? / Comments? Enhancing images / masks Cross correlation Convolution C++ Cross-correlation Cross-correlation involves

More information

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University) Estd: 1994 JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli - 621014 (An approved by AICTE and Affiliated to Anna University) ISO 9001:2000 Certified Subject Code & Name : CS 1202

More information

Assignment 2: Temperature Class

Assignment 2: Temperature Class Assigned: September 23, 2016 Due: October 03, 2016, 11:59:59pm Assignment 2: Temperature Class Purpose The purpose of this project is to provide you more practice with implementing classes. Here you will

More information

Subject: Computer Science

Subject: Computer Science Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program

More information

STRUCTURING OF PROGRAM

STRUCTURING OF PROGRAM Unit III MULTIPLE CHOICE QUESTIONS 1. Which of the following is the functionality of Data Abstraction? (a) Reduce Complexity (c) Parallelism Unit III 3.1 (b) Binds together code and data (d) None of the

More information

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year Object Oriented Programming Assistant Lecture Omar Al Khayat 2 nd Year Syllabus Overview of C++ Program Principles of object oriented programming including classes Introduction to Object-Oriented Paradigm:Structures

More information

Prime Time (Factors and Multiples)

Prime Time (Factors and Multiples) CONFIDENCE LEVEL: Prime Time Knowledge Map for 6 th Grade Math Prime Time (Factors and Multiples). A factor is a whole numbers that is multiplied by another whole number to get a product. (Ex: x 5 = ;

More information

Honors Computer Science C++ Mr. Clausen Program 6A, 6B, 6C, & 6G

Honors Computer Science C++ Mr. Clausen Program 6A, 6B, 6C, & 6G Honors Computer Science C++ Mr. Clausen Program 6A, 6B, 6C, & 6G Special Note: Every program from Chapter 4 to the end of the year needs to have functions! Program 6A: Celsius To Fahrenheit Or Visa Versa

More information

6 Mathematics Curriculum

6 Mathematics Curriculum New York State Common Core 6 Mathematics Curriculum GRADE GRADE 6 MODULE 5 Table of Contents 1 Area, Surface Area, and Volume Problems... 3 Topic A: Area of Triangles, Quadrilaterals, and Polygons (6.G.A.1)...

More information

BEGINNING PROBLEM-SOLVING CONCEPTS FOR THE COMPUTER. Chapter 2

BEGINNING PROBLEM-SOLVING CONCEPTS FOR THE COMPUTER. Chapter 2 1 BEGINNING PROBLEM-SOLVING CONCEPTS FOR THE COMPUTER Chapter 2 2 3 Types of Problems that can be solved on computers : Computational problems involving some kind of mathematical processing Logical Problems

More information

Time: 3 HOURS Maximum Marks: 100

Time: 3 HOURS Maximum Marks: 100 ANNA UNIVERSITY:CHENNAI 600 025 M.E/M.Tech. DEGREE EXAMINATIONS, NOV./DEC. 2014 Regulations 2013 Third Semester B.E. Computer Science and Engineering CS6311: PROGRAMMING AND DATA STRUCTURES LABORATORY

More information

Computer Programming C++ (wg) CCOs

Computer Programming C++ (wg) CCOs Computer Programming C++ (wg) CCOs I. The student will analyze the different systems, and languages of the computer. (SM 1.4, 3.1, 3.4, 3.6) II. The student will write, compile, link and run a simple C++

More information

Chapter 3 Syntax, Errors, and Debugging. Fundamentals of Java

Chapter 3 Syntax, Errors, and Debugging. Fundamentals of Java Chapter 3 Syntax, Errors, and Debugging Objectives Construct and use numeric and string literals. Name and use variables and constants. Create arithmetic expressions. Understand the precedence of different

More information

1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE?

1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE? 1. Describe History of C++? The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. One of the languages Stroustrup had the opportunity

More information

MCAS/DCCAS Mathematics Correlation Chart Grade 6

MCAS/DCCAS Mathematics Correlation Chart Grade 6 MCAS/DCCAS Mathematics Correlation Chart Grade 6 MCAS Finish Line Mathematics Grade 6 MCAS Standard DCCAS Standard DCCAS Standard Description Unit 1: Number Sense Lesson 1: Whole Number and Decimal Place

More information

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING OBJECT ORIENTED PROGRAMMING STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING 1. Object Oriented Programming Paradigms 2. Comparison of Programming Paradigms 3. Basic Object Oriented Programming

More information

C++ Arrays. Arrays: The Basics. Areas for Discussion. Arrays: The Basics Strings and Arrays of Characters Array Parameters

C++ Arrays. Arrays: The Basics. Areas for Discussion. Arrays: The Basics Strings and Arrays of Characters Array Parameters C++ Arrays Areas for Discussion Strings and Joseph Spring/Bob Dickerson School of Computer Science Operating Systems and Computer Networks Lecture Arrays 1 Lecture Arrays 2 To declare an array: follow

More information

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

More information

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER) COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER) 1. Selecting text with keyboard 2. Differ copying and moving 3. Text Editing 4. Creating a bulleted list 5. Creating

More information

Ch02. True/False Indicate whether the statement is true or false.

Ch02. True/False Indicate whether the statement is true or false. Ch02 True/False Indicate whether the statement is true or false. 1. The base class inherits all its properties from the derived class. 2. Inheritance is an is-a relationship. 3. In single inheritance,

More information

CHAPTER 4 FUNCTIONS. Dr. Shady Yehia Elmashad

CHAPTER 4 FUNCTIONS. Dr. Shady Yehia Elmashad CHAPTER 4 FUNCTIONS Dr. Shady Yehia Elmashad Outline 1. Introduction 2. Program Components in C++ 3. Math Library Functions 4. Functions 5. Function Definitions 6. Function Prototypes 7. Header Files 8.

More information