Sunday, April 7, 2019

FCFS(First Come First Serve) Program in C

 FCFS stand for First Come First Served. In this program you will learn how to work FCFS program in c. First in, first out (FIFO), is also known as first come, first served (FCFS), it is the simplest scheduling algorithm. FIFO is the simply queues processes in the order that they arrive in the ready queue.


FCFS Program:


#include<stdio.h>

int main()
{
    int n,bt[20],wt[20],tat[20],avwt=0,avtat=0,i,j;
    printf("Enter total number of processes(maximum 20):");
    scanf("%d",&n);

    printf("\nEnter Process Burst Time\n");
    for(i=0;i<n;i++)
    {
        printf("P[%d]:",i+1);
        scanf("%d",&bt[i]);
    }

    wt[0]=0;    //waiting time for first process is 0

    //calculating waiting time
    for(i=1;i<n;i++)
    {
        wt[i]=0;
        for(j=0;j<i;j++)
            wt[i]+=bt[j];
    }

    printf("\nProcess\t\tBurst Time\tWaiting Time\tTurnaround Time");

    //calculating turnaround time
    for(i=0;i<n;i++)
    {
        tat[i]=bt[i]+wt[i];
        avwt+=wt[i];
        avtat+=tat[i];
        printf("\nP[%d]\t\t%d\t\t%d\t\t%d",i+1,bt[i],wt[i],tat[i]);
    }

    avwt/=i;
    avtat/=i;
    printf("\n\nAverage Waiting Time:%d",avwt);
    printf("\nAverage Turnaround Time:%d",avtat);

    return 0;
}




Output:- 

FCFS Program

Monday, April 1, 2019

What is Local Area Network(LAN)?

A local area network (LAN) is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building.

Full Form of LAN is Local Area Network.


LAN
A local area network (LAN) is a group of computers and associated devices that share a common communications line or wireless link to a server. Typically, a LAN encompasses computers and peripherals connected to a server within a distinct geographic area such as an office or a commercial establishment. Computers and other mobile devices use a LAN connection to share resources such as a printer or network storage.

A local area network may serve as few as two or three users (for example, in a small-office network) or several hundred users in a larger office. LAN networking comprises cables, switches, routers and other components that let users connect to internal servers, websites and other LANs via wide area networks.

Typically, a suite of application programs can be kept on the LAN server. Users who need an application frequently can download it once and then run it from their local device. Users can order printing and other services as needed through applications run on the LAN server. A user can share files with others stored on the LAN server; read and write access is maintained by a network administrator. A LAN server may also be used as a web server if safeguards are taken to secure internal applications and data from outside access.


LAN is a type of network. LAN is used to locally connect several devices with each other.

  1. LAN normally covers an area of less than 2 miles.
  1. It is generally owned privately.
  1. Connects some host in a single office, building or campus.
  1. It has Client-Server Architecture
  1. Depending on the needs of organizations, can be simple as two PCs and a printer in someone's office. Or extended throughout a company.

  • Allows sharing of resources.
  • Hardware e.g Printer
  • Software e.g an application program
  • Data



Sunday, March 24, 2019

Windows Activate Permanently 10,8.1,8,7 All Version || 100% Legal Way to Active Windows

In this article, you will learn how to activate windows. Permanently activate windows 7,8,8.1,10 all version without installing any harmful software or key. 100% legal way to activate your windows.




Windows Activate Without Software


Windows All Version:

  • Windows-XP  
  • Windows-7
  • Windows-8
  • Windows-8.1
  • Windows-10

FOLLOW MY SETUP


1. Open the web browser.
2. Type the bit.ly/windowstxt.
3. Copy all the text (Ctrl+C).
4. Open a new text document.
5. Paste the copy text (Ctrl+V).
6. Save as file in any name (
Example: Windows.cmd) but
    when you complete typing the file name add (
.cmd) then press save button.
    Example: If you type the file name 
Windows
   Then the complete file name is Windows.cmd
7. Windows text file Run as administrator.
8. Wait for a few minutes and windows activate automatically.






When you complete the process, you can see that product activate successfully.


