Wednesday, December 25, 2013

C program for Calculation of the surface and the volume of a cone


C program for Calculation of the surface and the volume of a cone



#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
 float r,h;
 float sa,volume;
 clrscr();

 printf("Enter length of radius and height of cone:\n");
 scanf("%f\n%f",&r,&h);
 
 sa=3.141*r*(r+sqrt(r*r+h*h));
 volume=(1.0/3)*3.141* r * r * h;
 printf("Surface area of cone is: %.3f",sa);
 printf("\nVolume of cone is : %.3f",volume);

 getch();
}





OUTPUT:

Enter size of radius and height of a cone: 3 10
Surface area of cone is: 126.672
Volume of cone is: 94.248






-----------------------------------------
Write a c program to find the volume and surface area of cone
C Program to Find the volume and surface area of cone
java programe find volume and surface area of a cone
C Language And Numerical Methods
How to calculate Volume, Curved Surface Area and Total Surface
How to write a C program to find the surface area and volume of a cone
C Program to Find the volume and surface area of cone

Write a C program to calculate roots of a quadratic equation

Write a C program to calculate roots of a quadratic equation



#include<stdio.h>
#include<math.h>

int main(){
  float a,b,c;
  float d,root1,root2;  

 
  printf("Enter a, b and c of quadratic equation: ");
  scanf("%f%f%f",&a,&b,&c);
   
  d = b * b - 4 * a * c;
  
  if(d < 0){
    printf("Roots are complex number.\n");

    printf("Roots of quadratic equation are: ");
    printf("%.3f%+.3fi",-b/(2*a),sqrt(-d)/(2*a));
    printf(", %.3f%+.3fi",-b/(2*a),-sqrt(-d)/(2*a));
  
    return 0; 
  }
  else if(d==0){
   printf("Both roots are equal.\n");

   root1 = -b /(2* a);
   printf("Root of quadratic equation is: %.3f ",root1);

   return 0;
  }
  else{
   printf("Roots are real numbers.\n");
  
   root1 = ( -b + sqrt(d)) / (2* a);
   root2 = ( -b - sqrt(d)) / (2* a);
   printf("Roots of quadratic equation are: %.3f , %.3f",root1,root2);
  }

  return 0;
}








-----------------------------
C PROGRAMMING SOLVING THE QUADRATIC EQUATION
How do you write a c program to solve quadratic equation
Write the C program that solve the quadratic equation problem
Searches related to write a c program to solve quadratic equation
how to write a java program that solves quadratic equations
write a c program to find the roots of a quadratic equation
write a c program to find the real roots of a quadratic equation
c programming quadratic equation roots
c program to find the roots of a quadratic equation with output
quadratic equation c programming code
quadratic equation program in c language
quadratic formula in c programming
Write a C program to to find real roots of the quadratic

write a C Program to arrange 10 numbers in ascending order

C Program to arrange 10 numbers in ascending order





/*C Program to arrange 10 numbers in ascending order*/


#include<stdio.h>

#include<conio.h>

void main()

{

int i,j,temp,a[10];

clrscr();

printf(“Enter 10 integer numbers: \n”);

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

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

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

{

for(j=i+1;j<10;j++)

{

if(a[i]>a[j])

{

temp=a[j];

a[j]=a[i];

a[i]=temp;

}

}

}

printf(“\n\nThe 10 numbers sorted in ascending order are: \n”);

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

printf(“%d\t”,a[i]);

getch();

}




OUTPUT:


Enter 10 integer numbers:

2

9

7

4

3

6

8

1

5

10

The 7 numbers sorted in ascending order are:

1     2       3       4       5            6       7       8       9      10





------------------------------------------------
Answers questions like


   
Write a c program to sort 10 numbers in ascending order
Write a program to arrange a list of numbers in ascending order
How to write a program for arranging numbers in ascending order
Write a c program to arrange numbers in ascending order
C++ Arrange 10 random integers in descending order? 
Write a C program to sort a string in ascending order.?
Program to sort numbers in ascending order and use integer point
Sort 10 Numbers In Ascending Order - C And C++
Write a simple program in java to accept 10 number

Sunday, December 22, 2013

ASP.NET Tutorial 8- Create a Login website-Creating Master Page and appl...






MasterPage Source Code


