Monday, 21 June 2021

find vowel and consonant in c language | mini project in c language | soham kawde

 find vowel and consonant in c language | mini project in c language  | soham kawde



// we are going to create program to identify vowel and consonant
#include <stdio.h>
int main(int argcchar const *argv[])
{
    char user_input;
    printf("Please enter your favourite character / alphabate \n");
    scanf("%c", &user_input);
    // time for switch statement or condition statement
    switch (user_input)
    {
    case 'a':
        printf("%c is a vowel\n"user_input);
        break;
    case 'e':
        printf("%c is a vowel\n"user_input);
        break;
    case 'i':
        printf("%c is a vowel\n"user_input);
        break;

    case 'o':
        printf("%c is a vowel\n"user_input);
        break;
    case 'u':
        printf("%c is a vowel\n"user_input);
        break;
    default:
        printf("%c is consonant \n",user_input);
        break;
    }
    return 0;
}
// code will be in the description please check there 
// and time for run 
// english language has 5 vowel a , e, i, o ,u and other charecter are consonant
// let's runn



Atm machine system mini project in c language

 Atm machine system mini project in c language



#include <stdio.h>

int main()
{
    float xy;
    char ch;
    printf("Please enter your amount\n");
    scanf("%f", &x);
    printf("\nplease choose \n c for creadit , d for debit and b for balance checking\n");
    scanf("\n%c", &ch);
    switch (ch)
    {
    case 'c':
        printf("Please enter your amount\n");
        scanf("%f", &y);
        x = x + y;
        printf("your total balace is = %f "x);

        break;
    case 'd':
        printf("Please enter your amount for debit\n");
        scanf("%f", &y);
        if (x >= y)
        {
            x = x - y;
            printf("your total balance is = %f"x);
        }
        else
        {
            printf("Please enter amount under your account balance");
        }
        break;
    case 'b':
        printf("your total balance is = %f"x);
        break;
    default:
        printf("Please choose only c for creadit , d for debit and b for balance checking");
        break;
    }
    return 0;
}
// source code in the description
// run code

Wednesday, 16 June 2021

website development crash course 2021

 code of the website video link https://www.youtube.com/watch?v=h7UoV1ACQ28&t=103s

<!DOCTYPE html>
<html lang="en">
<head>
    <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>Home page</title>
    <style>
        *{
            margin0;
            padding0;
            box-sizingborder-box;
        }
        header
        {
            width100%;
            displayflex;
            background-color:aqua ;
            min-height50px;
        }
        #logo_div{
            width30%;
            background-color#000;
            color#fff;
            /* text-align: center;  OR */
            displayflex;
            justify-contentcenter;
            align-itemscenter;

        }
        #navigation_bar{
            width:69%;
            displayflex;
            justify-contentspace-around;
            align-itemscenter;
        }
        #navigation_bar>a{
            color#fff;
            padding9px;
            background-color#000;
            text-decorationnone;
        }
        /* Now time for hover effect */
        #navigation_bar>a:hover{
            background-colorcoral;
            color#000;
            padding12px;
        }
        /* second section */

        #section_two{
            width100%;
            displayflex;
            justify-contentcenter;
            align-itemscenter;
        }
        #background_image_div{
            width100%;
            /* here we have to add an image */
            background-imageurl("earth.jpg"); 
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            color#fff;
            min-height500px;
            font-size3vw;

        }
        /* third section */
        #third_section{
            width100%;
            displayflex;
            justify-contentspace-around;
            align-itemscenter;
            margin-top50px;
            margin-bottom50px;
        }
        #third_section>div{
            width30%;
            border5px double greenyellow;
            min-height200px;
            background-colorteal;
            text-aligncenter;
            color#fff;
            font-size1.7vw;
        }
        /* time for hover effect */
        #third_section>div:hover{
            border10px double lightgreen;
            background-colordarkorange;
        }
    </style>
</head>
<body>
    <!-- this will show header part of this website -->
    <header>
        <!-- logo div -->
        <div id="logo_div">
            <h1>logo part</h1>
        </div>
        <!-- navigation div -->
        <nav id="navigation_bar">
            <a href="#">Home</a>
            <a href="#">log in</a>
            <a href="#">register</a>
        </nav>
    </header>

    <!-- create section and div -->
    <section id="section_two">
        <div id="background_image_div">
                <h2>Welcome ! You are Welcome !</h2>
        </div>
    </section>
    <!-- third part which is div with heading and texts -->
    <section id="third_section">
        <div>
            <h4>heading 1</h4><br>
            <p>This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video This is just a text . if you like this playlist please like and share this video</p>
        </div>

        <div>
            <h4>heading 1</h4><br>
            <p>This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video This is just a text . if you like this playlist please like and share this video</p>
        </div>

        <div>
            <h4>heading 1</h4><br>
            <p>This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video This is just a text . if you like this playlist please like and share this video</p>
        </div>
    </section>
<style>
    footer{
        width100%;
        displayflex;
        justify-contentspace-around;
        background-color#000;
        min-height200px;
    }
    footer>div{
        width20%;
        displayflex;
        flex-directioncolumn;
        align-contentspace-around;
        justify-contentcenter;
    }
    footer>div>strong{
        coloryellow;
    }
    footer>div>a{
        color#fff;
        text-decorationnone;
    }
</style>
    <!-- footer part  -->
    <footer>
        <div>
            <strong>Important links</strong><br><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
        </div>
        <div>
            <strong>Our sources</strong><br><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
        </div>
        <div>
            <strong>Social media links</strong><br><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
        </div>
    </footer>
</body>
</html>
<!-- code will be in the description part -->

Tuesday, 15 June 2021

stop watch using c language

 code of the stopwatch using c language

#include <stdio.h>
#include <windows.h> // this is for sleep function we are going to use it in furture code

int main()
{
    int h , m ,s ; // create variable for hour minutes and second
    int d = 1000// this will use in loop for milliseconds

    printf("Set time : \n");
    scanf("%d%d%d",&h,&m,&s);
    if(h>12 || m > 59 || s > 59){
        printf("Error ! \n");
        exit(0);
    }

    // now create a loop while loop
    while(1// this will generate infine loop
    {
        s++; // second will be increament infinitly
        if(s>59){
            m++;
            s=0;
        }
        if(m>59){
            h++;
            m = 0;
        }
        if(h>12){
            h = 1;
        }
        // now prinf some text to decorate coding or hints 
        printf("Clock time : \n");
        printf("%02d : %02d : %02d" , hm , s);
        Sleep(d); // this is the function that we discussed before above code
        system("cls");
    }
   
}

// now run the code
// you can find this code in the description of this video

By laptop