arrow
arrow

LATEST_BLOG_INFORMATION

C++


Programs


Practical


Apply


Checkouts


DECIMAL TO BINARY CONVERSION

Entered the number in binary


Binary to Decimal converted

Source Code



                                
                                     
                                         //HTML 
                                        <h1>DECIMAL TO BINARY CONVERSION</h1>
                                        <div class="row-6-1">
                                            <div class="form">
                                                <h2>Entered the number in binary</h2>
                                                <input type="text" class="input" id="binary">
                                                <br>
                                                <input type="button" value="Convert" id="btn" onclick="binary()">
                                                <h2>Binary to Decimal converted</h2>
                                                <input type="text" id="decimal" value="">
                                            </div>
                                        </div>                
                                    
                                
                            
                                
                                    
                                        /*Binary to Decimal converter*/
.contanier-6
{
    width:90%;
    height: 190vh;
    padding-left:4% ;
    padding-right: 4%;
    box-sizing: border-box;
    /* background-color:rgb(160, 186, 192); */
    margin-left: 90px;
    position: relative;
    bottom: 380px;    
}
.row-6-1
{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 100px;
    margin-left: 50px;
    height: 70vh;
    background-color:rgb(135, 228, 208);
    border: 20px solid rgb(2, 103, 110);
    border-radius: 20px;
}
.contanier-6 h1
{
    position: relative;
    left: 170px;
    top: 70px;
    z-index: -1;
}
.form
{
    padding-left: 200px;
    padding-top: 70px;
}
.form input
{
    margin-top: 20px;
    padding: 0.6rem 15vh;
    border-radius: 20px;
    border: 2px solid rgb(135, 228, 208);
}
.form h2
{
    margin-top: 20px;
}
#btn
{
    margin-top: 50px;
    margin-bottom: 30px;
    border-radius: 20px;
    background-color: #e28b00;
    color: white;
    font-size: 18px;
}
#btn:hover
{

    background-color: #493ac8;
    color: rgb(255, 255, 255);
    font-size: 20px;
    padding-left: 17vh;
    cursor: pointer;
}
.chupa-rustum
{
    display: none;
}
.row-6-2 h1
{
    font-size: 30px;
    margin-bottom: 30px;
}
                                    
                                
                            
                                
                                    
                                        const binary=()=>{
                                            let binary = document.getElementById('binary').value;
                                            let rem;
                                            let n=0;
                                            let cal=0;
                                            // Calcualtions
                                            while (binary != 0) {
                                                rem = binary % 10;
                                                cal=cal+(rem*(Math.pow(2,n)));
                                                //Use the parseInt to conver the division in the in t form
                                                binary=parseInt(binary/10);
                                                n++;
                                            }
                                            // Display
                                            document.getElementById('decimal').value=cal;
                                        }
                                    
                                
                            

PUCIT FIRST SEMISTER GPA CALCULATER

PUCIT FIRST SEMISTER GPA CALCULATER


Put your total obtained marks out of 100


Enter obtained marks in English:

Enter obtained marks in Physics:

Enter obtained marks in Pak-Studies:

Enter obtained marks in Quran_Translation:

Enter obtained marks in ICT:


Enter obtained marks in Programming_Fundamentals:

Enter obtained marks in PF_lab:


Enter obtained marks in Math(Bio-students if you are not a bio student then leave it empty):



TOTAL_GPA



If you want to get the source code than Contact_us


Project Hand Cricket!

How to play this game?

Instructions

Step 1:

Firstly there is a toss between you and computer!

Step 2:

Secondly, you choose an tally mark(like your five fingers of hand) enter any number between 1 and 5
like (tally as head ,tail head tail ,......).

Step 3:

Thirdly, you choose the number 1 to 6 and enter your number ,computer enter its number ownly and if your's number and computer's number beacme same then batting player out!

Step 4:

Last,2nd player now play and enter number till both the computer number and your number became same!

Hand Cricket game

pic

First Toss

Choose head or tail:


computer

Enter the Tally Marks between 1 and 5


animation

Lets,Start the game!

Your's Turn :




Computer's Turn :

if you want to get the source code of this game than you contact me! on Contact_Us

I developed the Contacts Web Application by using the pure Javascript,CSS3 and HTML 5.
Check it out:-



Contactapp

Quick Access


https://muhibphonedirectory.netlify.app/


App Features

  • Save unlimited Contacts.
  • You can delete the specific contact when you want.
  • Search specific contact in search bar.
  • If you are multi_Sim user than you just open this website in another browser like fireFox than you can save other sim contacts in that browser
  • Total contacts are also be shown.

Whats make this website differents from others?

Amazing Feature That Increase your Productivity

If you don't find any problem,in this website and if you have a very difficult assignment question that is not present on internet ,then you dont bother yourself,we are here to solve every problem of your life you just click on the Problem asking button and write your problem we slove the code of your problem and sent you on your email addres that you put in the sin up form.