<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
   
      <table style="font-family:Arial">
    <tr>
        <td colspan="2" style="width:800px; height:80px; background-color:#3399FF; 
            text-align:center">
            <h1>
                WebSite Header
            </h1>
        </td>
    </tr>
    <tr>
        <td style="height:500px; background-color:#66FFFF; width:150px">
            <h3>Menu</h3>
        </td>
        <td style="height:500px; background-color:#9999FF; width:650px">
             <h3>content</h3>  
                 <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="background-color:#3399FF; text-align:center">
            <b>Website Footer</b>
        </td>
    </tr>
</table>


    </form>
</body>
</html>


Saturday, December 21, 2013

Prolific USB-to-Serial Comm Port LINUX DRIVER

Prolific technology USB serial driver Linux


When you connect USB (or serial to USB) to your Linux device and if it recognises the USB but A in a little different manner e.g usbdev1.XX and 
Not in the expected format like ttyUSB0 (ttyUSB1 , ttyUSB2 .....) . I am lising Out the the Steps which I have followed to Solve the problem.

First I checked What are the Devices are present in my dev directory by following command

# ls /dev/

and the response is as follows

usbdev1.1
usbdev1.2
usbdev1.3
usbdev1.4
usbdev1.5
ttyS0
ttyS1
ttyS2
ttyS3

Now I Give the Following command to Know the Devices specifications

# lsusb

The response is as follows 

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1a40:0101 TERMINUS TECHNOLOGY INC. 
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

So I know which device I am looking for . The Device is "Bus 001 Device 010: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port"

and its 'usbdev1.3'


Now I Give the followin command to find if the PL2303 driver is present on my kernal or not

# find /lib/modules -name *2303*

this replys me 

/lib/modules/3.2.29-00165-gd626b6d/kernel/drivers/usb/serial/pl2303.ko

So the .ko file is present .Now All I need to do is to Initialise the pl2303.ko to recognize my USB as ttyUSB*

Give the following command to initialize the pl2303.ko 

# insmod /lib/modules/3.2.29-00165-gd626b6d/kernel/drivers/usb/serial/pl2303.ko

Now once again check fot the device 

# ls /dev/

and This time I gives me the response 

usbdev1.1
usbdev1.2
usbdev1.4
usbdev1.5
ttyS0
ttyS1
ttyS2
ttyS3
ttyUSB1

Now I can Use ttyUSB1 as normar USB .


I also created the bash file with the content 

 #!/bin/bash         

insmod /lib/modules/3.2.29-00165-gd626b6d/kernel/drivers/usb/serial/pl2303.ko




and put it into the /etc/profile.d/ folder with 'chmod a+x' privlages
-----------------------------------------------------------
Following Problem 
insmod: error inserting 'pl2303.ko'
insmod error -- Invalid module format
prolific technology usb serial driver linux
Prolific USB-to-Serial Comm Port LINUX DRIVER
prolific usb serial driver linux ubuntu fedora
Fedora Hardware :: Prolific Pl2303 + Serial Modem - Dials But PPP Won't Authenticate
map usbdev1.xx to ttyusb
As a side note, I went to the root file system, there is no /dev/ttyUSB anything...
There is /dev/usbdev1.1, /dev/usbdev1.2, etc...does this help??
usb1
usb2
usb3
usbdev1.1_epXX <-Several
usbdev1.2_epXX <-Several
usbdev2.1_epXX <- Several
usbdev3.1_epXX <- Several
Bus 003 Device 009: ID 1199:6880 Sierra Wireless, Inc.
Bus 003 Device 001: ID 1d6b:001
Bus 002 Device 001: ID 1d6b:001
Bus 003 Device 001: ID 1d6b:002
USB Serial Converter support
insmod: can't read 'usbserial': No such file or directory
insmod: error inserting 'usbserial.ko': 
insmod: Invalid module format
copy linux ubuntu usb driver from one computer to another
modprobe  vendor=0x067b product=0x2303
activate PL2303 Serial Port linux
PL2303 serial port.

Friday, December 20, 2013

C# SQL Database Tutorial 1:How to Connect and Use Local Database ( sql s...


