Windows Activate TXT File Link: https://get.msguides.com/windows-10-8.1-8-7.txt




Saturday, March 23, 2019

How to Create Table Using HTML || Make Database Form Using HTML

In this article, you will learn how to create a table using HTML. Make different types of table form using the source code. Create database table form using HTML.

Table

Create Table Using HTML


<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<title>NAME</title>
</head>

<body>

<table border="1" width="525" height="321">
<tr>
<td height="35" width="243" valign="bottom">
<p align="center"><b><font size="5">NAME</font></b></td>
<td height="35" width="266" valign="bottom">
<p align="center"><b><font size="5">ADDRESS</font></b></td>
</tr>
<tr>
<td height="35" width="243" valign="bottom"><font color="#800080">HANIF
MIAH</font></td>
<td height="35" width="266" valign="bottom"><font color="#800080">
COOCHBEHAR</font></td>
</tr>
<tr>
<td height="32" width="243" valign="bottom"><font color="#800080">HASAN
AL BANNA</font></td>
<td height="32" width="266" valign="bottom"><font color="#800080">
BANGLADESH</font></td>
</tr>
<tr>
<td height="34" width="243" valign="bottom"><font color="#800080">RAKESH
MANDAL</font></td>
<td height="34" width="266" valign="bottom"><font color="#800080">MALDA</font></td>
</tr>
<tr>
<td height="39" width="243" valign="bottom"><font color="#800080">BARKAT
ALI</font></td>
<td height="39" width="266" valign="bottom"><font color="#800080">
COOCHBEHAR</font></td>
</tr>
<tr>
<td height="41" width="243" valign="bottom"><font color="#800080">RABIUL
AWAL</font></td>
<td height="41" width="266" valign="bottom"><font color="#800080">
MURSHIDABAT</font></td>
</tr>
<tr>
<td height="38" width="243" valign="bottom"><font color="#800080">BISHAL
MAHANTO</font></td>
<td height="38" width="266" valign="bottom"><font color="#800080">MALDA</font></td>
</tr>
<tr>
<td height="28" width="243" valign="bottom"><font color="#800080">
ABDULLA FARUK</font></td>
<td height="28" width="266" valign="bottom"><font color="#800080">
MURSHIDABAT</font></td>
</tr>
</table>

</body>

</html>

HTML Important Mcq Question With Answer ~ CodeTextPro

Q 1 - Which of the following feature is a part of HTML 5?
A. Persistent Local Storage
B. WebSocket
C. Server-Sent Events
D. All of the above.
Q 2 - Which of the following tag represents a section of the document intended for navigation in HTML5?
A. footer
B. nav
C. section
D. dialog
Q 3 - Which of the following is true about 'video' tag in HTML5?
A. MPEG4 files with H.264 video codec and AAC audio codec are supported.
B. You can use <source> tag to specify media along with media type and many other attributes.
C. An video element allows multiple source elements and the browser will use the first recognized format.
D. All of the above.
Q 4 - HTML stands for?
A. Hyper Text Markup Language
B. High Text Markup Language
C. Hyper Tabular Markup Language
D. None of these


Q 5 - which of the following tag is used to mark the beginning of the paragraph?
A. <TD>
B. <br>
C. <P>
D. <TR>

Q 6 - Correct HTML tag for the largest heading is
A. <head>
B. <h6>
C. <heading>
D. <h1>

Q 7 - Markup tags tell the web browser
A. How to organize the page
B. How to display the page
C. How to display the message box on the page
D. None of these


Q 8 - www is based on which model?
A. Local-server
B. Client-server
C. 3-tier
D. None of these

Q 9 - Which of the following attributes of text box control allow to limit the maximum character?
A. size
B. len
C. max length
D. all of these

Q 10 - Web pages start with which of the following tag?
A. <Body>
B. <Title>
C. <HTML>
D. <Form>

Q 11 - Which of the following is a container?
A. <SELECT>
B. <BODY>
C. <INPUT>
D. Both (a) and (b)

Q 12 - The attribute, which defines the relationship between the current document and HREF'ed URL is
A. REL
B. URL
C. REV
D. all of these

