Railway Reservation Portal Using HTML and CSS Only.

 


 Hello There !! , This is basic clone of railway reservation Portal that is made using HTML and CSS       only,
 Source Code For HTML and CSS is Attached here, where you can have look and can also     use in         your project work also.

                        
 Github Link is given here : Click Here
 View The live Website by  Clicking Here

Full HTML Code is:-

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="./index.css">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Clonepage</title>
</head>
<body>
    <div class="container">
        <div class="azadi"><img src="./azadikaamritmahotsav.jpg"></div>
        <div class="containerleft">
            <img src="./Background.png">
            <h1> Indian Railways</h1>
            <h2>भारतीय रेल सेवा</h2>
        </div>
        <div class="containerright">
                <div class="containerrightbox">
            <h2>Check Availability</h2>
            <hr class="hr">
            <label for="city">Choose Your Route: </label>
            <form>
                <div class="form">
                <label>From:</label>
                <select name="city">
                    <option >Jaunpur</option>
                    <option >Gorakhpur</option>
                    <option >Varanshi</option>
                    <option >Prayagraj</option>
                    <option >Gonda</option>
                </select>
                <label>To:</label>
                <select name="city">
                    <option >Gorakhpur</option>
                    <option >Jaunpur</option>
                    <option >Varanshi</option>
                    <option >Prayagraj</option>
                    <option >Gonda</option>
                </select>
                </div>
                <label>Select Your Class </label>>
                <select>
                    <option >AC First Class</option>
                    <option >AC 2-Tier</option>
                    <option >AC 3-Tier</option>
                    <option >First Class</option>
                    <option >AC Chair Car</option>
                    <option >Sleeper</option>
                    <option >Second Sitting</option>
                </select><br>
                <label>Type</label>
                <select>
                    <option >GENERAL</option>
                    <option >LADIES</option>
                    <option >LOWER BERTH/SR.CITIZEN</option>
                    <option >PERSON WITH DISABILITY</option>
                    <option >TATKAL</option>
                    <option >PREMIUM TATKAL</option>
                </select>
                <div class="checkbox">
                    <input type="checkbox">
                    <label>Divyaang Concession</label>
                    <input type="checkbox">
                    <label>Flexible With Date</label><br>
                    <input type="checkbox">
                    <label>Train with Available Berth</label>
                    <input type="checkbox">
                    <label>Railway Pass Concession</label>
                </div>
                <div class="submitbutton">
                    <button>Search</button>
                </div>
            </form>
            </div>
        </div>
    </div>
    <footer>
        <h2>Made by -- Vaibhav Yadav --</h2>
    </footer>
</body>
</html>
             
// Full CSS Code is: -


