Tuesday, January 26, 2021

String function in c++ with Eaglesoft

 


#include<iostream>
#include<string.h>
using namespace std;
int main()
{
    char str[100];
    char cpy[100];
    cout<<"Enter you Name:"<<endl;
    gets(str);
    
    // convert all string into lower case 
    // strlwr(str);

    // convert all string into upercase 
    // strupr(str);

    // copy string 
    strcpy(cpy,str);

    cout<<"Name :"<<cpy<<endl;
   
    return 0;
}

Monday, January 25, 2021

find lenght of string in cpp c++ with eaglesoft programmers

 


#include<iostream>
#include<string.h>
using namespace std;
int main()
{
    char name[50];
    cout<<"enter your name"<<endl;
    gets(name);
    int n=strlen(name);
    cout<<"Lenght of this string is :"<<n<<endl;
    return 0;
}

Saturday, January 23, 2021

Login Form Eaglesoft Web development class.

 


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to Eaglesoft</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        #main
        {
            background-image: url("https://wallpapercave.com/wp/u9AVLry.jpg");
            background-image: url("https://i.pinimg.com/originals/20/c4/ed/20c4ed904c96d955c7baed21e22d47e0.jpg");
            background-size: cover;
            width: 100vw;
            height: 100vh;
            position:absolute;
        }
        #login
        {
            background-color: blanchedalmond;
            border-radius: 20px;
            width: 20vw;
            height: 50vh;
            margin-top: 200px;
            margin-left:530px;
        }
        #h1
        {
            background-color: white;
            background-image: url("https://c2.staticflickr.com/2/1544/24128500842_485dea1a4c_o.png");
            background-size:cover;
            border-radius: 90px;
            width: 100px;
            height: 100px;
            position:absolute;
            margin-top: 5px;
            margin-left: 85px;
        }
        #username
        {
            margin-top: 120px;
            margin-left: 45px;
            margin: center;
            padding: 5px;
            border-radius: 30px;
        }
        #password
        {
            margin-top: 20px;
            margin-left: 45px;
            margin: center;
            padding: 5px;
            border-radius: 30px;
        }
        #submit
        {
            background-color:blue;
            color:white;
            font-weight: bolder;
            margin-top: 10px;
            margin-left: 90px;
            margin: center;
            padding: 5px;
            border-radius: 30px;
            width: 90px;
        }
        #forget
        {
            position:absolute;
            margin-left: 50px;
            margin-top: 20px;
            color:blue;
        }
    </style>
</head>
<body>
    <div id="main">
        <div id="login">
            <div id="h1"></div>
            <form>
            <input type="text" id="username" name="username" placeholder="Username" aligin="center">
            <input type="password" id="password" name="password" placeholder="password">
            <input type="submit" id="submit" name="submit" value="Login">
            <br>
            <i id="forget">Forget Password? Regiser</i>
          </form>
        </div>
    </div>
</body>
</html>

Thursday, January 21, 2021

Eaglesoft Banking System Software in c++ with Eaglesoft Programmers.

 


#include <iostream>
#include <string>
using namespace std;
struct ac
{
    int ac_number;
    string ac_name;
    float de;
    float withdraw;
};

int main()
{
    ac acounts[10];

    //    assin account number
    acounts[0].ac_number = 1;
    acounts[1].ac_number = 2;
    acounts[2].ac_number = 3;
    acounts[3].ac_number = 4;
    acounts[4].ac_number = 5;
    acounts[5].ac_number = 6;
    acounts[6].ac_number = 7;
    acounts[7].ac_number = 8;
    acounts[8].ac_number = 9;
    acounts[9].ac_number = 10;
    // assign name of accounts
    acounts[0].ac_name = "Ashfaq";
    acounts[1].ac_name = "Saif";
    acounts[2].ac_name = "Ansir";
    acounts[3].ac_name = "Zoha";
    acounts[4].ac_name = "Abraz";
    acounts[5].ac_name = "Aysha";
    acounts[6].ac_name = "Manal";
    acounts[7].ac_name = "Muzammal";
    acounts[8].ac_name = "Aamir";
    acounts[9].ac_name = "Naveed";

    // assign balance of accounts
    acounts[0].de = 0;
    acounts[1].de = 0;
    acounts[2].de = 0;
    acounts[3].de = 0;
    acounts[4].de = 0;
    acounts[5].de = 0;
    acounts[6].de = 0;
    acounts[7].de = 0;
    acounts[8].de = 0;
    acounts[9].de = 0;

    int ac;
    while (5)
    {
        cout << "Enter acount number:" << endl;
        cin >> ac;
        cin.ignore();
        for (int i = 0; i < 10; i++)
        {
            if (ac == acounts[i].ac_number)
            {
                float _input_de, _input_wi;
                cout << "Enter your Depsit Money:" << endl;
                cin >> _input_de;
                cout << "Enter Money that you want to Withdraw:" << endl;
                cin >> _input_wi;
                cin.ignore();
                cout << "Thank you for using Eaglesoft Banking System:" << endl;
                acounts[i].de = acounts[i].de + _input_de;
                acounts[i].de = acounts[i].de - _input_wi;
                cout << "*****Your Account Details*****" << endl;
                cout << "Account Number: " << acounts[i].ac_number << endl;
                cout << "Account Name: " << acounts[i].ac_name << endl;
                cout << "Your current balance is :" << acounts[i].de << endl;
            }
        }
    }

    return 0;
}

