PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM

Similar documents
Subject: Computer Science

PROGRAMMING IN C AND C++:

[6] [6] [6] [5] [5] [6] [5] [5]

Suggestive List of C++ Programs

Object Oriented Programming 2012

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

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

VALLIAMMAI ENGINEERING COLLEGE

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

Downloaded from

Practical List of. MCA IV SEM Session -2010

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104

Week 0. Net Salary =Earnings- deductions; Read the employee number, Basic Print employee Number, Earnings,Deductions and Net salary.

Lab Manual. Program Design and File Structures (P): IT-219

CP I LAB MANUAL. Expt No 2 To Check Whether A Year Is A Leap Year Using if-else-if.

Algorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm

Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES

Question Bank (SPA SEM II)

C- PROGRAMMING (3:0:0) Sub code : CS1C01/CS2C01 CIE : 50%Marks Hrs/week : 03 SEE : 50%Marks SEE Hrs : 03 Hours Max. Marks: 100 Course Outcomes:

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

UNIVERSITY OF MUMBAI T.Y.B.Sc.( INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER ASP.NET with C# Seat No. : Max.

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

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

PROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE

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

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

Questions Bank. 14) State any four advantages of using flow-chart

List of Practical for Master in Computer Application (5 Year Integrated) (Through Distance Education)

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

Loops / Repetition Statements

CSE 212 : JAVA PROGRAMMING LAB. IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL. Prepared By : Approved by :

LOOPS. 1- Write a program that prompts user to enter an integer N and determines and prints the sum of cubes from 5 to N (i.e. sum of 5 3 to N 3 ).

Tribhuvan University Institute of Science and Technology 2065

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm)

Practical Exercise 1 Question 1: The Hello World Program Write a Fortran 95 program to write out Hello World on the screen.

GEOMETRY. slide #3. 6th Grade Math Unit 7. 6th Grade Unit 7: GEOMETRY. Name: Table of Contents. Area of Rectangles

Lesson 24: Surface Area

Time: 3 HOURS Maximum Marks: 100

How to Do Word Problems. Study of Integers

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

1 Short Answer (15 Points Each)

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

Ascending. Load. Descending. Save. Exit. Numbers

Computer Science & Engineering. Second Year

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

Stratford upon Avon School Mathematics Homework Booklet

FUNDAMENTALS OF MICROPROCESSOR AND MICROCONTROLLER (FMM) SHREE RAMCHANDRA EDUCATION SOCIETY S DEPARTMENY OF ELECTRICAL ENGINEERING LAB MANUAL

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

Sample Paper Class XI Subject Computer Sience UNIT TEST II

Course Outlines. Elementary Mathematics (Grades K-5) Kids and Numbers (Recommended for K-1 students)

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

(i) Describe in detail about the classification of computers with their features and limitations(10)

A A B U n i v e r s i t y

KRISHNA KANTA HANDIQUI STATE OPEN UNIVERSITY Hiranya Kumar Bhuyan School of Science and Technology

OBJECT ORIENTED AND MULTICORE PROGRAMMING LABORATORY

Q1 Q2 Q3 Q4 Q5 Total 1 * 7 1 * 5 20 * * Final marks Marks First Question

Kadi Sarva Vishwavidyalaya, Gandhinagar

Syllabus Under Autonomy Mathematics

DEPARTMENT OF INFORMATION TECHNOLOGY

APCS-AB: Java. Recursion in Java December 12, week14 1

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

ANNA UNIVERSITY: CHENNAI B.E./B.Tech. DEGREE EXAMINATIONS, JAN Regulations First Semester (Common to All Branches )

UNIT 4: LENGTH, AREA, AND VOLUME WEEK 16: Student Packet

Chapter 1. Computer Overview

LIST OF EXPERIMENTS. (1) (Office Automation)

HIGER SECONDARY FIRST YEAR COMPUTER SCIENCE

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

Matrix Inverse 2 ( 2) 1 = 2 1 2

MA 511: Computer Programming Lecture 3: Partha Sarathi Mandal

List of Practical for Class XII Computer Science

SECTION A TRUE / FALSE QUESTIONS (10 MARKS) (INSTRUCTION: Please answer all 10 questions)

New York State Testing Program Mathematics Test

Review Guide for Term Paper (Teza)

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

Sai Nath University. Assignment For MCA 1 st

The Hyderabad Public School Begumpet, Hyderabad, A.P.

ENGINEERING PROBLEM SOLVING WITH C++

