Posts

Showing posts from September, 2023

INTERNET TECHNOLOGIES LAB (IT)

 Program 1: Demonstrate E-Mail working (Sending ,Receiving, forward) 1. Sending an Email Step 1: Log in to Your Email Account Open your web browser and go to the website of your email provider (e.g., Gmail , Outlook ). Enter your email address and password to log in. Step 2: Compose a New Email Click on the "Compose" button. In Gmail, this button is usually found on the left side of the screen. Step 3: Fill in the Email Details To : Enter the recipient's email address. Subject : Enter the subject of your email. Body : Type your message in the body section. Optionally, you can add attachments by clicking on the paperclip icon and selecting the files you want to attach. Step 4: Send the Email Once you have filled in all the details, click the "Send" button to send the email. 2. Receiving an Email Step 1: Check Your Inbox After logging in, you will typically be directed to your inbox. New emails will appear at the top of your inbox. Emails that you have not yet re...

THE DESIGN AND ANALYSIS OF ALGORITHMS

 THE DESIGN AND ANALYSIS OF ALGORITHMS LAB PROGRAMS Program 1. Write a program to implement linear search algorithm Repeat the experiment for different values of n, the number of elements in the list to be searched and plot a graph of the time taken versus n. #include <stdio.h> #include <stdlib.h> #include <time.h> // Function prototypes int linearSearch( int arr[], int n, int key) ; void generateRandomArray( int arr[], int n) ; int main() {     int arraySizes[] = { 100 , 500 , 1000 , 5000 , 10000 }; // Different values of n     clock_t start, end;     double cpu_time_used;     // Perform experiment for each array size     for ( int i = 0 ; i < sizeof(arraySizes) / sizeof(arraySizes[ 0 ]); i ++ ) {         int n = arraySizes[i];         int arr[n];         generateRandomArray(arr, n); // Generate a random array of size n   ...