Sunday, January 17, 2021

Structure in c++ with Eaglesoft.

 


#include<iostream>
using namespace std;
struct eaglesoft  
{
    char name[50];
    char role[50];
    int salary;
};
int main()
{
     eaglesoft e1[2000];

     for(int i=0;i<2000;i++)
     {
         cout<<"Enter recor #"<<i+1<<" :"<<endl;
         cout<<"Enter the name of Eaglesoft Eagle: "<<endl;
         cin>>e1[i].name;
         cout<<"Enter the role of Eaglesoft Eagle: "<<endl;
         cin>>e1[i].role;
         cout<<"Enter the salary of Eaglesoft Eagle: "<<endl;
         cin>>e1[i].salary;
    
     } 
     int ch;
    cout<<"Press 1 for get data of "<<e1[0].name<<" "<<endl;
    cout<<"Press 2 for get data of "<<e1[1].name<<" "<<endl;
    cout<<"Press 3 for get data of "<<e1[2].name<<" "<<endl;
    cout<<"Press 4 for get data of "<<e1[3].name<<" "<<endl;
    cin>>ch;
    if(ch==1)
    {
        cout<<"***********Details of "<<e1[0].name<<"*********** "<<endl;
        cout<<"Name:"<<e1[0].name<<endl;
        cout<<"Role:"<<e1[0].role<<endl;
        cout<<"Salary:"<<e1[0].salary<<endl;
    }
    else if(ch==2)
        {
        cout<<"***********Details of "<<e1[1].name<<"*********** "<<endl;
        cout<<"Name:"<<e1[1].name<<endl;
        cout<<"Role:"<<e1[1].role<<endl;
        cout<<"Salary:"<<e1[1].salary<<endl;
    }
    else if(ch==3)
        {
        cout<<"***********Details of "<<e1[2].name<<"*********** "<<endl;
        cout<<"Name:"<<e1[2].name<<endl;
        cout<<"Role:"<<e1[2].role<<endl;
        cout<<"Salary:"<<e1[2].salary<<endl;
    }
    else if(ch==4)
        {
        cout<<"***********Details of "<<e1[3].name<<"*********** "<<endl;
        cout<<"Name:"<<e1[3].name<<endl;
        cout<<"Role:"<<e1[3].role<<endl;
        cout<<"Salary:"<<e1[3].salary<<endl;
    }
    else  
    {
        cout<<"invalid input! There is no such Eagle in Eaglesoft"<<endl;
    }
 
    return 0;
}

Friday, January 15, 2021

Login Form with Eaglesoft Programmers


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            background-image: 
            url("https://cutt.ly/7jRFJGq");
            background-repeat: no-repeat;
            background-size:cover;        }

        #main
        {
            background-color: rgb(24, 9, 224);
            border-radius: 50px 5px 50px 5px;
            box-shadow:4px 4px 8px rgb(97, 81, 81);
            width: 20vw;
            height: 50vh;
            margin: auto;
            margin-top: 100px;
            margin-left: 650px;
            position:absolute;
        }
        #main:hover
        {
            box-shadow:6px 6px 10px rgb(97, 81, 81);
        }
        #loginnow
        {
            color:rgb(238, 226, 54);
            font-weight: bold;
            font-size: 28px;
            text-shadow: greenyellow;
            text-align: center;
            margin-top: 60px;
            text-shadow: 2px 2px rgb(236, 57, 57);
        }
        .input
        {
            margin-left: 80px;
            margin-top:4px;
            width: 180px;
            height: 20px;
            color: white;
        }
        #button
        {
            background-color:yellow;
            margin-left: 135px;
            margin-top: 10px;
            width: 60px;
            height: 30px;
            color:brown;
            font-weight: bold;
            border-radius: 5px;
        }
        #button:hover
        {
            box-shadow: 1px 1px 1px 2px white;
            width: 62px;
            height: 32px;
        }
    </style>
</head>
<body>
    <div id="main">
        <H3 id="loginnow">Login Now</H3>
        <b class="input">User Name</b>
        <input type="text" placeholder="Username" class="input">
        <b class="input">Password</b>
        <input type="password" placeholder="Password" class="input">
        <br>
        <button id="button">Login</button>
    </div>
