Sunteți pe pagina 1din 5

ANNA UNIVERSITY: CHENNAI 600 025 B.E/B.

.Tech Degree Examination Jan-2014 (Regulation 2013) First Semester (Common to all Branches) GE6161-Computer Programming Laboratory Time: 3 Hours 1. a. Write a C Program to find the roots of given quadratic equation Maximum Marks:100 50

b. Prepare a flowchart using MS-WORD to find the roots of a quadratic 50 equation 2. a. Prepare a flow chart using MS-WORD to find the largest of n values 50

b. Write a C program to calculate and display the total and average of the n 50 student marks 3. a. Write a C program to find whether the given number is even or odd 50

b. Write a C program to generate numbers between 20 and 100 which are 50 divisible by 2 and not divisible by 3 and 5 4. a. Write a C Program to print the given employee personal details using nested 75 structure b. Write a C program to find the area and circumference of a circle 5. 25

a. Create a WORD document to prepare a call letter to invite the students for 50 the graduation day using mail merge b. Write a C Program to generate Fibonacci series from 1 to n 50

6.

a. Write a C program for Matrix addition and Subtraction using two 70 dimensional arrays b. Write a C program to determine biggest among two numbers using ternary 30 operator

7.

a. Write a C program for finding String Length, String Concatenation, String 50 Comparison and String Copy without using Library function

b. Write a C program to check whether the given year is leap year or not 8. a. Write a C program to print all combinations of a 4-digit number b. Write a C program to sort the given names in alphabetic order 9.

50 50 50

a. Write a C program to find n C r using recursive function and conversion to its 50 corresponding flow chart. b. Write a C program to find maximum of given three numbers using parameter 50 passing

10.

a. Write a C program to find the factorial of given number using recursive 50 function and draw the corresponding flow chart. b. Write a C program to swap two numbers 50

11.

write a C Program to implement payroll application with the given data by using 100 structure. HRA=18% of basic Pay, DA=15% of Basic Pay , PF =10% of Basic Pay, LIC =7% of Basic Pay , Deduction= PF + LIC, Gross Salary = Basic Pay + HRA + DA Net Salary = Gross Salary Deduction a. Write a C program to find the sum of the following series: -x + x3 / 3! x5 / 50 5! + Adapt any method for solving the problem b. Create a bar chart in 3 Dimensional view to display the result analysis detail 50 (Over all Pass percentage) of the students from the given data: Sems\ Batch: 2007- Batch: 2008- Batch: Batches 2011 2012 2013 56 61 62.5 Semester-V 60 74.5 73 Semester-VI 82 79 Semester-VII 78 93 97 Semester-VIII 92 a. Write a C program to print the Transpose Matrix 2009-

12.

13.

50

b. Create a Graph for displaying the runs scored by India Vs England Cricket 50 Team in each over out of 20 overs as per the given data and present it with an animated results. Overs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

England 3 2 2 6 7 4 8 3 12 2 2 4 4 6 8 1 10 12 6 3 India 16 17 9 15 10 10 18 13 15 19 16 15 20 17 9 Total 155/9 156/6

7 7

3 4

2 5

13 11 15 10

14.

a. Write a C program to find minimum of given three numbers using parameter 50 passing. b. Writ a C program to find the min and max number in an array by using 50 Linear Search Technique.

15.

a. Write a C program for Matrix multiplications using two dimensional arrays b. Create a flow chart using MS-WORD to find the smallest of n values

50 50 50

16.

a. Write a C program to find whether the given string is Palindrome or not.

b. Create a Word document with neat title, boldness, underline, italics, fonts, 50 bullets with proper captions for the following given materials: Introduction to Computer In the beginning of the civilization, people used fingers and pebbles for computing purposes. The word digitus in Latin actually means finger and calculus means pebble. The term computer is derived from the word compute, which means to calculate. A computer is an electronic machine, devised for performing calculations and controlling operations that can be expressed either in logical or numerical terms. A computer is an electronic device that performs diverse operations with the help of instructions to process the information in order to achieve desired results. Applications of Computer - Computer covers huge areas of applications: Education Industries Government Medicine Scientific Research Computer have left such an impression on modern civilization that we call this era as the information age.

Characteristics of Computer: Speed: Computer process data at an extremely fast rate millions of instructions per second. The speed of a computer is calculated in MHz i.e. one million instructions per second. At present the powerful Computer can perform billions of operations per second. Accuracy: Computer are accurate. The level of accuracy depends on the instructions and the type of machine being used. Faulty instructions for data processing may lead to faulty results. This is known as GIGO (Garbage In Garbage Out) Diligence: Computer does not suffer from tiredness and lack of concentration. If four million calculations have to be performed, then the computer will perform from the first to last calculation with the same accuracy and speed. Reliability: Reliability is the measurement of performance of a computer. The major reason for this reliability is hardware which does not require any human intervention between its processing operations. Versatility: Computer are quite versatile in nature. They can perform multiple task simultaneously with great ease. Example: It can draft a letter, play music, print a document simultaneously etc by changing the program. Resource Sharing: Computer today have the capability to connect with each other. This has made the sharing of costly resources like printers possible. It can also share data and information thus creating a large information and knowledge base. 17. a. Write a C program to form the Pascals Triangle 50

b. Display the partition of a hard disk drive of capacity 500GB in to five 50 segments like C:, D:, E:, F: and G: @ different GBs in 3 D view with relevant detail with animation using pie chart. Name of HDD C: D: E: F: G: Drive Capacity 200 100 100 75 25 in GB a. Write a C program for sorting an array of N data in both Ascending and 50 Descending Order by using bubble sort. b. Calculate the pay roll using HRA, DA, TA, PF, GPF, LIC, Gross Salary, 50 Deductions and Net Salary from the below given data in a work sheet using MS Excel.

18.

ENO Name Basic 1 Ajai 20000

HRA is 18% of basic, DA is 15% of basic, TA is 12% of basic, PF is 10% of basic, GPF is 5% of basic, LIC is 7% of basic, GS (Gross salary) =Basis+HRA+DA+TA, DED (Deduction) =PF+GPF+LIC, NET (Net salary) =GS-DED

2 3 4 5

Roa Boobs Cathi Roy

15000 10000 7820 4569

19.

a. Write a C program to find the sum of N natural number using function.

50

b. Write a C program for finding String Length, String Concatenation, String 50 Comparison and String Copy with using Library function. 20. a. Write a C program to swap two number using pass by value and references b. Create an invitation colorfully using MS word. 21. 50 50

a. Write a C program to find the square and cube of a number using a function 50 declaration using the return statement. b. Write a C Program to find a given number is a prime number or not 50

22.

a. Write a C program to find the given number as an Armstrong number or not 50 using User defined function. b. Schedule the T20 match which is to be held at various parts(10) of India 50 using MS Word and Excel. Use minimum of 6 columns.

23.

Write a C Program to implement payroll application with the given data by using 100 structure. HRA=18% of basic Pay DA=15% of Basic Pay PF =10% of Basic Pay LIC =7% of Basic Pay Deduction= PF + LIC Gross Salary = Basic Pay + HRA + DA Net Salary = Gross Salary Deduction

24.

Write a C Program to print employee following personal details using nested 100 structure: Emp.Name, EmpId, DOB, Pan No, Phone, Address, City, Pin, Dept, Years of Experience Write a C Program to implement calculation of subject average of students using 100 union

25.

S-ar putea să vă placă și