Array Implementation of list ADT

Algorithm: Step 1: Create nodes first, last; next, prev and cur then set the value as NULL.  Step 2: Read the list operation type.  Step 3: If operation type is create then process the following steps.  1. Allocate memory for node cur.  2. Read data in cur's data area.  3. Assign cur node as NULL.  … Continue reading Array Implementation of list ADT

Unit Converters Application using packages

Algorithm:Step 1 Start the processStep 2 Prompt the user with converter choice 1. Currency 2.Distance 3. Time 4. Exit and thechoice.Step 3 If user selects a Currency Converter then proceed to step 4Step 4 Proceed with prompting Currency Converter Choices 1.DOLLER to INR 2. EURO to INR 3. YEN to INR 4.INR to DOLLER 5. … Continue reading Unit Converters Application using packages

Arithmetic operations in C programming

ALGORITHM:      1. Start      2. Declare variables      3. Read the Inputs .      4. Calculate Arithmetic operations(+,-,*,/,pow) for the input of two numbers.      5. Display the output of the calculations .      6. Stop PROGRAM: #include <stdio.h> #include <conio.h> int main(){ int firstNumber, secondNumber; int sum, difference, product; long square; float quotient; … Continue reading Arithmetic operations in C programming

C PROGRAM TO FIND AVERAGE HEIGHT OF A PERSON

ALGORITHM:      1. Start      2. Declare variables      3. Read the total number of persons and their height.      4. Calculate avg=sum/n and find number of persons their h>avg.      5. Display the output of the calculations .      6. Stop PROGRAM: #include <stdio.h> #include <conio.h> void main() { int i,n,sum=0,count=0,height[100]; float avg; //Read … Continue reading C PROGRAM TO FIND AVERAGE HEIGHT OF A PERSON