#include<stdio.h>
main()
{
int row, c, n, temp;
printf("Enter the number of rows in pyramid of stars you wish to see ");
scanf("%d",&n);
temp = n;
for ( row = 1 ; row <= n ; row++ )
{
for ( c = 1 ; c < temp ; c++ )
printf(" ");
temp--;
for ( c = 1 ; c <= 2*row - 1 ; c++ )
printf("*");
printf("\n");
}
return 0;
Wednesday, August 29, 2012
c program to print pattern stars
Code for Armstrong number in c
#include<stdio.h>
int main(){
int num,r,sum=0,temp;
printf("Enter a
number: ");
scanf("%d",&num);
temp=num;
while(num!=0)
{
r=num%10;
num=num/10;
sum=sum+(r*r*r);
}
if(sum==temp)
printf("%d is an
Armstrong number",temp);
else
printf("%d is
not an Armstrong number",temp);
return 0;
}
---------------------------------------------------------------------------------------
Sample output:
Enter a number: 153
153 is an Armstrong numberPascal triangle in c
1 1 1 1 2 1 1 3 3 1
---------------------------------------------------------------------
#include<stdio.h>
long factorial(int);
main()
{
int i, n, c;
printf("Enter the number of rows you wish to see in pascal
triangle\n");
scanf("%d",&n);
for ( i = 0 ; i < n ; i++ )
{
for ( c = 0 ; c <= ( n - i - 2 ) ; c++ )
printf(" ");
for( c = 0 ; c <= i ; c++ )
printf("%ld ",factorial(i)/(factorial(c)*factorial(i-c)));
printf("\n");
}
return 0;
}
long factorial(int n)
{
int c;
long result = 1;
for( c = 1 ; c <= n ; c++ )
result = result*c;
return ( result );
}
Thursday, July 26, 2012
Hash table demo (JAVA)
import java.util.*;
import java.io.*;
class demo_hashtable
{ public static void main(String args[]) throws IOException
{ BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
int opt;
String name;
double per , maxp;
Enumeration n;
Hashtable HT = new Hashtable();
do
{ System.out.println("\n1. Add student ");
System.out.println("2. Display students ");
System.out.println("3. Search student ");
System.out.println("4. Find Highest percentage ");
System.out.println("5. Exit ");
System.out.print("Enter your option : ");
opt = Integer.parseInt(br.readLine());
switch(opt)
{ case 1: System.out.print("Enter Name : ");
name = br.readLine();
System.out.print("Enter percentage : ");
per = Double.parseDouble(br.readLine());
HT.put(name , per);
break;
case 2: System.out.println(HT);
break;
case 3: System.out.print("Enter Name : ");
name = br.readLine();
if(HT.containsKey(name))
System.out.println("Percentage : " + HT.get(name));
else
System.out.println(name + " not present in hashtable");
break;
case 4: n = HT.keys();
per = maxp =0.0;
name = "";
while(n.hasMoreElements())
{ String str =(String)n.nextElement();
per = (Double) HT.get(str);
if( per > maxp)
{ maxp = per;
name = str;
}
}
System.out.println("Student : " + name +" Highest Percentage : "+maxp);
break;
case 5 : System.exit(0);
default : System.out.println("Wrong Option");
}//switch
}while(opt != 5);
}
}
Thursday, July 19, 2012
Search Engine Projects
When we talk about search engine, there are only few names which comes to our mind such as google,bing or yahoo.Even though, most of our searches happens to be on internet but there are other places such as hard disk, our personal mail folder or our word processor search, these searches are significant too.
There is scope for improvement in all types of search engine whether its desktop based or internet based. In this post I am providing you links of some open source search engines which can help you to understand this tool better.
OSS : An open source search engine and crawler based on best open source technologies: lucene, zkoss, tomcat, poi, tagsoup. A stable, high-performance piece of software. It is a modern search engine and a suite of high-powered full text search algorithms.
AASE(Anarchy Advantage Search Engine) is a search engine that reorders search results with base in the habits of its users. By measuring user activity on the search engine result page the search engine constantly improves the search results.
The Lemur Project develops search engines, browser toolbars, text analysis tools, and data resources that support research and development of information retrieval and text mining software, including the Indri search engine and ClueWeb09 dataset.
TSEP : A simple yet very powerful and fast PHP website search engine. TSEP is built to index your site so it can be searched later within seconds.
CLucene is a C++ port of Lucene: the high-performance, full-featured text search engine written in Java. CLucene is faster than lucene as it is written in C++.
Full text search engine - console tools and GUI frontends for users, program components and libraries for developers.
AASE(Anarchy Advantage Search Engine) is a search engine that reorders search results with base in the habits of its users. By measuring user activity on the search engine result page the search engine constantly improves the search results.
The Lemur Project develops search engines, browser toolbars, text analysis tools, and data resources that support research and development of information retrieval and text mining software, including the Indri search engine and ClueWeb09 dataset.
TSEP : A simple yet very powerful and fast PHP website search engine. TSEP is built to index your site so it can be searched later within seconds.
CLucene is a C++ port of Lucene: the high-performance, full-featured text search engine written in Java. CLucene is faster than lucene as it is written in C++.
Full text search engine - console tools and GUI frontends for users, program components and libraries for developers.
Project Ideas for TYBSc IT and TYBSc Computer Science Projects
Web-based Projects
Website for an educational consultant
Website for college admissions process
Website for an online Bookstore
Website for an online Consumer-durables supplier, with shopping cart
Website for a tourist organisation of a state/country
Website for a mobile device
Website for a college library
Website for an Investment Consultant
Website for a Tour Operator
Website for a public library, using barcode
Website for a public library, using RFID technology
Website for a restaurant which has home-delivery facility
Website for dating services
Website for matrimnoial services
Website for estate agent
Website for teaching SQL with facility for user to give a SQL command and get interactive response to his queries
Website for online ticket booking for cinema/theatre
Website for online yellow pages
Website for search/register online tutor
Website for launching new products
Website for e-friendship
Website for agricultural products distributor
Website for music library, with online purchase option
Website for fashion designer, with online purchase option
Website for multi-location pathology lab
Website for Internet Marketing Agency
Website for health services provider
Web-based Employee Management System
Web-based Employment Agency
Web-based Tendering System
Web-based system for hotel/resorts
Web-based Inventory Management System
GPRS-based Projects, e.g., location-based services
Web-based examination
Job/Resume post
Web-based Bilingual Dictionary
Automated Timetable and course management system
Multimedia Databases
Train Reservation Management System
State Bus Reservation System
Taxi fleet booking system with GPRS capability
Bloggng Site
Auction Portal
Software Applications
Some of these projects can also be done as web-based projects; these are marked with an * sign
Personal Investment Management System
Hospital Management System
College Employee Management System
Inventory Management System
* Sales Management System
* Banking Software
Payroll Management System
Software for a small/medium-sized Departmental Store
Software for a small/medium-sized Retail Store
Software for a Rental Business
Software for a Housing Society
Software for wholesaler dealing in mobile phones
* Software for Tax Advisor
* Software for Cricket Statistics Enthusiaist
* Software for an Investment Agent
* Software for a Book Publisher
* Software for Advertising Agency
* Software for a Frequent Traveller
* Software for a Research Scholar
Computerised Library (Barcode-enabled)
Computerised Library (RFID-enabled)
Intelligent Editor for a programming langugae
Medical Store Management System
* Bus Route Finder
College / School Timetable management system
Simulation of physical/chemical phenomenon
Simulating the working of a CPU
GIS-based Projects
GIS-based Community Information System
Online Examination System
Website for an educational consultant
Website for college admissions process
Website for an online Bookstore
Website for an online Consumer-durables supplier, with shopping cart
Website for a tourist organisation of a state/country
Website for a mobile device
Website for a college library
Website for an Investment Consultant
Website for a Tour Operator
Website for a public library, using barcode
Website for a public library, using RFID technology
Website for a restaurant which has home-delivery facility
Website for dating services
Website for matrimnoial services
Website for estate agent
Website for teaching SQL with facility for user to give a SQL command and get interactive response to his queries
Website for online ticket booking for cinema/theatre
Website for online yellow pages
Website for search/register online tutor
Website for launching new products
Website for e-friendship
Website for agricultural products distributor
Website for music library, with online purchase option
Website for fashion designer, with online purchase option
Website for multi-location pathology lab
Website for Internet Marketing Agency
Website for health services provider
Web-based Employee Management System
Web-based Employment Agency
Web-based Tendering System
Web-based system for hotel/resorts
Web-based Inventory Management System
GPRS-based Projects, e.g., location-based services
Web-based examination
Job/Resume post
Web-based Bilingual Dictionary
Automated Timetable and course management system
Multimedia Databases
Train Reservation Management System
State Bus Reservation System
Taxi fleet booking system with GPRS capability
Bloggng Site
Auction Portal
Software Applications
Some of these projects can also be done as web-based projects; these are marked with an * sign
Personal Investment Management System
Hospital Management System
College Employee Management System
Inventory Management System
* Sales Management System
* Banking Software
Payroll Management System
Software for a small/medium-sized Departmental Store
Software for a small/medium-sized Retail Store
Software for a Rental Business
Software for a Housing Society
Software for wholesaler dealing in mobile phones
* Software for Tax Advisor
* Software for Cricket Statistics Enthusiaist
* Software for an Investment Agent
* Software for a Book Publisher
* Software for Advertising Agency
* Software for a Frequent Traveller
* Software for a Research Scholar
Computerised Library (Barcode-enabled)
Computerised Library (RFID-enabled)
Intelligent Editor for a programming langugae
Medical Store Management System
* Bus Route Finder
College / School Timetable management system
Simulation of physical/chemical phenomenon
Simulating the working of a CPU
GIS-based Projects
GIS-based Community Information System
Online Examination System
Subscribe to:
Posts (Atom)