1. FIBONACCI SERIES. Write a C++ program to generate the Fibonacci for n terms. To write a C++ program to generate the Fibonacci for n terms.

Department of Computer Science & Engineering Indian Institute of Technology Kharagpur. Practice Sheet #05

Practice problems Set 2

VALLIAMMAI ENGINEERING COLLEGE

Grade 7 Mensuration - Perimeter, Area, Volume

CORE JAVA TRAINING COURSE CONTENT

Measures of Central Tendency

FOURTH GRADE Mathematics Standards for the Archdiocese of Detroit

1. Basics 1. Write a program to add any two-given integer. Algorithm Code 2. Write a program to calculate the volume of a given sphere Formula Code

Mathematics Year 9-11 Skills and Knowledge Checklist. Name: Class: Set : 4 Date Year 9 MEG :

C PROGRAMMING LAB MANUAL

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR

BUILD YOUR VOCABULARY

Area and Perimeter Name: Date:

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has.

AREA OF POLYGONS

Transcription:

PROGRAMS NORMAL PROGRAM 1. Wap to display months in words where month in number is input. 2. Wap to print Fibonacci series till n elements. 3. Wap to reverse 4 digit numbers. 4. Wap to accept a number separate out digits and print sum of all digits and also print separated digits. 5. Wap to check whether given input in even and odd. 6. Wap a menu driven program to calculate sin(x), cos(x), tan(x) and exit to dos. 7. Wap to take input as a number and calculate/print its square, cube, and forth power without any unnecessary calculations. 8. Wap to print 4 s table. 9. Wap to reverse a given number. 10. Wap to print all the prime no between r1 and r2.(where r1<r2). 11. Wap to calculate GCD and LCM. 12. Wap to calculate y where y=x n where y, x are real and n is natural no. 13. Wap to find factorial of given number. 14. menu driven program to 1.add 2.sud 3.mul 4.exit Program will quit when 4 is inputted else cal respective function to perform given operation. Page 1

ARRAYS 1. Wap to find largest in given list of n elements and also print its position. 2. Wap to delete specified element in array. 3. Wap to accept n multiply 20 real numbers. 4. Take an array (100), compute sum and average. then count the number of values Of x greater than the average and the number less than the average. print the Values, the average and the two counts. 5. Wap to take names and marks of 50 students and print them out in descending order of marks. 6. Wap to print the largest and the second largest elements in an array of n elements. 7. Wap to calculate distance s of an object in free fall. the formula is S=S1+V!*t+1/2at 2 Make the table of s for t=1, 5, 10, 15, 20, 25,..100. 8. Wap that builds tables of the tip speed of propeller having diameter d (an input value) for various shrank speeds, measured in revolutions per minute. Let s= 1000, 2000, 3000..80000. store the tip speeds and shrank speed in the table then print the tables. The formula for computing the angular velocity in radians/second. W=2 s/60 and the speed= (w*d)/2. 9. Wap to accept A(amount deposited),i(interest rate per year) and n (no. of years) from user and print F. F=A[(1+i/100) 1 +(1+i/100) 2 +(1+i/100) 3 +(1+i/100) n ] 10. Wap to calculate mean, variance and standard deviation of a set of numbers using the following formula. n Mean=1/n xi i=1 n Variance= 1/n (xi-mean) 2 i=1 Standard deviation=squareroot (variance) 11. One dimensional array a[j] has n elements. o Wap to cyclically permutes the values of A so that a[2] contains a[1],a[3] o Wap to interchange a[1]and a[2] if a[1]>a[2]and a[3]>a[4] so on Page 2

STRING OPERATION RELATED PROGRAM 1. Check whether the given string is palindrome or not. 2. Wap to remove extra blank places. 3. Wap to concate two strings in one. 4. Wap to reverse the given string. 5. Wap to accept no. in format 1,000 and print 1000. 6. Wap to find duplicate in the array and print the array without duplicate. 7. Wap to count the frequency of a given character in the string. 8. Wap to check whether given substring s2 exists in the string s1. 9. Wap to find all permutation of string. MATRIX RELATED PROGRAMS 1. Wap to make a magic square matrix of 3,5,7,9,11,13,15. 2. wap to take n x m matrix and print back only even rows elements row wise. 3. Wap to check that whether (A*B)^t=A^t*B^t Where matrix a is of M*L and matrix b is of L*N. 4. Wap to check whether matrix in symmetric or not. (A=A T ). 5. Wap to check whether given matrix is diagonal or not. 6. Wap to print only even no. of rows. 7. Wap to add, subtract, multiply two matrixes. 8. Find all the minmax or Saddle point in the given matrix. (Saddle point or minmax point is the point which is minimum in its row and Maximum in its column) Page 3