body{
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0%;
    width: 100%;
    height: 100%;
    padding: 0;
    background-image: url(./rail2.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font-weight: bolder;
}
.container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.containerleft{
    padding: 10%;
    margin: 2% auto;
}
.containerleft h1 h2{

}
.azadi{
    width:1%;
}
.containerleft img{
    text-align: center;
    width: 50%;
    backdrop-filter: blur(5px);
}
.containerright{
    padding: 5% 20% 0 0;

}
.containerrightbox{
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1% 7% 15% 7%;
    box-shadow: 0px 0px  50px black;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}
.containerrightbox .form{
    display: flex;
    

    
}
.containerrightbox form select{
    margin: 1% 4% 5% 2%;
    color: gray;
}
.submitbutton{
    text-align: center;
    margin: 10% 0 0 5%;
}
.hr{
    color: black;
}
footer{
    text-align: center;
    font-size: large;
    animation: vaibhav 2s infinite ;
    padding: 2% 0 0 0;
}
@keyframes vaibhav {
    0%{color: violet;}
    25%{color: blueviolet;}
    50%{color: green;}
    75%{color: yellow;}
    100%{color: red;}
}


                                // Made by Vaibhav Yadav




 

Program in C to create two sets and perform symmetric differences operations on these sets.


 // Program to create two sets and perform symmetric difference on these two sets

#include <stdio.h>

int main() {

    int n1,n2;

    printf("Enter your number of Element in Set 1\n");

    scanf("%d",&n1);

    int a[n1];

    printf("Enter Your Elements in Set 1\n");

    for(int i=0;i<n1;i++)

    scanf("%d",&a[i]);

    printf("Enter Your number of element in Set 2\n");

    scanf("%d",&n2);

    int b[n2],c[1000],arr3[100];

    printf("Enter Your element in set 2\n");

    for(int i=0;i<n2;i++)

    scanf("%d",&b[i]);

    int k=0,d[1000];

    for(int i=0;i<n1;i++)

    {

        for(int j=0;j<n2;j++)

        {

            if(a[i]==b[j])

            {

            c[k]=a[i];

            k++;

            }

        }

    }

    printf("(A ^ B)  is: ");

    for(int i=0;i<k;i++)

    printf("%d ",c[i]);

    

    int i,j,l=0;

    for(i=0;i<n1;i++)

   {

      for(j=0;j<l;j++)

      {

         if(d[j]==a[i]) 

            break;

       }

       if(j==l)

       {

          d[l]=a[i];

          l++;

       }

    }

   for(i=0;i<n2;i++)

   {

      for(j=0;j<l;j++)

      {

         if(d[j]==b[i])

           break;

      }

     if(j==l)

     {

       d[l]=b[i];

       l++;

     }

   }

   printf("\n(A U B) is : ");

    for(i=0;i<l;i++)

      printf("%d ",d[i]);

      // Symmetric difference starts here 

     int g=0,sym[100];

    for(i=0;i<l;i++)

    {

        int count=0;

    for(j=0;j<k;j++)

    {

        if(d[i]==c[j])

        count++;

    }

    if(count==0)

    {

        sym[g]=d[i];

        g++;

    }

    }

    printf("\n");

    printf("Symmetric Difference of two Sets is (AUB)-(A^B) :\n");

    printf("Symmetric difference Of these two sets A※B : ");

    for(i=0;i<g;i++)

    printf("%d ",sym[i]);

    return 0;

}

C Program to create two sets A and B and then find Intersection and Union between these two sets

 


//Program to create two sets A and B and then find Union and intersection between these two

#include <stdio.h>

int main() {

    int n1,n2;

    printf("Enter your number of Element in Set 1\n");

    scanf("%d",&n1);

    int a[n1];

    printf("Enter Your Elements in Set 1\n");

    for(int i=0;i<n1;i++)

    scanf("%d",&a[i]);

    printf("Enter Your number of element in Set 2\n");

    scanf("%d",&n2);

    int b[n2],c[1000],arr3[100];

    printf("Enter Your element in set 2\n");

    for(int i=0;i<n2;i++)

    scanf("%d",&b[i]);

    int k=0,count=0,bcount=0;

    for(int i=0;i<n1;i++)

    {

        for(int j=0;j<n2;j++)

        {

            if(a[i]==b[j])

            {

            c[k]=a[i];

            k++;

            }

        }

    }

    printf("Intersection of These two sets is: ");

    for(int i=0;i<k;i++)

    printf("%d ",c[i]);

    

    int i,j,l=0;

    for(i=0;i<n1;i++)

   {

      for(j=0;j<l;j++)

      {

         if(c[j]==a[i]) 

            break;

       }

       if(j==l)

       {

          c[l]=a[i];

          l++;

       }

    }

   for(i=0;i<n2;i++)

   {

      for(j=0;j<l;j++)

      {

         if(c[j]==b[i])

           break;

      }

     if(j==l)

     {

       c[l]=b[i];

       l++;

     }

   }

   printf("\n (AUB) is :- ");

    for(i=0;i<l;i++)

      printf("%d ",c[i]);

    return 0;

}

Operator Overloading in C++

#include<iostream> using namespace std; class Complex { private: int real, imag; public: Complex(int r = 0, int i = 0){       re...