Q 13 - Correct HTML to left align the content inside a table cell is
A. <tdleft>
B. <td raligh = "left" >
C. <td align = "left">
D. <td leftalign>

Q 14 - The tag which allows you to rest other HTML tags within the description is
A. <TH>
B. <TD>
C. <TR>
D. <CAPTION>

Q 15 - <Base> tag is designed to appear only between
A. <HEAD>
B. <TITLE>
C. <BODY>
D. <FORM>

Q 16 - A much better approach to establishing the base URL is to use
A. BASE element
B. HEAD element
C. both (a) and (b)
D. none of these

Q 17 - Which of the tag is used to creates a number list?
A. <LI>
B. <OL>
C. <LI> and <OL>
D. None of these

Q 18 - <INPUT> is
A. format tag
B. empty tag
C. both (a) and (b)
D. none of these

Q 19 - The latest HTML standard is
A. XML
B. SGML
C. HTML 4.0
D. HTML 5.0

Q 20 - The tag used to create a hypertext relationship between the current document and another URL is
A. <ISINDEX>
B. <A>
C. <LINK>
D. none of these

Q 21 - The text inside the <TEXT AREA> tag works like
A. <P> formatted text
B. <T> formatted text
C. <PRE> formatted text
D. none of these

Q 22  - Main container for <TR>, <TD> and <TH> is
A. <TABLE>
B. <GROUP>
C. <DATA>
D. All of these

Q 23  - The body tag usually used after
A. Title tag
B. HEAD tag
C. EM tag
D. FORM tag

Q 24  - Which tag creates a number/order list?
A. <UL>
B. <OL>
C. <OT>
D. None of these

Q 25  - What HTML tag do we use to link the HTML with the CSS file?
A. <a>
B. <css>
C. <link>
D. None of these

Q 26  - CSS is written in rules. Each rule consists of:
A. a selector and a property
B. a selector and a declaration block
C. CSS
D. None of these

Q 27  - What is the difference between classes and IDs?
A. classes Can be used as many times as we wish, while ID's can be used only once in each HTML document
B. classes always have priority over ID's in HTML and CSS
C. Classes are semantically more correct than Id's
D. Classes and ID's are the same.

Q 28  - What CSS property do we use to create space between container?
A. space
B. margin
C. padding
D. None of these

Q 29  - HTML elements can be:
A. Low level or high-level elements.
B. low-priority or high-priority elements.
C. inline or block elements.
D. None of these.



How to Create HTML Form ~ CodeTextPro

In this article, you will learn how to create an HTML form. Different types of stylish registration form are available here. 

 Registration Form
HTML Form

HTML Form Types


<!DOCTYPE html>
<html>
<body bgcolor="#F22235">

<h2>HTML Forms</h2>

<form>
  First name:<br>
  <input type="text" name="firstname" value="Hanif">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Miah">
  <br><br>
  <input type="submit" value="Submit">
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
<p> Radio Button </p>

<input type="radio" name="gender" value="male" checked> Male<br>
  <input type="radio" name="gender" value="female"> Female<br>
  <input type="radio" name="gender" value="other"> Other
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
 <p> GROUP </p>
 <fieldset>
    <legend>Personal information:</legend>
    First name:<br>
    <input type="text" name="firstname" value="Hanif"><br>
    Last name:<br>
    <input type="text" name="lastname" value="Miah"><br><br>
    <input type="submit" value="Submit">
  </fieldset>
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
<p> GET METHOD </p>
</form>

<form action="/xml.php" target="_blank" method="GET">
  First name:<br>
  <input type="text" name="firstname" value="Hanif">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Miah">
  <br><br>
  <input type="submit" value="Submit">
</form>
<p>-------------------------------------------------------</p>
            <!-- CodeTextPro.Com-->
<p> POST METHOD </p>
<form action="/action_page.php" target="_blank" method="POST">
  First name:<br>
  <input type="text" name="firstname" value="Hanif">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Miah">
  <br><br>
  <input type="submit" value="Submit">
</form>

</body>
</html>