Mini Projects List


 Aleesha Parks
 2 years ago
 Views:
Transcription
1 Mini Projects List 1. Develop a mini project in C language using functions to perform the following operations a. Defining a user define function to copy one string into anther string b. Define a user define function to copy one string into another string up to a given number of characters. c. Define a user define function to print a given string in reverse order d. Define a user define function to join one string at the end of the another string 2. Develop a mini project in C language using functions to perform the following operations a. To calculate the percentage of vowels and consonants in a given line of text. b. Enter a line of text entering a combination of capitals, smalls, symbols and numerical. Carry out separation of capitals,smalls, symbols and numerical by using ASCII values from 48 to 122 c. To display alphabets as given below. az by cx dw ev fu gt h ir jq kp lo mn nm ol pk qj ri sh tg uf ve wd xc yb za d. to encrypt the text INDIA the output should be KPFKC ( A should be replaced with C, B with D and C with E and so on) e. Develop a decryption program for the encrypted text by above program. 3. Develop a mini project in C language using functions to perform the following operations a. Define a user define function to join one string at the end of another string b. Define a user define function to print a given string in reverse order c. Define a user define function to compare to given strings d. Define a user define function to calculate the length of given string. 4. Develop a mini project in C language to perform the following operations a. Accept 10 city names and the names of the state to which they belong. The program should accept a city name and search for its state name and display it. b. Accept names of n students and print them in descending sorted order. c. Accept a string with blanks.program should remove the blanks and print the string. 5. Develop a mini project in C language to perform the following operations. a. To find all possible combinations of characters from a five letter words b. To print the abbreviation of a given text c. Accept list of n student names and delete a student name from the given list d. Accept list of n student names and insert a student name into the given list. 6. Develop a mini project in C language to perform the following operations a. Accept a line of text and count all the occurrences of a particular letter given by the user. b. Accept a word and rewrite it in alphabetical order. c. Accept a sentence and delete a word from the sentence. Note that the word may appear any number of times.
2 d. Accept a line of text and find a string within the text and replace it with another string. 7. Develop a mini project to an interactive C program that will accept a date entered in the form ddmmyyyy(example ) And then display the corresponding day of the week,the month,the day,the year in a more logical manner. The day of the week corresponding to the specified date can be determined quiet easily, provided we know the day of the week corresponding to the base date. Let us arbitrary choose Monday,January 1,1900 as the base date.we will convert any date beyond January 1,1900(actually,any date between January 1, 1900 and December 31,2009) into an equivalent day of the week as follows: a. The day of the current year can be determined approximately as day=(int)(30.42*(mm1)+dd b. If mm=2(february) increase the value of day by 1. c. If mm>2 and mm<8(march,april,may,june or July) decrease the value of day by 1. d. If yyyy%4==0 and mm>2 (leap year) increase the value of day by 1 e. Increase the value of day by 1461 for each 4 year cycle beyond f. Increase day by 365 for each additional full year beyond the completion of the last full 4 years cycle then add 1(for the most recent leap year) g. If n days>59 (i.e if the date is any day beyond February 28,1900) decrease the value of n days by 1 because 1900 is not a leap year h. Determine the numerical day of the week corresponding to the specified date as say=( n days%7) if the input is the output should be Tuesday, October 29,1929. Note that day==1 corresponding to the base date which is a Monday or another date that also occurs on a Monday. Hence day==2 will refer to a Tuesday, day==3 will refer to Saturday and day ==0 will refer to a Sunday. 8. Develop a min project to print the calendar of given month. 9. Develop a mini project to perform the following operations a. To convert a decimal number in to binary, octal and hexadecimal number system 10. A mini project using array of structures to create a student structure with roll number, name, age, marks in 6 subjects with the following options i)sort by name ii)sort by age iii)sort by total marks. 11. Develop a mini project in C that contains a set of functions to perform the following operations i)read and write a complex number ii)addition of two complex numbers iii)subtraction of two complex numbers iv)multiplication of two complex numbers v) Division of two complex numbers
3 12. Develop a mini project by declaring a structure to store the following information of an employee employee code, name, salary, Department number,date of join (it is itself a structure consisting of day,month and year). Develop a mini project to store the data of n employees that contains the functions to perform following operations i)to display employee information getting the maximum and minimum salary ii)to display the employee details in department wise. ii)to display the employee details based on their designation. 13. Develop a mini project to perform the following operations on date structure by reading the date in the form 29, 4, i)print date in the format April 29,2002 if date is 31,4,2002 out put is April has 30 days, if date is 29,2,2002 out put is 2002 is not a leap year. ii) Read two dates and compare them.it returns 1 if date 1 is earlier than date2 returns 0 if date 1 is later date. iii) Find the number of days between given two dates. 14. Develop a project for Sorting of numbers in ascending order using function with array as arguments, using the following methods: Bubble Sort Selection Sort 15. Develop a mini project to read the input and perform the following operations a. Write a program to read a number and find whether it is even or odd and print Even if the given number is even number or print Odd if the given number is odd number or print not valid number if the given number is negative number. Test case Input A Output 1 4 Even Not valid number 3 57 Odd number b. Write a program to read two numbers from keyboard and print both are Odd and their sum if both given numbers are odd numbers or print XXX is Odd and Not valid if only one number is odd number out of the given two numbers or print Not valid if given two numbers are odd numbers as shown in the following test case. Test case Input A Input B Output Their sum Both are odd B is odd Not valid Both are not odd Not valid c. Write a program to read an integer number from the keyboard and print Even if coefficient is even whenever the given number was divided by 2 other wise print Odd and print Not valid number if the given number is negative integer.
4 Test case Input A Output /2 =10 is Even /2 = 11 is odd 344 Not valid number 16. Develop a mini project to accept a one dimensional array and apply the following operations a. Arrange all even numbers of the array after all odd numbers in sorted order Test case Input Output 1 [ 2 1 ] [1 2] 2 [ ] [ ] 3 [ ] [ ] b. Arrange all numbers in ascending order. Test case Input Output 1 [ 2 1 ] [1 2] 2 [ ] [ ] 3 [ ] [ ] c. Display all prime numbers in the given array integer numbers. d. A and B arrays of integers are merged into an array C in sorted order Ex: input output A = [2 7 4] B= [3 1 8] C = [ ] 17. Develop a mini project to check the type of the matrix a. Check the given matrix is skewsymmetric or not. b. Extract lower and upper triangles from square matrix. c. Display the position of largest and smallest element in the matrix. 18. Develop a mini project which accepts the marks of 20 students each student under goes five courses. a. Find out the average marks by each student. b. Find out over all average. c. List out the failed student name and marks with subject. 19. Develop a mini project which accepts Matrix A and B are of same size and display the following. a. B is the mirror of A Ex: input A output B
5 b. Find the value that occurs at least once in two matrices print its position in both matrices. c. Matrix B should contain the sorted list of each column of matrix A Ex: input A output B The Fibonacci series 0,1,2,3,5,8,13,21.. Begins with 0 and 1. It has the property that each subsequent Fibonacci number is the sum of the previous two Fibonacci numbers, that is the Fibonacci series is defined by the equation F k+2 =F k+1 + F k Write a function int Fibonacci(int n); To calculate the Fibonacci number with an argument for the series number.calculate all Fibonacci numbers in a program called Fibonacci. When k is 10, with the following constraint (a) Function fibonacci() should be non recursive (b) Function fibonacci() should be recursive (c) Function fibonacci() to print the prime Fibonacci elements (d) Function fibonacci() to print the Fibonacci numbers between given limits (e) Function Fibonacci() to check whether given number is Fibonacci number or not 21. Develop a mini project on C recursive functions for the following problems (a) Recursive function for finding squares and square roots of given number (b) Recursive function to find power of the given number (c) Recursive function to find sum of digits of given number (d) Recursive function to find reverse number of a given number 22. Develop a mini project in C to perform the following operations a. Devise a C function that sums all the elements of an array b. Devise a C function that checks whether two matrices can be multiplied or not, if yes multiply them. c. Devise a C function to check whether given matrices are equal or not
6 d. Devise a C function to check whether given matrix is skew symmetric matrix or not 23. Develop a mini project in C for the following problems using functions (a)function to accept real numbers and round them off to the nearest integer number, the program should provision for proper termination (b)function to check whether the given character is numeric or alphanumeric (c)function that reads a string and converts it into uppercase (d)function to generate the following series and print the it s sum (a) function to randomly allot 10 houses among 1000 applicants (b) function to accept roll number, maths, English marks and category of 10 students(i.e g,b,s).the program should calculate the average marks for each category of students.inaddion to this, program should have the provision of displaying appropriate error message if a character is entered in place of number and viceversa 24. Develop a project using nested structure, the two structures are declared within a single structure. The two inner structures are : dob ( fields : dd, mm, yy) and address (st, cty) and the outer structure Student ( fields : rollno, name) and display the details of N students. 25. Develop a project to read a string, which consists of both lower case characters and upper case characters. Convert the lowercase character into upper case and vice versa. Display the new string and the percentage of lower case characters and upper case characters in the original string. 26. Develop a project to Read 3 subject marks of 4 students. Write a program to calculate and display the total marks of each student. Use a 2D (twodimensional) array to store the marks. 27. Develop a project to if a company insures its employees in the following 3 cases :  if the employee is married.  if the employee is unmarried, male and above 30 years of age.  if the employee is unmarried, female and above 25 years of age. 28. In all other cases, the employee is not insured. If the marital status, sex, and age of the employee are the inputs, write a program to determine whether the employee should be insured or not. 29. Develop a project to search an element in an array using Binary Search linear search
7 30. Write a program to print the following table a
MLR Institute of Technology
MLR Institute of Technology DUNDIGAL 500 043, HYDERABAD COMPUTER SCIENCE AND ENGINEERING Computer Programming Lab List of Experiments S.No. Program Category List of Programs 1 Operators a) Write a C program
More informationVALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANKULATHUR 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK IN REVISED BLOOM S TAXONOMY
ACADEMIC YEAR: 0 7 VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANKULATHUR 0 0 SEMESTER: ODD BRANCH: MCA YEAR: I SEMESTER: I SUBJECT CODE AND NAME: MC70 Problem Solving and Programming NAME OF THE FACULTY
More informationMarathwada Institute of Technology
Marathwada Institute of Technology Master of Computer Application Title of the subject: Object Oriented Programming using C++ Course Code: MCA 101 Faculty: Shubhashree Savant Class: FY MCA Part  I (Question
More information2013 Five years Integrated M.Sc.(IT) Semester 1 060010101  Fundamentals of Programming
03 Five years Integrated M.Sc.(IT) Semester 00000  Fundamentals Programming File should contain. Problem Statement. Algorithm 3. Flowchart. Program in C language(code) 5. Output and sample calculation
More informationAP Computer Science Java Mr. Clausen Program 9A, 9B
AP Computer Science Java Mr. Clausen Program 9A, 9B PROGRAM 9A I m_sort_of_searching (20 points now, 60 points when all parts are finished) The purpose of this project is to set up a program that will
More informationA3R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE. Write a program to find sum of all prime numbers between 100 and 500.
A3R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE Assignment 1. Write a program to find sum of all prime numbers between 100 and 500. Assignment 2. Write a program to obtain sum of the first 10
More informationI PUC  Computer Science. Practical s Syllabus. Contents
I PUC  Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations
More informationData Representation in Computers
Chapter 3 Data Representation in Computers After studying this chapter the student will be able to: *Learn about binary, octal, decimal and hexadecimal number systems *Learn conversions between two different
More informationNumber Systems and Base Conversions
Number Systems and Base Conversions As you know, the number system that we commonly use is the decimal or base 10 number system. That system has 10 digits, 0 through 9. While it's very convenient for
More informationC programming: exercise sheet L2STUE (20112012)
C programming: exercise sheet L2STUE (20112012) Algorithms and Flowcharts Exercise 1: comparison Write the flowchart and associated algorithm that compare two numbers a and b. Exercise 2: 2 nd order
More informationLABORATORY MANUAL. CS4205 Programming and Problem Solving Using C. July 2012 Onwards. Devi Ahilya Vishwavidyalaya. School of Computer Science & IT
LORTORY MNUL CS4205 Programming and Problem Solving Using C July 202 Onwards Devi hilya Vishwavidyalaya School of Computer Science & IT We make things happen... Producing world class IT Professionals
More informationSequences and Mathematical Induction. CSE 215, Foundations of Computer Science Stony Brook University
Sequences and Mathematical Induction CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 Sequences A sequence is a function whose domain is all the integers
More informationSTRAND B: Number Theory. UNIT B2 Number Classification and Bases: Text * * * * * Contents. Section. B2.1 Number Classification. B2.
STRAND B: Number Theory B2 Number Classification and Bases Text Contents * * * * * Section B2. Number Classification B2.2 Binary Numbers B2.3 Adding and Subtracting Binary Numbers B2.4 Multiplying Binary
More informationMathematics of Cryptography
CHAPTER 2 Mathematics of Cryptography Part I: Modular Arithmetic, Congruence, and Matrices Objectives This chapter is intended to prepare the reader for the next few chapters in cryptography. The chapter
More informationAs we have discussed, digital circuits use binary signals but are required to handle
Chapter 2 CODES AND THEIR CONVERSIONS 2.1 INTRODUCTION As we have discussed, digital circuits use binary signals but are required to handle data which may be alphabetic, numeric, or special characters.
More informationPseudo code Tutorial and Exercises Teacher s Version
Pseudo code Tutorial and Exercises Teacher s Version Pseudocode is an informal way to express the design of a computer program or an algorithm in 1.45. The aim is to get the idea quickly and also easy
More informationProgramming Assignments
Programming Assignments 1. A number is called an Armstrong number if the sum of the cubes of the digits of the number is equal to the number. For example 153 = 1^3 + 5^3 + 3^3. Write a C program that asks
More informationLab Manual. Microprocessors I (Pr): COT214 Microprocessors Pr: IT315
Lab Manual Microprocessors I (Pr): COT214 Microprocessors Pr: IT315 Lab Instructions Several practicals / programs? Whether an experiment contains one or several practicals /programs One practical
More informationCourse learning outcomes
UCS130C/UCS230C COMPUTER CONCEPTS & C PROGRAMMING 4 CREDITS Hrs/Week :04 Total Hrs:48 CIE Marks:50 SEE Marks:50 Course learning outcomes At the end of the course student will be able to: 1. Identify the
More informationDigital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur
Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture  04 Digital Logic II May, I before starting the today s lecture
More informationUseful Microsoft Excel Functions & Formulas Theresa A Scott, MS Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.
Useful Microsoft Excel Functions & s Theresa Scott, MS Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.edu This document contains a series of examples that illustrate some useful
More informationBHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE
Certificate in Advanced Programming  C++ Language Page 1 of 7 BHARATHIAR UNIVERSITY: COIMBATORE 641046 CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++
More informationLevel Descriptors Maths Level 15
Level Descriptors Maths Level 15 What is APP? Student Attainment Level Descriptors APP means Assessing Pupil Progress. What are the APP sheets? We assess the children in Reading, Writing, Speaking & Listening,
More informationSANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (201415) ASSIGNMENT / QUESTION BANK (2110003) [F.Y.B.E.
SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (201415) ASSIGNMENT / QUESTION BANK Subject: Computer Programming and Utilization (2110003) [F.Y.B.E.: ALL BRANCHES] Unit 1
More informationChapter 4: Computer Codes
Slide 1/30 Learning Objectives In this chapter you will learn about: Computer data Computer codes: representation of data in binary Most commonly used computer codes Collating sequence 36 Slide 2/30 Data
More informationGTU Questions. Computer Programming & Utilization. Chief Course Coordinator Prof. Mitul K.Patel. (Head of Department & Assistant Professor)
GTU Questions Computer Programming & Utilization Chief Course Coordinator Prof. Mitul K.Patel (Head of Department & Assistant Professor) Course Coordinator Prof. Vrutti D. Shah (Assistant Professor) Lab
More informationNumber Representation
Number Representation Number System :: The Basics We are accustomed to using the socalled decimal number system Ten digits ::,,,3,4,5,6,7,8,9 Every digit position has a weight which is a power of Base
More informationMth 95 Module 2 Spring 2014
Mth 95 Module Spring 014 Section 5.3 Polynomials and Polynomial Functions Vocabulary of Polynomials A term is a number, a variable, or a product of numbers and variables raised to powers. Terms in an expression
More information[Page 70 (continued)] a. are used to document a program and improve its readability. [Page 71]
[Page 70 (continued)] Exercises 2.7 Discuss the meaning of each of the following objects: a. std::cin b. std::cout 2.8 Fill in the blanks in each of the following: a. are used to document a program and
More informationReview of Number Systems The study of number systems is important from the viewpoint of understanding how data are represented before they can be processed by any digital system including a computer. Different
More informationTheory of Computation Prof. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras
Theory of Computation Prof. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture No. # 31 Recursive Sets, Recursively Innumerable Sets, Encoding
More informationStats Review Chapters 34
Stats Review Chapters 34 Created by Teri Johnson Math Coordinator, Mary Stangler Center for Academic Success Examples are taken from Statistics 4 E by Michael Sullivan, III And the corresponding Test
More informationNumber Systems and. Data Representation
Number Systems and Data Representation 1 Lecture Outline Number Systems Binary, Octal, Hexadecimal Representation of characters using codes Representation of Numbers Integer, Floating Point, Binary Coded
More informationWord Problems. Simplifying Word Problems
Word Problems This sheet is designed as a review aid. If you have not previously studied this concept, or if after reviewing the contents you still don t pass, you should enroll in the appropriate math
More informationCompsci210 tutorial. C++ File IO
Compsci210 tutorial C++ File IO Input/Output with files It s important and has many applications: Copy files. Generate many files from a list of contacts. Search, replace strings in text files. C++ provides
More informationDiagonal, Symmetric and Triangular Matrices
Contents 1 Diagonal, Symmetric Triangular Matrices 2 Diagonal Matrices 2.1 Products, Powers Inverses of Diagonal Matrices 2.1.1 Theorem (Powers of Matrices) 2.2 Multiplying Matrices on the Left Right by
More informationMathematics of Cryptography Modular Arithmetic, Congruence, and Matrices. A Biswas, IT, BESU SHIBPUR
Mathematics of Cryptography Modular Arithmetic, Congruence, and Matrices A Biswas, IT, BESU SHIBPUR McGrawHill The McGrawHill Companies, Inc., 2000 Set of Integers The set of integers, denoted by Z,
More informationSessions 1, 2 and 3 Number Systems
COMP 1113 Sessions 1, 2 and 3 Number Systems The goal of these three class sessions is to examine ways in which numerical and text information can be both stored in computer memory and how numerical information
More informationKENDRIYA VIDYALAYA TIRUMALAGIRI HOLIDAY HOMEWORK CLASS XII COMPUTER SCIENCE (083) C++ Practice Problems
(i).there are 39 problems. KENDRIYA VIDYALAYA TIRUMALAGIRI HOLIDAY HOMEWORK CLASS XII COMPUTER SCIENCE (083) C++ Practice Problems 1. What is the exact output of the program below? Indicate a blank space
More informationChapter No.5 DATA REPRESENTATION
Chapter No.5 DATA REPRESENTATION Q.5.01 Complete the following statements. i) Data is a collection of ii) Data becomes information when properly. iii) Octal equivalent of binary number 1100010 is iv) 2
More informationUnit 2: Number Systems, Codes and Logic Functions
Unit 2: Number Systems, Codes and Logic Functions Introduction A digital computer manipulates discrete elements of data and that these elements are represented in the binary forms. Operands used for calculations
More informationJoy: Forth s Functional Cousin
Joy: Forth s Functional Cousin Manfred von Thun 9th October 2001 1 Synopsis of the language Joy The language Joy is a purely functional programming language. Whereas all other functional programming languages
More informationRepton Manor Primary School. Maths Targets
Repton Manor Primary School Maths Targets Which target is for my child? Every child at Repton Manor Primary School will have a Maths Target, which they will keep in their Maths Book. The teachers work
More informationBill Burton. Albert Einstein College of Medicine
Bill Burton Albert Einstein College of Medicine william.burton@einstein.yu.edu Creating basic pivot tables Customizing the format and appearance of pivot tables Grouping, sorting, and filtering data (including
More informationNumber System. Some important number systems are as follows. Decimal number system Binary number system Octal number system Hexadecimal number system
Number System When we type some letters or words, the computer translates them in numbers as computers can understand only numbers. A computer can understand positional number system where there are only
More information9 Control Statements. 9.1 Introduction. 9.2 Objectives. 9.3 Statements
9 Control Statements 9.1 Introduction The normal flow of execution in a high level language is sequential, i.e., each statement is executed in the order of its appearance in the program. However, depending
More informationSwitching Circuits & Logic Design
Switching Circuits & Logic Design JieHong Roland Jiang 江介宏 Department of Electrical Engineering National Taiwan University Fall 2013 1 1 Number Systems and Conversion Babylonian number system (3100 B.C.)
More informationSolving Systems of Linear Equations Using Matrices
Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.
More information10CS35: Data Structures Using C
CS35: Data Structures Using C QUESTION BANK REVIEW OF STRUCTURES AND POINTERS, INTRODUCTION TO SPECIAL FEATURES OF C OBJECTIVE: Learn : Usage of structures, unions  a conventional tool for handling a
More information13. NUMBERS AND DATA 13.1 INTRODUCTION
13. NUMBERS AND DATA 13.1 INTRODUCTION Base 10 (decimal) numbers developed naturally because the original developers (probably) had ten fingers, or 10 digits. Now consider logical systems that only have
More informationCMPS 10 Winter Homework Assignment 5
CMPS 10 Winter 2011 Homework Assignment 5 Problems: Chapter 4 (p.184): 1abc, 3abcd, 4ab, 5abc, 6, 7, 9abcd, 15abcd, 17, 18, 19, 20 1. Given our discussion of positional numbering systems in Section 4.2.1,
More informationEncoding Systems: Combining Bits to form Bytes
Encoding Systems: Combining Bits to form Bytes Alphanumeric characters are represented in computer storage by combining strings of bits to form unique bit configuration for each character, also called
More information2011, The McGrawHill Companies, Inc. Chapter 3
Chapter 3 3.1 Decimal System The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through
More informationOct: 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
More informationCS 6202 PROGRAMMING & DATA STRUCTURESI PARTB UNITI ANNA UNIVERSITY QUESTIONS
PARTB UNITI 1. Write a function that returns a pointer to the maximum value of an array of double s.if the array is empty,return null? (8) Double*maximum(double*a,int size); 2. Write a c program to find
More informationIntroduction to Search Algorithms
Chapter 9: Searching, Sorting Introduction to Search Algorithms Search: locate an item in a list (array, vector, etc.) of information Two algorithms (methods) considered here: Linear search Binary search
More information94 Counting Solutions for Chapter 3. Section 3.2
94 Counting 3.11 Solutions for Chapter 3 Section 3.2 1. Consider lists made from the letters T, H, E, O, R, Y, with repetition allowed. (a How many length4 lists are there? Answer: 6 6 6 6 = 1296. (b
More informationFormatting Variables in CMax 2.0
Formatting Variables in CMax 2.0 One of the many new features in CMax 2.0 is the enhanced formatting now available for variables. This new capability is available in two distinct areas of variable usage:
More informationCSC 1103: Digital Logic. Lecture Six: Data Representation
CSC 1103: Digital Logic Lecture Six: Data Representation Martin Ngobye mngobye@must.ac.ug Mbarara University of Science and Technology MAN (MUST) CSC 1103 1 / 32 Outline 1 Digital Computers 2 Number Systems
More informationNumbers represented using groups of bits (1s and 0s) are said to be BINARY NUMBERS. Binary numbers are said to be in base 2.
DATA REPRESENTATION All data used by computers is in code form, based on the two digits 0 and 1. This is so, in order to reflect the twostate components of which these digital systems are made. Numbers
More informationA First Book of C++ Chapter 2 Data Types, Declarations, and Displays
A First Book of C++ Chapter 2 Data Types, Declarations, and Displays Objectives In this chapter, you will learn about: Data Types Arithmetic Operators Variables and Declarations Common Programming Errors
More informationConditionals (with solutions)
Conditionals (with solutions) For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations: final int MAX = 25, LIMIT = 100; int num1 = 12, num2 = 25, num3 = 87;
More informationA. V. Gerbessiotis CS Spring 2014 PS 3 Mar 24, 2014 No points
A. V. Gerbessiotis CS 610102 Spring 2014 PS 3 Mar 24, 2014 No points Problem 1. Suppose that we insert n keys into a hash table of size m using open addressing and uniform hashing. Let p(n, m) be the
More informationChapter 3: Elementary Number Theory and Methods of Proof. January 31, 2010
Chapter 3: Elementary Number Theory and Methods of Proof January 31, 2010 3.4  Direct Proof and Counterexample IV: Division into Cases and the QuotientRemainder Theorem QuotientRemainder Theorem Given
More informationThe string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
More informationChapter 4  Decimals
Chapter 4  Decimals $34.99 decimal notation ex. The cost of an object. ex. The balance of your bank account ex The amount owed ex. The tax on a purchase. Just like Whole Numbers Place Value  1.23456789
More informationDigital Fundamentals
Digital Fundamentals with PLD Programming Floyd Chapter 2 29 Pearson Education Decimal Numbers The position of each digit in a weighted number system is assigned a weight based on the base or radix of
More informationDynamic Programming. Applies when the following Principle of Optimality
Dynamic Programming Applies when the following Principle of Optimality holds: In an optimal sequence of decisions or choices, each subsequence must be optimal. Translation: There s a recursive solution.
More informationLabVIEW Day 3: Arrays and Clusters
LabVIEW Day 3: Arrays and Clusters Vern Lindberg By now you should be getting used to LabVIEW. You should know how to Create a Constant, Control, or Indicator. I will assume you know how to create a new
More informationUniversity of Bahrain
Dr. Ali Alsaffar & Dr. Hasan Kamal 1 1 Introduction Problems University of Bahrain College of Information Technology Department of Computer Science CSC100/ITCS101 Introduction to Computers and IT 1. Write
More informationNumber Systems I. CIS0082 Logic and Foundations of Mathematics. David Goodwin. 11:00, Tuesday 18 th October
Number Systems I CIS0082 Logic and Foundations of Mathematics David Goodwin david.goodwin@perisic.com 11:00, Tuesday 18 th October 2011 Outline 1 Number systems Numbers Natural numbers Integers Rational
More informationAssembler Directives (cont..)
ASSUME DB  Defined Byte. DD  Defined Double Word DQ  Defined Quad Word DT  Define Ten Bytes DW  Define Word M. Krishna Kumar MAM/M2/LU6/V1/2004 1 ASSUME Directive  The ASSUME directive is used to
More informationFor decimal numbers we have 10 digits available (0, 1, 2, 3, 9) For binary numbers we have 2 digits available, 0 and 1.
Math 167 Ch 17 Review 1 (c) Janice Epstein, 2014 CHAPTER 17 INFORMATION SCIENCE Binary and decimal numbers a short review: For decimal numbers we have 10 digits available (0, 1, 2, 3, 9) 4731 = For binary
More information= is the kth binomial coefficinet in the binomial. Pascal's rule, with states if Ck. expansion of ( x y)
2008 summer course Clanguage midterm Date : 2008/7/14 ~ 2008/7/27 hand over electronic paper (don t hand over handwriting paper) on Monday, 28 July. You can edit your result in this document file directly.
More informationSection 3.3 Equivalence Relations
1 Section 3.3 Purpose of Section To introduce the concept of an equivalence relation and show how it subdivides or partitions a set into distinct categories. Introduction Classifying objects and placing
More informationRepetition and Loops. Additional Python constructs that allow us to effect the (1) order and (2) number of times that program statements are executed.
New Topic Repetition and Loops Additional Python constructs that allow us to effect the (1) order and (2) number of times that program statements are executed. These constructs are the 1. while loop and
More informationPositional 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
More informationLooping Exercises Deciding Which Loop to Use
Looping Exercises Deciding Which Loop to Use At this time you have learned four looping constructs (also called repetition statements). Each of these four loops are ideal to use in different situations.
More informationFBCA02 April2007 Programming in C Language BCA102 (New Course)
Seat No. : FBCA02 April2007 Programming in C Language BCA102 (New Course) Time : 3 Hours] [Max. Marks : 70 Instructions : (1) Figures to the right indicate full marks of the question. (2) Make and state
More informationSOLUTIONS TO HOMEWORK 1  MATH 170, SUMMER SESSION I (2012)
SOLUTIONS TO HOMEWORK 1  MATH 170, SUMMER SESSION I (2012) (1) In class, we had used Pigeonhole Principle to show that if we choose any 6 numbers from {1, 2, 3, 4, 5, 6, 7, 8, 9}, at least two of those
More informationIntroduction Number Systems and Conversion
UNIT 1 Introduction Number Systems and Conversion Objectives 1. Introduction The first part of this unit introduces the material to be studied later. In addition to getting an overview of the material
More informationSystems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems  Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x
More informationCOMPUTER SCIENCE. Paper 1 (THEORY)
COMPUTER SCIENCE Paper 1 (THEORY) (Three hours) Maximum Marks: 70 (Candidates are allowed additional 15 minutes for only reading the paper. They must NOT start writing during this time) 
More informationA Brief Primer on Matrix Algebra
A Brief Primer on Matrix Algebra A matrix is a rectangular array of numbers whose individual entries are called elements. Each horizontal array of elements is called a row, while each vertical array is
More informationUnit 1. 5. Write iterative and recursive C functions to find the greatest common divisor of two integers. [6]
Unit 1 1. Write the following statements in C : [4] Print the address of a float variable P. Declare and initialize an array to four characters a,b,c,d. 2. Declare a pointer to a function f which accepts
More informationCourse Topics  Outline
Course Topics  Outline Lecture 1  Introduction Lecture 2  Lexical conventions Lecture 3  Data types Lecture 4  Operators Lecture 5  Behavioral modeling Lecture 6  Data flow modeling Lecture 7 
More informationMATH REVIEW KIT. Reproduced with permission of the Certified General Accountant Association of Canada.
MATH REVIEW KIT Reproduced with permission of the Certified General Accountant Association of Canada. Copyright 00 by the Certified General Accountant Association of Canada and the UBC Real Estate Division.
More informationChapter 1 Digital Systems and Information
Logic and Computer Design Fundamentals Chapter 1 Digital Systems and Information Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc. Overview Digital Systems, Computers, and Beyond Information
More informationChapter 4. Binary Data Representation and Binary Arithmetic
Christian Jacob Chapter 4 Binary Data Representation and Binary Arithmetic 4.1 Binary Data Representation 4.2 Important Number Systems for Computers 4.2.1 Number System Basics 4.2.2 Useful Number Systems
More informationPart 1 Theory Fundamentals
Part 1 Theory Fundamentals 2 Chapter 1 Information Representation Learning objectives By the end of this chapter you should be able to: show understanding of the basis of different number systems show
More informationDatabase Concepts Using Microsoft Access
Database Concepts Using Microsoft Access lab 9 Objectives: Upon successful completion of Lab 9, you will be able to Understand fundamental concepts including database, table, record, field, field name,
More informationNumber Representation
Number Representation CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Topics to be Discussed How are numeric data
More informationLESSON 1 PRIME NUMBERS AND FACTORISATION
LESSON 1 PRIME NUMBERS AND FACTORISATION 1.1 FACTORS: The natural numbers are the numbers 1,, 3, 4,. The integers are the naturals numbers together with 0 and the negative integers. That is the integers
More informationLogic Design. Dr. Yosry A. Azzam
Logic Design Dr. Yosry A. Azzam Binary systems Chapter 1 Agenda Binary Systems : Binary Numbers, Binary Codes, Binary Logic ASCII Code (American Standard Code for Information Interchange) Boolean Algebra
More informationMicrosoft Excel: Math and Functions Basics
Microsoft Excel: Math and Functions Basics Fill Handle The Fill Handle is in the bottom left corner of the selected cell. When you place your mouse over this handle, it changes from a thick white selection
More informationChapter 4: Systems of Equations and Ineq. Lecture notes Math 1010
Section 4.1: Systems of Equations Systems of equations A system of equations consists of two or more equations involving two or more variables { ax + by = c dx + ey = f A solution of such a system is an
More informationa 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.
Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given
More informationGrade 6 Math Circles October 25 & 26, Number Systems and Bases
Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles October 25 & 26, 2016 Number Systems and Bases Numbers are very important. Numbers
More informationUseful 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
More information12 INPUT AND OUTPUT OF DATA
12 INPUT AND OUTPUT OF DATA 12.1 INTRODUCTION In C language input and output of data is done by a collection of library functions like getchar, putchar, scanf, printf, gets and puts. These functions permit
More information