FUNCTIONS 1. wap to illustrate parameter passing technique to add two numbers. Call add (a,b, c) where a, b are parameters and c is reference to store answer. 1. Wap to print Fibonacci series till n elements using fibo(). 2. Wap recursive function to calculate GCD of given no. 3. Wap recursive function to calculate factorial of a given number. 4. Wap to calculate bio where bio=n! /(r!*(n-r)!) r,n are natural numbers. Use functions bio (). STRUCTURES 1. Wap to declare c structure for computer configuration having cpu type,sdrae-size, clock speed, hdd size, cdrome type(rom,r/w), cd rom speed, mouse-type, keyboard type, SVGA_monitor_make. Read info of 50 computers and list computers more than 8GB. 2. Wap to accept player s name, country, no of matches played and batting average. And print the list in descending order of the batting average. 3. Wap to accept records n students with structure name, date of birth, total marks obtained also use structure DOB to represent date of birth. Print the list in descending order of total marks. 4. Wap to declare structure for employee having name, e-code, salary. Read information for 30 employees and list only having salary greater than 10000. Page 4

OTHER PROGRAMS 1. Wap to print A B C D C B A A B C B A A B A A 2. Wap to print Pascal s triangle. 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 3. Floyd's triangle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Page 5

FROM THE CONCEPTS OF OOPS 1) Write a program in C++ to download + = operator to add 2 distances given in feet and inches. (10 Marks) 2) An educational institution wishes to maintain a database of its employees. The database is divided into a number of classes, as shown below. Specify all the classes and define functions to create a database and retrieve individual information as and when required. Assume necessary data. (10 Marks) Staff Code name Teacher Officer Subject Typist Grade experience Speed dept. experience Regular Basic sal. Casual Duration 3) Using constructor write a program in C++ to generate first n terms of Fibonacci Series. Fibonacci Series is 0,1. 1,2,3,5,8.. (10 Marks) Page 6

4) Create a class Float that contains one Float data member, overloaded all the four arithmetic operators so that they operate on the objects of FLOAT. 5) Create a base class Rectangle that contains Length and Width as data members. From this class drive a class named Box that has additional data members named depth. The function members of base Rectangle class should consist of a constructor and an area () function. The derived Box class should have a constructor and an override function named area () that returns the surface area of Box and a Volume function. Write a C++ program on above class calling all the member functions. (10 Marks) 6) Write a class to represent a vector (a series of float values) include member functions to perform the following task: i) To create the vector ii) To modify the value of a given element iii) To multiply by a scalar value iv) To display the vector in the form (10,20,30 ) (10 Marks) 7) Create a base class called shape. Use this class to store two double type values that could be used to compute the area of figures. Derive two specific classes called triangle and rectangle from the base shape. Add to the base class, a member function get_data () to initialize base class data members and another member function display_area () to compute and display the area of figures. Make display_area () as a virtual function and redefine this function in the derived classes to suit their requirements. Using these 3 classes, design a program that will accept dimensions of a rectangle and display the area. Remember the two values given as input will be trated as lengths of two sides in the case of rectangles, and as base and height in the case of triangles, and used as follows: Area of rectangle = x*y Area of triangle = (1/2)*x*y (9 Marks) 8) Write programs to evaluate different functions to 0.0001% accuracy: 1) sin x = x- (x3/3!)+(x5/5!)-(x7/7!)+.. 2) cos x = 1-(x2/2!)+(x4/4!)-(x6/6!)+ (5 Marks) Page 7

9) An educational institution wishes to maintain a database of its students. The database is divided into number of classes, whose relationships are shown below. Fig. below also shows the minimum information required for each class. Specify all the classes and define functions to create the database and retrieve individual information as and when required. (12 Marks) Student Roll no. Sports Score Test Mark 1 Mark 2 Results Score 10) Develop a class for linked list (Dynamic data structure) with the following member functions to carryout the following: (20 Marks) (i) Create a linked list of store set of integer data. (ii) Display the Linked list. (iii) Insert a node containing data in a sorted list (iv) Delete a node from the list containing a specific data. Use object as node rather than using a struct variable to model a node. Page 8

SEMESTER 2 CP II JAVA PROF. JOIN SOON Page 9