</body>
</html>

Thursday, January 14, 2021

Signup form for restaurant management system

 To run this from on your system perform the following steps carefully:

1.Copy CSS code and save in a file with the name of eaglesoft.css  ;

2.Copy HTML code and save in a file with the name of index.html ;

3.For view open your index file in you favourite web browser ;


CSS CODE:

body

{

    margin: 0;

    padding: 0;

    background: #efefef;

    font-size: 16px;

    color: #777;

    font-family: sans-serif;

    font-weight: 300;

}



#login-box

{

    position: relative;

    margin: 5% auto;

    height: 400px;

    width: 600px;

    background: #fff;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

}



footer {

    background-color: #555;

    color: #fff;

    font-size: 14px;

    bottom: 0;

    position: fixed;

    left: 0;

    right: 0;

    text-align: center;

    z-index: 999;

}

footer p {

    margin: 10px 0;

    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida  Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

}

footer a {

    color: #ff6f61;

    text-decoration: none;

  margin-right:5px;



}



.left-box

{

    position: absolute;

    top: 0;

    left: 0;

    box-sizing: border-box;

    padding: 40px;

    width: 300px;

    height: 400px;    

}



h1

{

    margin: 0 0 20px 0;

    font-weight: 300;

    font-size: 28px;

}



input[type="text"],

input[type="password"]

{

    display: block;

    box-sizing: border-box;

    margin-bottom: 20px;

    padding: 4px;

    width: 220px;

    height: 32px;

    border: none;

    outline: none;

    border-bottom: 1px solid #aaa;

    font-family: sans-serif;

    font-weight: 400;

    font-size: 15px;

    transition: 0.2s ease;

}



input[type="submit"]

{

    margin-bottom: 28px;

    width: 120px;

    height: 32px;

    background: #ff0080;

    border: none;

    border-radius: 2px;

    color: #fff;

    font-family: sans-serif;

    font-weight: 500;

    text-transform: uppercase;

    transition: 0.2s ease;

    cursor: pointer;

    

}



input[type="submit"]:hover,

input[type="submit"]:focus

{

    background: #ff0000;

    transition: 0.2s ease;

}



.right-box

{

    position: absolute;

    top: 0;

    right: 0;

    box-sizing: border-box;

    padding: 40px;

    width: 300px;

    height: 400px;

    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf9rU1c1b16h1kGfop1zYDGgE6KPiSVGG9rAzDBwcnOTMbQ_kN9n0_VrmpPee9hy7jLFUJvNO0HnSnQ_EJEN4f-ogcuDUvDvRrtdKB88pu4L-6Pd9SWnmDmTZaLHOkkjx0wCHN35MuNSCO/s2048/image1.jpeg);


    background-size: cover;

    background-position: center;

}



.or

{

    position: absolute;

    top: 180px;

    left: 280px;

    width: 40px;

    height: 40px;

    background: #efefef;

    border-radius: 50%;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

    line-height: 40px;

    text-align: center;

}



.right-box .signinwith

{

    display: block;

    margin-bottom: 40px;

    font-size: 28px;

    color: #fff;

    text-align: center;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

}





button.social

{

    margin-bottom: 20px;

    width: 220px;

    height: 36px;

    border: none;

    border-radius: 2px;

    color: #fff;

    font-family: sans-serif;

    font-weight: 500;

    transition: 0.2s ease;

    cursor: pointer;

}



.facebook

{

    background: #32508e;

}

.twitter

{

    background: #55acee;

}

.google

{

    background: #dd4b39;

}

HTML CODE:




 

<html>

<head>

<title>Signup Now</title>   

    <link rel="stylesheet" type="text/css" href="eaglesoft.css">

</head>

<body style="background-image: url(https://www.discoverlosangeles.com/sites/default/files/styles/hero/public/images/2019-01/lower-patio.jpg?itok=KGYP49fO)">

 



    <div id="login-box">

      <div class="left-box">

        <h1> Sign Up</h1>

          

          <input type="text" name="username" placeholder="Username"/>

          <input type="text" name="email" placeholder="Email"/>

          <input type="password" name="password" placeholder="Password"/>

        

          <input type="password" name="password2" placeholder="Retype password"/>

        

          <input type="submit" name="signup-button" value="Sign Up"/>

        

        </div>

        <div class="right-box">

          <span class="signinwith">Sign in with<br/>Social Network     </span>

        

        <button class="social facebook">Log in with Facebook</button>    

        <button class="social twitter">Log in with Twitter</button> 

        <button class="social google">Log in with Google+</button> 

            

        

        </div>

        <div class="or">OR</div>

    </div>

    <footer>

    <p>

    Developed by

    <a target="_blank" href="http://eaglesoft.com.pk/">Eaglesoft</a>

      </p>



</footer>

</body>    

</html>