The collection of webpages is called website. When we enter something like lakshthink.tech.blog the request goes to one of many special computers on the internet known as Domain Name Servers. i.e., DNS. All these requests are routed through various routers and switches. In other words, a user enters a URL into a browser. The request … Continue reading How does a website works
Author: Shanthosh Lakshman
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
How to Run Java Programs in Ubuntu
Running Java programs in Ubuntu Step 1: Install Java compiler The simplest way to install JDK on Ubuntu is to go with the default offering from Ubuntu: sudo apt install default-jdk Once installed, verify that javac is available now. javac --version The Output will come us javac 11.0.11 finally java compiler is successfully installed. Step … Continue reading How to Run Java Programs in Ubuntu
ARRAY IMPLEMENTATION OF QUEUE ADT
ALGORITHM: 1. Define a array which stores queue elements.. 2. The operations on the queue are a. a)INSERT data into the queue b. b)DELETE data out of queue 3. INSERT DATA INTO queue a. Enter the data to be inserted into queue. b. If TOP is NULL i. The input data is the first node … Continue reading ARRAY IMPLEMENTATION OF QUEUE ADT
ARRAY IMPLEMENTATION OF STACK ADT
Algorithm: STEP 1: Define an array to store the element. STEP 2: Get the users’ choice. STEP 3: If the option is 1 perform creation operation and goto step4. If the option is 2 perform insertion operation and goto step5. If the option is 3 perform deletion operation and goto step6. If the option is … Continue reading ARRAY IMPLEMENTATION OF STACK ADT
Electricity Bill Calculator
Algorithm Step 1 Start the processStep 2 Get the user informations [Name, Consumer Number, Reading’s of previous and currentmonth, Connection Type]Step 3 Compute units consumed by user [Current Month Reading – Previous Month Reading]Step 4 If a connection type is domestic goto step 6Step 5 Else goto step 7Step 6 Initialize i with 1 and … Continue reading Electricity Bill Calculator
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 SORT THE NUMBERS BASED ON THE WEIGHT
ALGORITHM: 1. Start 2. Declare variables 3. Read the number of elements . 4. Get the individual elements. 5. Calculate the weight for each element by the conditions 5 if it is a perfect cube (pow) 4 if it is a multiple of 4 and divisible by 6 … Continue reading C PROGRAM TO SORT THE NUMBERS BASED ON THE WEIGHT
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