Jawaharlal Nehru Technological University, Hyderabad
Courses, Admission Information & Eligibility
Faculties, Departments & Colleges
Notifications, Circulars & Announcements
Events, Conferences, Seminars & Workshops
Need help about a course? |
| Home / Syllabus / JNTU / B.Tech / 1999 / CS1009 Computer Programming Lab |
Ask a question Print this page |
Jawaharlal Nehru Technological University, Hyderabad
Courses, Admission Information & Eligibility
Faculties, Departments & Colleges
Notifications, Circulars & Announcements
Events, Conferences, Seminars & Workshops
CS1009 Computer Programming Lab
(Common for ECE, EEE, EIE, EContE, BME, CSE & CSIT)
3. Using WHILE statement write a C program to find the sum of 1+2+3+4..n
4. Repeat problem (3) using DO-WHILE statement.
5. Write C program using FOR statement to find the following from a given set of 20 integers
Y = 1 + (x2 / 2!) + (x4 / 4!) + (x6 / 6!) + up to 10 terms
7. Write a C program to obtain the product of two matrices A of size 3x3 and B of size 3 x 2. The resultant matrix C is to be printed out along with A and B. Assume suitable values for A & B.
8. Using Switch – Case statement, write a C program that takes two operands and one operator from the user, performs the operation and then prints the answer. Consider operators +,-,/,* and %.
9. Write in C, a function to evaluate Sin x using the series:
x + (x3 / 3!) + (x5 / 5!) + .. upto 7 th digit accuracy
Also write the main program that uses this function
10. Write C procedures to add, subtract, multiply and divide two complex numbers (x+iy) and (a+ib). Also write the main program that uses these procedures.
11. The total distance traveled by vehicle in ‘t’ seconds is given by distance = wt + ½ at2 where ‘u’ and ‘a’ are the initial velocity (m/sec.) and acceleration (m/sec2). Write C program to find the distance traveled at regular intervals of time given the value C2, ‘u’ and ‘a’. the program should provide the flexibility to the use to select his own time intervals and repeat the calculations for different values of ‘u’ and ‘a’.
12. Write C program that will read the value of x and evaluate the following functions:
Y = 1 for x > 0
Y = 0 for x = 0
Y= -1 for x < 0
Using 1) if statements ii) else..if statements and iii) conditional operator.
13. A cloth show room has announced the following seasonal discounts on purchase of items:
Purchase Amount – Discount (Percentages) on Mill Cloth – Handloom Items
1-100 - - 5.0
101-200 - 5.0 – 7.5
201-300 – 7.5 – 10.0
Above 300 – 10.0 – 15.0
Write C program using Switch and If Statements to complete the net amount to be paid by a customer
14. Given a number, write C program using while loop to reverse the digits of the number. Example 1234 to be written as 4321.
15. The Fibonacci Sequence of numbers is 1, 1, 2, 3, 5, 8 .. based on the recurrence relation: f(n) = f(n-1) + f(n-2) for n > 2
Write C program using do-while to calculate and print the first n Fibonacci numbers.
16. Write C program to print the following outputs using for loop:
i)
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
ii)
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
17. Write a C program to find the product of two matrices
18. Write a C program to extract a portion of a character string and print the extracted string. Assume that m characters are extracted starting with the nth character.
19. A Maruti Car dealer maintains a record of sales of various vehicles in the following form:
Vehicle Type - Month of Sales – Price (Rs.)
Maruthi 800 – 02/87 – 75,000
Maruthi DX – 07/87 – 95,000
Gypsy – 04/88 – 1,10,000
Maruthi Van – 08/88 – 85,000
Write a C program to read this data into a table of strings and output the details of a particular vehicle sold during a specified period. The program should request the user to input the vehicle type and the period (Starting month & ending month)
20. Write a function that will scan a character string passed as its argument and convert all lower case characters into their upper case equivalents.
21. Implement the following data structures using Arrays
i) Stacks
ii) Linear Queues
iii) Circular Queues
iv) Dequeue
22. Implement polynomial addition and multiplication with linked list sparse matrix.
23. Implement binary search tree using linked list and perform the following operations:
24. Singly linked list and double linked lists
25. i) Implement Stack using singly linked list
ii) Implement queue using singly linked list
26. Implement the following sorting techniques
i) Bubble Sort
ii) Insertion Sort
iii) Quick Sort
iv) Heap Sort
27. Implement the following searching methods
i) Sequential Search
ii) Binary Search
iii) Fibonacci Search
28. i) Conversation of Infix expression to Postfix notation
ii) Simple expressions evaluator, that can handle +, -, / and *
29. Implement the algorithms for the following iterative methods using C, to find one root of the equation
F(x) = x Sin x + Cos x = 0
30. Wright programs for implementing Gauss – Jordan and Gauss – Seidel methods for solving simultaneous algebraic equations given below:
9x1 + 2x2 + 4x3 = 20
x1 + 10x2 + 4x3 = 6
2x1 + 4x2 + 10x3 = -15
31. Write Computer programs to implement the Lagrange interpolation and Newton – Gregory forward interpolation.
32. Implement the ‘C’ the linear regression and polynomial regression algorithms
33. Implement Traezoidal and Simpson methods
34. Implement Runge – Kutta 4 th order method and Milne Predictor Corrector method
35. Practice Microsoft Word and prepare a formatted document which contains various fonts, a table etc.
36. Practice the creation and use of spread sheets and prepare a spread sheet application
37. Create a database Table and Implement Querying.
Engineering Colleges in India
Get the most comprehensive list of Engineering Colleges in India
Engineering Admission Notifications
Recent Notifications for admissions to various Engineering Colleges in India
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - IGNOU
Enter a detailed keyword. Ex: Syllabus of IGNOU Ist year BSc Computer Science course