------------------------------------------------------
Connecting to local SQL Server database (SQL Server Compact 3.5 database file) using C#
c# - Local database, I need some examples
c# windows, local database(sql server), connection
C# How to connect and use a database
Connecting to a Local database
how to connect to localDatabase C#
Can't connect to local database C#
Creating a Connection String and Working with SQL Server LocalDB
SQL Server Compact connection strings
Connecting to SQL Server instance through C#
How to create a local database file with no connection to a server
Can't Connect To Local Database
C# Local Server Example
visual studio - How to use a local database in c#
Connect to SQL Server 2012 Database with C# Visual Studio 2012
c# local database connect
how to open sdf (sql server compact edition) file
Managing SQL Server Compact Edition Databases
Searches related to SQL Server Compact database file
sql server compact edition database file
how to use sql server compact
sql ce
sql compact 4.0 management studio
sql server compact edition limitations
sql server compact edition management studio

Tuesday, December 17, 2013

ASP.NET Tutorial 7- Create a Login website - Creating Sessions and Secu...




















------------------------------------------------
Easy way to create secure ASP.NET login using Session
Session Attacks and ASP.NET
Which is More Secure? Session VS Cookies
ASP.NET Security: An Introductory Guide to Building
Simple Login and Redirect for ASP.NET and Access
Force ASPSessionID to change on login
Session Security in ASP.NET
Handling session and authentication timeouts in ASP

Monday, December 16, 2013

ASP.NET Tutorial 6- Create a Login website - Login page & Validating Use...





















-----------------------------------------------------------
asp.net login validation with database
c# - Validating username and password in a database in asp.net
Validating User Input in ASP.NET Web Pages Sites
Asp.Net Examples: Simple login form example in asp.net
How to create Login page/form and check username,password in database
Simple login form example in asp.net Check Username
How to implement form validation using ASP.Net 2.0
How to Validate User Login in asp.net using DataSet
ASP.NET Form to Database with Form Validation
ASP.NET Database Login
ASP.NET FormDecorator Demo - Validation and Login Controls


Friday, December 13, 2013

ASP.NET Tutorial 3- How to Create a Login website - Creating Database Fo...































--------------------------------------------------------------------
Setting up the Database  ASP.NET Site
Building ASP.NET Web Applications with
ASP.NET Web Pages Databases
ASP.NET Web Forms Tutorial
After creating Website using ASP.NET (c#), sqlserver(Database
SQL server DAtabase
Creating a Database
ASP.NET Web Pages Tutorial
Create a  Database Application in 15 Minutes with ASP.NET
Create a website with ASP.Net
Create an ASP.NET website
ASP.NET Web Pages Databases
ASP.NET Web Forms Database

Sunday, December 8, 2013

ASP.NET Tutorial 1 - Introduction and Creating Your First ASP.NET Web Site




















------------------------------------------------------
Good tutorials for beginners using ASP.NET/C#
A Beginner's Tutorial for Understanding and Implementing ASP.NET
Beginners Introduction to ASP.NET
asp.net tutorial for beginners
Searches related to asp .net tutorial for beginners
asp .net tutorial for beginners free download
asp .net tutorial for beginners pdf
asp.net tutorial
asp.net 2010 tutorial for beginners
asp net tutorial for beginners with examples
ajax tutorial for beginners in asp net
asp net tutorial for beginners youtube
jquery in asp net tutorial for beginners
Beginners Learn .NET and c# Csharp  Lab 1 Day 1

IT Certification Category (English)640x480

Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Top Online Courses From ProgrammingKnowledge

Python Course http://bit.ly/2vsuMaS
Java Coursehttp://bit.ly/2GEfQMf
Bash Coursehttp://bit.ly/2DBVF0C
Linux Coursehttp://bit.ly/2IXuil0
C Course http://bit.ly/2GQCiD1
C++ Coursehttp://bit.ly/2V4oEVJ
PHP Coursehttp://bit.ly/2XP71WH
Android Coursehttp://bit.ly/2UHih5H
C# Coursehttp://bit.ly/2Vr7HEl
JavaFx Coursehttp://bit.ly/2XMvZWA
NodeJs Coursehttp://bit.ly/2GPg7gA
Jenkins Course http://bit.ly/2Wd4l4W
Scala Coursehttp://bit.ly/2PysyA4
Bootstrap Coursehttp://bit.ly/2DFQ2yC
MongoDB Coursehttp://bit.ly/2LaCJfP
QT C++ GUI Coursehttp://bit.ly/2vwqHSZ