MGM S JAWAHARLAL NEHRU ENGINEERING COLLEGE N-6, CIDCO, AURANGABAD LAB MANUALS SUB: COMPUTER LAB-II CLASS: S.E.CIVIL
|
|
- Gervais Cameron
- 6 years ago
- Views:
Transcription
1 MGM S JAWAHARLAL NEHRU ENGINEERING COLLEGE N-6, CIDCO, AURANGABAD LAB MANUALS (Procedure for conduction of Practical/Term Work) SUB: COMPUTER LAB-II CLASS: S.E.CIVIL Prepared by Ms.V.S.Pradhan Lab In charge
2 Exercise 1: Program for setting out of curves #include"stdio.h" #include"conio.h" #include"math.h" void main() { int r,angle,n,i; float y,x,t,ct,ch,cl,ct2,l,o,od,a; clrscr(); printf("\n Enter radious->"); scanf("%d",&r); printf("\nenter angle->"); scnaf("%d",&angle); printf("\nangle tan (angle)->"); x = (3.1417/180) * (angle/2); y = tan(x); printf("%d %f",angle,y); t1 = r * y; printf("\n\n tangent length = %f",t1); ct1=ch-t; printf("\n\nchainage of T1 %f",ct); c1 = ( *r*angle/180); printf("in curve length = %f",cl); ct2 = ct+cl; printf("\n\n chainage of T2 = %f",ct2); l=2*r*sin(x); printf("\n\nlength of l.c. = %f",l); o=r-sqrt((r*r)-(l/2)*(l/2));
3 printf("\n\n mid ordinate l.c. = %f",o); printf("\n\nenter no:-"); for(i=0;i<n;i++) printf("enter offset distance->"); scanf("%f",&od); g = sqrt((r*r)-(od-od))-(r-o); printf("\n\n A = %f",a); getch(); }
4 Exercise 2: Program for setting out of curves #include"stdio.h" #include"conio.h" #include"math.h" void main() { int rs, rl,as,al,pi,pi,t1,n; float xl,xs,yl,ys,ts,tl,bd,be,de,ts,tl,wl,ws,zl,zs,bl,ml,ms,cll,cls,cl,cs,ds,dl,ct1,ct2,ct3,isc,no,ifc,cc,fsc; clrscr(); printf("\nenter small radius->"); scanf("%d",&rs); printf("\nenter long radius->"); scanf("%d",&rl); printf("\nenter small angle->"); scanf("%d",&as); printf("\nenter long angle->"); scanf("%d",&al); xl=(3.1417/180)*(al/2); xs=(3.1417/180)*(as/2); yl=tan(xl); ys=tan(xs); ml=sin(xl); ms=sin(xs); printf("%d %f",al,yl,ml); printf("%d %f",as,ys,ms); t1=rl*yl; ts=rs*ys; printf("\n\nlong tangent length = %f",tl);
5 printf("\n\nsmall tangent length = %f",ts); de = (tl+ts); printf("\n\nlength of t2 = %f",de); wl = (3.1417/180)*al; ws = (3.1417/180)*as; zl = sin(wl); zs = sin(ws); printf("%d %f",al,wl); printf("%d %f",as,ws); bl=sin(wl+ws); printf("%d %f %f %f",al,wl,as,ws); be = (de*(zl/bl)); printf("\n\nlength of be = %f",be); bd = de*(zs/bl); printf("\n\nlength of db = %f",bd); ts = (bd+tl); printf("\n\ntotal langent length of small curve Ts = %f",ts); Tl=(be+ts); printf("\n\ntotal tangent length of long curve Tl = %f",tl); cls = (ws * rs); printf("\n\n shourt curve length = %f",cls); cll = (wl*rl); printf("\n\nshort curve length =%f",cll); cs = 2*rs*ms; cl = 2*rl*ml; printf("\n\n chort of shourt curve = %f",cs); printf("\n\nchour of long curve = %f",cl); ds = (1718*cs)/rs; dl = (1718/cl)/rl;
6 printf("\n\ndeflection angle of short curve = %f",ds); printf("\n\ndeflection angle of long curve = %f",dl); printf("\nenter point of intersection->"); scanf("%d",&pi); ct1=pi-tl; ct2=ct1+cls; printf("\n\nchainage of T1 = %f",ct1; ct2= ct1+cll; printf("\n\nchainage of T2 = %f",ct2); ct3 = ct2+cll; printf("\n\nchainage of T3 = %f",ct3); printf("\nenter round up value of ct1->"); scanf("%d",&t1); isc = t1-ct1; printf("\n\nlength of initial sub chord = %f",isc); printf("\nenter peg interval pi-"); scanf("%d",&pi); no = ((ct2-t1)/pi); printf("\n\nmultiplying factor for full chord = %f",no); printf("\nenter round up value of n ->"); scanf("%d",&n"); ifc = n*pi' printf("\n\n length of full chord = %f",lfc); cc=ct1+lfc; printf("\n\nchainage covered = %f",cc); fsc=ct2-cc; printf("\n\nlength of final sub chord = %f",fsc);
7 Exercise3: Program for estimation of head loss #include"stdio.h" #include"conio.h" #include"math.h" void main() { float l1,d1,q1,z1,l2,d2,z2,z2,l3,d3,f,hf1,hf2,ph,q3,q2,v1,v2,v3; clrscr(); printf("enter the value of q1,d1,f,l1,z1,l2,d2,d3,l3"); scanf("%f %f %f %f %f %f %f %f %f",&q1,&d1,&f,&l1,&z1,&l2,&d2,&d3,&l3); printf("\nvelocity = %f",v1); hf1=(4*f*l1*v1*v1)/(z*d1*9.81); printf("\nhead loss due to friction = %f",hf1); ph = z1-hf1; printf("\bpizometric head = %f",ph); hf2=z2-ph; printf("\nhead loss due to friction 2 = %f",hf2); v2=sqrt((hf2*d2*2*9.8)/(4*f*12)); printf("\n\nvelocity = %f",v2); q2=v2*(3.1417/4)*d2*d2); q3=q1+q2; printf("\n\ndischarge = %f",q3); v3=q3/((3.1417/4)*(d3*d3)); printf("\nvelocity v3 = %f",v3); hf3=(4*f*l3*v3*v3)/(d3*2*9.81); printf("\nhead loss due to friction 3 = %f",hf3); z3=ph-hf3; printf("\nht. of water in reservoir 3 = %f", z3);
8 getch(); }
9 Exercise 4: Program for estimation of Power Transmitted #include"stdio.h" #include"conio.h" #include"math.h" void main() { int h,n,q,no,w; float P,NS; clrscr(); printf("\nenter head H->"); scanf("%d",&h); printf("\nenter speed N->"); scanf("%d",&n"); printf("\nenter discharge q ->"); scanf("%d",&q); printf("\nenter overall efficiency no ->"); scanf("%d",&no); P=(no*9810*h*q); printf("\n\n power transmitted P = %f",p); ns = (n*sqrt(p))/(sqrt(sqrt(2*2*2*2*2))); printf("\n\n specific speed NS = %f",ns); getch(); }
10 Exercise 5: Program to compute a function at a given ---value using the Langrange Interpolation Method Algorithm: 1) Read n, the number of data points. 2) Read a[i] and corresponding function values b[i] for i=1 to n. 3) Read intermediate data value at which the polynomial should be evaluated. 4) Let sum=0. Sum will hold the result finally. 5) For i=1 to n, do the following steps. a) Initialize prod=1 b) For j=1 to n, if I does not equal j then c) Prod=prod*aa-a[i]/a[i]-a[j] d) Sum=sum+prod*b[i] and go to 5(a). 6) Print out the polynomial as sum. 7) Stop
11 Exercise 6: Solution of Simultaneous Equations using the Gauss Elimination Technique Algorithm: 1) Read n, the no of simultaneous equations. 2) Read row wise matrix a[ n,n+1], the matrix and right hand side constants. 3) Start the elimination process. A) For k=1 to (n-1) do the following. For i= (k+1) to n do steps (a) and (b) a) S=a[i,k]/a[k,k]. b) For j=(k+1) to (n+1) do a[i,j]= a[i,j]-s* a[k,j] B) For i= (k+1) to n, a[i,k]/=0 C) Go to start of step 3. 4) Start the back substitution process as follows: i) d[n] = a [n,n+1]/a[n,n]. ii) For m=1 to (n-10 do steps (a), (b), (c) and (d). a) Sum=0 b) I=n-m c) For j=(i+1) to n, Sum=Sum+ a[i,j]*d[i,j]. d) d[i] =(a[i,n+1]-sum)/ a[i,j] 5) For i=1 to n, print all x[i] 6) Stop
12 Exercise 7: Program for Fourth order Runge Kuttas Method to solve ordinary differential equations Algorithm: 1) Read n, the number of data intervals (n+1 are the data points) 2) Read a{1] and a[n+1], the first and last data points of the entire interval. 3) Compute h, the step size as h= (a[n+1]-a[1])/n 4) Generate the intermediate points for i=2 to n as a[i] = a[i-1]+h 5) Read b[1] the initial value of the function at a[1]. 6) Hence for i=2 to (n+1), generate the corresponding y values as a) K1 = f(a[i-j],b[i-1] b) K2= f(a[i-j] + 0.5*h, b[i-1]+0.5*h*k1) c) K3= f(a[i-j] + 0.5*h, b[i-1]+0.5*h*k2) d) K4= f(a[i-j] +h, b[i-1]+h*k3) e) b[i]= b[i-1]+((1/6)*k1+2*k2+2*k3+k4)*h 7) Print out x and y values for i=1 to (n+1) 8) Stop
13 Exercise 8: Program for Newton Raphsons Method Algorithm: 1) Declare x,y,a,b,i 2) X=(a+b)/2 3) For ( i= 1: i<=10; i++) 4) Y=(x-(f(x)/d(x)) 5) X=y 6) Stop
MAHATMA GANDHI MISSION S JAWAHARLAL NEHRU ENGINEERING COLLEGE, AURANGABAD. (M.S.)
MAHATMA GANDHI MISSION S JAWAHARLAL NEHRU ENGINEERING COLLEGE, AURANGABAD. (M.S.) DEPARTMENT OF CIVIL ENGINEERING COMPUTER LAB- II LAB MANUAL Prepared By Approved By Dr.V.S.Pradhan Dr. S. B. Shinde Lab
More informationNUMERICAL METHODS AND COMPUTATIONAL PROGRAMMING LAB MATH-204-F
LAB MANUAL NUMERICAL METHODS AND COMPUTATIONAL PROGRAMMING LAB MATH-204-F LIST OF EXPERIMENTS NUMERICAL METHODS OF COMPUTATIONAL PROGRAMMING LAB MATH-204-F S. No. NAME OF EXPERIMENTS 1. Solution of Non-linear
More informationPROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE
PROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE 1. Write a C program to perform addition, subtraction, multiplication and division of two numbers. # include # include int a, b,sum,
More informationNumerical Method (2068 Third Batch)
1. Define the types of error in numerical calculation. Derive the formula for secant method and illustrate the method by figure. There are different types of error in numerical calculation. Some of them
More information//2D TRANSFORMATION TRANSLATION, ROTATING AND SCALING. #include<stdio.h> #include<conio.h> #include<graphics.h> #include<math.h> #include<stdlib.
//2D TRANSFORMATION TRANSLATION, ROTATING AND SCALING #include #include #include #include #include void main() int gd=detect,gm,i,x[10],y[10],a,b,c,d,n,tx,ty,sx,sy,ch;
More informationList of Programs: Programs: 1. Polynomial addition
List of Programs: 1. Polynomial addition 2. Common operations on vectors in c 3. Matrix operation: multiplication, transpose 4. Basic Unit conversion 5. Number conversion: Decimal to binary 6. Number conversion:
More informationChapter - 2 Complexity of Algorithms for Iterative Solution of Non-Linear Equations
Chapter - Compleity of Algorithms for Iterative Solution of Non-Linear Equations Compleity of Algorithms for Iterative... 19 CHAPTER - Compleity of Algorithms for Iterative Solution of Non-Linear Equations.1
More informationArrays in C. By Mrs. Manisha Kuveskar.
Arrays in C By Mrs. Manisha Kuveskar. C Programming Arrays An array is a collection of data that holds fixed number of values of same type. For example: if you want to store marks of 100 students, you
More informationLAB MANUAL. ANTC Lab (ME-321- F) DEPARTMENT OF APPLIED SCIENCE AND HUMINITIES
LAB MANUAL ANTC Lab (ME-321- F) DEPARTMENT OF APPLIED SCIENCE AND HUMINITIES 1 Check list for Lab Manual S. No. Particulars Page Number 1 Mission and Vision 3 2 Guidelines for the student 4 3 List of Programs
More informationSRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY, VIRUDHUNAGAR Department of CSE & IT Internal Test I
SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY, VIRUDHUNAGAR Department of CSE & IT Internal Test I Year & Sem: I B.E (CSE) & II Date of Exam: 21/02/2015 Subject Code & Name: CS6202 & Programming & Data
More informationLABORATORY MANUAL APPLIED NUMERICAL TECHNIQUES AND COMPUTING LAB. ME 321 F
LABORATORY MANUAL APPLIED NUMERICAL TECHNIQUES AND COMPUTING LAB. ME 321 F LIST OF EXPERIMENTS APPLIED NUMERICAL TECHNIQUES AND COMP. SR.NO. NAME OF EXPERIMENTS DATE SIGNATURE 1. Solution of Non linear
More informationPESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities
PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities Continuous Internal Evaluation Test 2 Date: 0-10- 2017 Marks: 0 Subject &
More informationDEV BHOOMI INSTITUTE OF TECHNOLOGY
DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering Year: 2rd Semester: 3rd CBNST Lab-PCS-302 LAB MANUAL Prepared By: HOD (CSE) DEV BHOOMI INSTITUTE OF TECHNOLOGY Department
More informationOverview of Transformations (18 marks) In many applications, changes in orientations, size, and shape are accomplished with
Two Dimensional Transformations In many applications, changes in orientations, size, and shape are accomplished with geometric transformations that alter the coordinate descriptions of objects. Basic geometric
More informationQ 1. Attempt any TEN of the following:
Subject Code: 17212 Model Answer Page No: 1 / 26 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The
More informationProgram. SUBJECT: ACP (C - Programming) Array Program. // Find the minimum number from given N element. Prepared By : Dhaval R.
Program // Find the minimum number from given N element. #include #include void main() int a[50],i,n,min; clrscr(); printf("\n Enter array size : "); scanf("%d",&n); printf("\n Enter
More information'C' Programming Language
F.Y. Diploma : Sem. II [DE/EJ/ET/EN/EX] 'C' Programming Language Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define pointer. Write syntax
More informationSankha Narayan Bose B.Tech Student in Information Technology Department, Kalyani Government Engineering College,Krishnagar,Nadia,India
Empirical Problem Related To Variation in Population Ageing Between Males & Females over a Period from 1960 to 1981 by Making Use of Statistical Regression Technique & C Programming Language Sankha Narayan
More informationLab Manual B.Tech 1 st Year
Lab Manual B.Tech 1 st Year Fundamentals & Computer Programming Lab Dev Bhoomi Institute of Technology Dehradun www.dbit.ac.in Affiliated to Uttrakhand Technical University, Dehradun www.uktech.in CONTENTS
More informationStructured programming
Exercises 6 Version 1.0, 25 October, 2016 Table of Contents 1. Arrays []................................................................... 1 1.1. Declaring arrays.........................................................
More informationC Programming Lecture V
C Programming Lecture V Instructor Özgür ZEYDAN http://cevre.beun.edu.tr/ Modular Programming A function in C is a small sub-program that performs a particular task, and supports the concept of modular
More informationLABORATORY MANUAL. (CSE-103F) FCPC Lab
LABORATORY MANUAL (CSE-103F) FCPC Lab Department of Computer Science & Engineering BRCM College of Engineering & Technology Bahal, Haryana Aim: Main aim of this course is to understand and solve logical
More informationTutorial No. 2 - Solution (Overview of C)
Tutorial No. 2 - Solution (Overview of C) Computer Programming and Utilization (2110003) 1. Explain the C program development life cycle using flowchart in detail. OR Explain the process of compiling and
More informationA Study on Numerical Exact Solution of Euler, Improved Euler and Runge - Kutta Method
A Study on Numerical Exact Solution of Euler, Improved Euler and Runge - Kutta Method Mrs. P. Sampoornam P.K.R Arts College for Women, Gobichettipalayam Abstract: In this paper, I will discuss the Runge
More informationClassification s of Data Structures
Linear Data Structures using Sequential organization Classification s of Data Structures Types of Data Structures Arrays Declaration of arrays type arrayname [ arraysize ]; Ex-double balance[10]; Arrays
More informationAlgorithms Lab (NCS 551)
DRONACHARYA GROUP OF INSTITUTIONS, GREATER NOIDA Affiliated to Utter Pradesh Technical University Noida Approved by AICTE Algorithms Lab (NCS 551) SOLUTIONS 1. PROGRAM TO IMPLEMENT INSERTION SORT. #include
More informationWAP 10. WAP 11. WAP 12. WAP 13. WAP 14. WAP 15. WAP 16. WAP 1. : 17. WAP 18. WAP 19. WAP 20. WAP 21. WAP 22. WAP 23. WAP & 24. WAP
Contents 1. WAP to accept the value from the user and exchange the values.... 2 2. WAP to check whether the number is even or odd.... 2 3. WAP to Check Odd or Even Using Conditional Operator... 3 4. WAP
More informationRoute Surveying. Topic Outline
Route Surveying CE 305 Intro To Geomatics By Darrell R. Dean, Jr., P.S., Ph.D. Topic Outline Horizontal alignment Types of Horizontal Curves Degree of Curve Geometric elements of curve Station ti number
More informationFebruary 23 Math 2335 sec 51 Spring 2016
February 23 Math 2335 sec 51 Spring 2016 Section 4.1: Polynomial Interpolation Interpolation is the process of finding a curve or evaluating a function whose curve passes through a known set of points.
More informationGovernment Polytechnic Muzaffarpur.
Government Polytechnic Muzaffarpur. Name of the Lab: COMPUTER PROGRAMMING LAB (MECH. ENGG. GROUP) Subject Code: 1625408 Experiment: 1 Aim: Programming exercise on executing a C program. If you are looking
More informationComputer Programming. C Array is a collection of data belongings to the same data type. data_type array_name[array_size];
Arrays An array is a collection of two or more adjacent memory cells, called array elements. Array is derived data type that is used to represent collection of data items. C Array is a collection of data
More informationPrepared by: Shraddha Modi
Prepared by: Shraddha Modi Introduction Operator: An operator is a symbol that tells the Computer to perform certain mathematical or logical manipulations. Expression: An expression is a sequence of operands
More informationEngineering Surveying - II CE313. Route Survey Lecture 03 Muhammad Noman
Engineering Surveying - II CE313 Route Survey Lecture 03 Muhammad Noman Route Survey Route surveying is comprised of all survey operations required for design and construction of engineering works such
More informationKareemNaaz Matrix Divide and Sorting Algorithm
KareemNaaz Matrix Divide and Sorting Algorithm Shaik Kareem Basha* Department of Computer Science and Engineering, HITAM, India Review Article Received date: 18/11/2016 Accepted date: 13/12/2016 Published
More informationInternational Journal of Mathematics & Computing. Research Article
www.advancejournals.org Open Access Scientific Publisher Research Article C/C++ PROGRAM: DETERMINATION OF ENERGY BAND GAP FROM UV-VISIBLE SPECTROGRAPH RESULTS ABSTRACT Rajivgandhi S 1, Dinesh Kumar A 2,
More informationonly in the space provided. Do the rough work in the space provided for it. The question paper has total 12 pages.
Instructions: Answer all five questions. Total marks = 10 x 2 + 4 x 10 = 60. Time = 2hrs. Write your answer only in the space provided. Do the rough work in the space provided for it. The question paper
More informationUnit 5. Decision Making and Looping. School of Science and Technology INTRODUCTION
INTRODUCTION Decision Making and Looping Unit 5 In the previous lessons we have learned about the programming structure, decision making procedure, how to write statements, as well as different types of
More information/* Area and circumference of a circle */ /*celsius to fahrenheit*/
/* Area and circumference of a circle */ #include #include #define pi 3.14 int radius; float area, circum; printf("\nenter radius of the circle : "); scanf("%d",&radius); area = pi
More informationCS 108 Computing Fundamentals. October/November Array Bootcamp
CS 108 Computing Fundamentals October/November 2017 Array Bootcamp For arrays: passing to a function "by value" means passing a single element's "contents" For arrays: no more than one element's contents
More informationContents. Sr. No. Title of the Practical: Page no Signature. Gate. OR gate. EX-OR gate. gate. identifying ODD and EVEN number.
Contents Sr. No. Title of the Practical: Page no Signature 01. To Design and train a perceptron for AND Gate. 02. To design and train a perceptron training for OR gate. 03. To design and train a perceptron
More informationTEST BDA24202 / BTI10202 COMPUTER PROGRAMMING May 2013
DEPARTMENT OF MATERIAL AND ENGINEERING DESIGN FACULTY OF MECHANICAL AND MANUFACTURING ENGINEERING UNIVERSITI TUN HUSSEIN ONN MALAYSIA (UTHM), JOHOR TEST BDA24202 / BTI10202 COMPUTER PROGRAMMING May 2013
More information521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)
5493S Computer Graphics Exercise Solution (Chapters 4-5). Given two nonparallel, three-dimensional vectors u and v, how can we form an orthogonal coordinate system in which u is one of the basis vectors?
More information(Part - 1) P. Sam Johnson. April 14, Numerical Solution of. Ordinary Differential Equations. (Part - 1) Sam Johnson. NIT Karnataka.
P. April 14, 2015 1/51 Overview We discuss the following important methods of solving ordinary differential equations of first / second order. Picard s method of successive approximations (Method of successive
More informationK.S.E.E.B., Malleshwaram, Bangalore SSLC Model Question Paper-2 (2015) MATHEMATICS
Max Marks: 80 No. of Questions: 40 K.S.E.E.B., Malleshwaram, Bangalore SSLC Model Question Paper- (015) MATHEMATICS 81E Time: Hours 45 minutes Code No. : 81E Four alternatives are given for the each question.
More informationDEV BHOOMI INSTITUE OF TECHNOLOGY DEHRADUN Department Of Computer Application. Design and Analysis of Algorithms Lab MCA-302
DEV BHOOMI INSTITUE OF TECHNOLOGY DEHRADUN Department Of Computer Application Design and Analysis of Algorithms Lab MCA-302 1 INDEX S.No. PRACTICAL NAME DATE PAGE NO. SIGNATURE 1. Write a Program to Implement
More informationdt Acceleration is the derivative of velocity with respect to time. If a body's position at time t is S = f(t), the body's acceleration at time t is
APPLICATIN F DERIVATIVE INTRDUCTIN In this section we eamine some applications in which derivatives are used to represent and interpret the rates at which things change in the world around us. Let S be
More information// CSE/CE/IT 124 JULY 2015, 2.a. algorithm to inverse the digits of a given integer. Step 1: Start Step 2: Read: NUMBER Step 3: r=0,rev=0
// CSE/CE/IT 124 JULY 2015, 2a algorithm to inverse the digits of a given integer Step 1: Start Step 2: Read: NUMBER Step 3: r=0,rev=0 Step 4: repeat until NUMBER > 0 r=number%10; rev=rev*10+r; NUMBER=NUMBER/10;
More informationIosif Ignat, Marius Joldoș Laboratory Guide 4. Statements. STATEMENTS in C
STATEMENTS in C 1. Overview The learning objective of this lab is: To understand and proper use statements of C/C++ language, both the simple and structured ones: the expression statement, the empty statement,
More informationWindowing And Clipping (14 Marks)
Window: 1. A world-coordinate area selected for display is called a window. 2. It consists of a visual area containing some of the graphical user interface of the program it belongs to and is framed by
More informationF.E. Sem. II. Structured Programming Approach
F.E. Sem. II Structured Programming Approach Time : 3 Hrs.] Mumbai University Examination Paper Solution - May 14 [Marks : 80 Q.1(a) What do you mean by algorithm? Which points you should consider [4]
More informationUnit 1 - Arrays. 1 What is an array? Explain with Example. What are the advantages of using an array?
1 What is an array? Explain with Example. What are the advantages of using an array? An array is a fixed-size sequenced collection of elements of the same data type. An array is derived data type. The
More informationPOLYNOMIAL ADDITION. AIM:- To write a C program to represent a polynomial as a linked list and write functions for polynomial addition.
POLYNOMIAL ADDITION AIM:- To write a C program to represent a polynomial as a linked list and write functions for polynomial addition. ALGORITHM:- 1. Start the program 2. Get the coefficients and powers
More informationENGI 3703 Surveying and Geomatics
Horizontal Curves (Chapter 24) We ll jump ahead a little today to support the last field school activity, Lab 6 - Horizontal Curve Layout. Today we ll define i) the properties of a horizontal curve and
More informationSubject: Fundamental of Computer Programming 2068
Subject: Fundamental of Computer Programming 2068 1 Write an algorithm and flowchart to determine whether a given integer is odd or even and explain it. Algorithm Step 1: Start Step 2: Read a Step 3: Find
More information***************OUTPUT*************************** Enter the two number The addition of two number is =100
/* 1. Program to calculate the addition of two number using function */ int n1,n2,result; printf(" Enter the two number \n"); scanf("%d%d",&n1,&n2); result=addnum(n1,n2); printf(" The addition of two number
More informationIntroduction to Computing Lecture 07: Repetition and Loop Statements (Part II)
Introduction to Computing Lecture 07: Repetition and Loop Statements (Part II) Assist.Prof.Dr. Nükhet ÖZBEK Ege University Department of Electrical & Electronics Engineering nukhet.ozbek@ege.edu.tr Topics
More informationHIGHER SCEONDARY FIRST YEAR PRACTICAL EXAM 2018 COMPUTER SCIENCE SECTION A ( WINDOWS XP )
HIGHER SCEONDARY FIRST YEAR PRACTICAL EXAM 2018 COMPUTER SCIENCE SECTION A ( WINDOWS XP ) 1.Write the steps to do the Following: a) Enter in to WordPad b) Enter 3 lines with suitable Heading c) Save the
More informationArrays. CS10001: Programming & Data Structures. Pallab Dasgupta Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur
Arrays CS10001: Programming & Data Structures Pallab Dasgupta Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Array Many applications require multiple data items that have common
More informationTribhuvan University Institute of Science and Technology 2065
1CSc.102-2065 2065 Candidates are required to give their answers in their own words as for as practicable. 1. Draw the flow chart for finding largest of three numbers and write an algorithm and explain
More informationSHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION
SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, 2016-17) SOLUTION Program: B. Tech. Branch: All Term:I Subject: Logic Building and Problem Solving Using C Paper Code:
More informationChapter4: Data Structures. Data: It is a collection of raw facts that has implicit meaning.
Chapter4: s Data: It is a collection of raw facts that has implicit meaning. Data may be single valued like ID, or multi valued like address. Information: It is the processed data having explicit meaning.
More informationLinked List in Data Structure. By Prof. B J Gorad, BECSE, M.Tech CST, PHD(CSE)* Assistant Professor, CSE, SITCOE, Ichalkaranji,Kolhapur, Maharashtra
Linked List in Data Structure By Prof. B J Gorad, BECSE, M.Tech CST, PHD(CSE)* Assistant Professor, CSE, SITCOE, Ichalkaranji,Kolhapur, Maharashtra Linked List Like arrays, Linked List is a linear data
More informationNumerical Techniques Lab Manual
Numerical Techniques Lab Manual Dev Bhoomi Institute Of Technology Department of Computer Applications PRACTICAL INSTRUCTION SHEET LABORATORY MANUAL EXPERIMENT NO. ISSUE NO. : ISSUE DATE: REV. NO. : REV.
More informationSHREE RAMCHANDRA EDUCATION SOCIETY S SHREE RAMCHANDRA COLLEGE OF ENGINEERING, LONIKAND, PUNE DEPARTMENY OF ELECTRONICS AND TELECOMMUNICATION
SHREE RAMCHANDRA EDUCATION SOCIETY S SHREE RAMCHANDRA COLLEGE OF ENGINEERING, LONIKAND, PUNE 412 216 DEPARTMENY OF ELECTRONICS AND TELECOMMUNICATION LAB MANUAL Information Theory & Coding Techniques (Semester-II)
More informationAIM:- To write a C program to create a singly linked list implementation.
SINGLY LINKED LIST AIM:- To write a C program to create a singly linked list implementation. ALGORITHM:- 1. Start the program. 2. Get the choice from the user. 3. If the choice is to add records, get the
More informationCS11001/CS11002 Programming and Data Structures (PDS) (Theory: 3-1-0) Introduction to arrays
CS11001/CS11002 Programming and Data Structures (PDS) (Theory: 3-1-0) Introduction to arrays 1 What are Arrays? Arrays are our first example of structured data. Think of a book with pages numbered 1,2,...,400.
More informationExample: Pointer Basics
Example: Pointer Basics #include int (void) { float a1, a2; /* Simple variables */ float *p1, *p2, *w; /* Pointers to variables of type float */ a1 = 10.0, a2 = 20.0; printf("after a1 = 10.0;
More informationArray. Arrays. Declaring Arrays. Using Arrays
Arrays CS215 Peter Lo 2004 1 Array Array Group of consecutive memory locations Same name and type To refer to an element, specify Array name Position number Format: arrayname[ position number] First element
More informationAPPENDIX. A.1 Evaluation of thermodynamic property values for the gases. constant pressure, specific enthalpy and specific entropy of various
223 APPENDIX A.1 Evaluation of thermodynamic property values for the gases comprising C-H-O-N System The following equations are used to calculate specific heat at constant pressure, specific enthalpy
More informationDEPERTMENT OF CIVIL ENGINEERING RAJSHSHI UNIVERSITY OF ENGINEERING & TECHNOLOGY CE 206 NUMERICAL METHODS & COMPUTER PROGRAMMING SESSIONAL
Heaven's Light Is Our Guide DEPERTMENT OF CIVIL ENGINEERING RAJSHSHI UNIVERSITY OF ENGINEERING & TECHNOLOGY CE 206 NUMERICAL METHODS & COMPUTER PROGRAMMING SESSIONAL Submitted by: Name : Md. Abdullah Asad
More informationComputer Simulations
Computer Simulations A practical approach to simulation Semra Gündüç gunduc@ankara.edu.tr Ankara University Faculty of Engineering, Department of Computer Engineering 2014-2015 Spring Term Ankara University
More informationover The idea is to construct an algorithm to solve the IVP ODE (8.1)
Runge- Ku(a Methods Review of Heun s Method (Deriva:on from Integra:on) The idea is to construct an algorithm to solve the IVP ODE (8.1) over To obtain the solution point we can use the fundamental theorem
More informationCurve and Surface Basics
Curve and Surface Basics Implicit and parametric forms Power basis form Bezier curves Rational Bezier Curves Tensor Product Surfaces ME525x NURBS Curve and Surface Modeling Page 1 Implicit and Parametric
More informationAlgorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm
s 4. Odd or even Step 3 : If number divisible by 2 then Print "Number is Even" Step 3.1 : else Print "Number is Odd" Step 4 : Stop 5. Greatest among three numbers Step 2 : Read values of a, b and c Step
More informationADVANCED SURVEYING (S-II)
ADVANCED SURVEYING (S-II) (LAB) KISHANGANJ COLLEGE OF ENGINEERING AND TECHNOLOGY, KISHANGANJ. Experiment No- 1 ADVANCED SURVEYING (S-II) LAB Aim: Determination of the Multiplying and additive constant
More informationBit is the smallest unit of data in a computer. A bit has a single binary value, either 0 or 1. A byte is equal to 8 bits.
What is Bit? Bit is the smallest unit of data in a computer. A bit has a single binary value, either 0 or 1. A byte is equal to 8 bits. What is Program? A set of instructions to carry out a task is called
More informationTo store the total marks of 100 students an array will be declared as follows,
Chapter 4 ARRAYS LEARNING OBJECTIVES After going through this chapter the reader will be able to declare and use one-dimensional and two-dimensional arrays initialize arrays use subscripts to access individual
More informationPreview from Notesale.co.uk Page 4 of 63
1. Write a program to compute area of a circle after reading input from user. #include #include int float area, radius, pi=3.141; printf("enter the radius of circle \t"); scanf("%f",
More informationFUNCTIONS OMPAL SINGH
FUNCTIONS 1 INTRODUCTION C enables its programmers to break up a program into segments commonly known as functions, each of which can be written more or less independently of the others. Every function
More informationLab 10: Disk Scheduling Algorithms
1. Objective Lab 10: Disk Scheduling Algorithms Understand Disk Scheduling Algorithm and read its code for SSTF, SCAN, CSCAN in C, 2. Syllabus try to write other kinds of disk scheduling algorithms such
More informationCS11001/CS11002 Programming and Data Structures (PDS) (Theory: 3-0-0)
CS11001/CS11002 Programming and Data Structures (PDS) (Theory: 3-0-0) Sudeshna Sarkar Department of Computer Science and Engineering Indian Institute of Technology Kharagpur Euclid s Algorithm Basic Observation:
More informationC Language Part 2 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee
C Language Part 2 (Minor modifications by the instructor) 1 Scope Rules A variable declared inside a function is a local variable Each local variable in a function comes into existence when the function
More informationDecision Making and Branching
INTRODUCTION Decision Making and Branching Unit 4 In the previous lessons we have learned about the programming structure, data types, declaration of variables, tokens, constants, keywords and operators
More informationContents ARRAYS. Introduction:
UNIT-III ARRAYS AND STRINGS Contents Single and Multidimensional Arrays: Array Declaration and Initialization of arrays Arrays as function arguments. Strings: Initialization and String handling functions.
More informationINDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator
INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator EXAMINATION ( Mid Semester ) SEMESTER ( Autumn ) Roll Number Section Name Subject Number C S Subject Name Programming and Data
More information3. Replace any row by the sum of that row and a constant multiple of any other row.
Math Section. Section.: Solving Systems of Linear Equations Using Matrices As you may recall from College Algebra or Section., you can solve a system of linear equations in two variables easily by applying
More informationEngineering 12 - Spring, 2000
Engineering 12 - Spring, 2000 1. (20 points) Shown below is a program to determine the total price for a group to attend a movie. The program asks the user to enter the number of people in the group, the
More informationUNIT - V STRUCTURES AND UNIONS
UNIT - V STRUCTURES AND UNIONS STRUCTURE DEFINITION A structure definition creates a format that may be used to declare structure variables. Let us use an example to illustrate the process of structure
More informationUnit 8. Structures and Unions. School of Science and Technology INTRODUCTION
INTRODUCTION Structures and Unions Unit 8 In the previous unit 7 we have studied about C functions and their declarations, definitions, initializations. Also we have learned importance of local and global
More informationBCSE1002: Computer Programming and Problem Solving LAB MANUAL
LABMANUAL BCSE1002: Computer Programming and Problem Solving LAB MANUAL L T P Course Type Semester Offered Academic Year 2018-2019 Slot Class Room Faculty Details: Name Website link Designation School
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationCSE 230 Intermediate Programming in C and C++ Arrays and Pointers
CSE 230 Intermediate Programming in C and C++ Arrays and Pointers Fall 2017 Stony Brook University Instructor: Shebuti Rayana http://www3.cs.stonybrook.edu/~cse230/ Definition: Arrays A collection of elements
More informationUIC. C Programming Primer. Bharathidasan University
C Programming Primer UIC C Programming Primer Bharathidasan University Contents Getting Started 02 Basic Concepts. 02 Variables, Data types and Constants...03 Control Statements and Loops 05 Expressions
More informationYou will need to use a calculator for this worksheet A (1, 1)
C Worksheet A y You will need to use a calculator for this worksheet y = B A (, ) O The diagram shows the curve y = which passes through the point A (, ) and the point B. a Copy and complete the table
More informationBITS PILANI, DUBAI CAMPUS DUBAI INTERNATIONAL ACADEMIC CITY, DUBAI FIRST SEMESTER
BITS PILANI, DUBAI CAMPUS DUBAI INTERNATIONAL ACADEMIC CITY, DUBAI FIRST SEMESTER 2017-2018 COURSE : COMPUTER PROGRAMMING (CS F111) COMPONENT : Tutorial#4 (SOLUTION) DATE : 09-NOV-2017 Answer 1(a). #include
More informationBİL200 TUTORIAL-EXERCISES Objective:
Objective: The purpose of this tutorial is learning the usage of -preprocessors -header files -printf(), scanf(), gets() functions -logic operators and conditional cases A preprocessor is a program that
More informationF.E. Sem. II. Structured Programming Approach
F.E. Sem. II Structured Programming Approach Time : 3 Hrs.] Mumbai University Examination Paper Solution - May 13 [Marks : 80 Q.1(a) Explain the purpose of following standard library functions : [3] (i)
More informationAPS105. Collecting Elements 10/20/2013. Declaring an Array in C. How to collect elements of the same type? Arrays. General form: Example:
Collecting Elements How to collect elements of the same type? Eg:., marks on assignments: APS105 Arrays Textbook Chapters 6.1-6.3 Assn# 1 2 3 4 5 6 Mark 87 89 77 96 87 79 Eg: a solution in math: x 1, x
More informationPointers. Mr. Ovass Shafi (Assistant Professor) Department of Computer Applications
Pointers Introduction: A variable is a named memory location that holds some value. Each variable has some address associated with it. Till now we only worked on the values stored in the variables and
More informationAn array is a collection of similar elements that is all the elements in an array should have same data type. This means that an array can store
An array is a collection of similar elements that is all the elements in an array should have same data type. This means that an array can store either all integers, all floating point numbers, all characters,
More information