Cloud Computing

Cloud computing is a general term for anything that involves delivering hosted services over the Internet. These services are broadly divided into three categories: Infrastructure-as-a-Service (IaaS), Platform-as-a-Service (PaaS) and Software-as-a-Service (SaaS). The name cloud computing was inspired by the cloud symbol that's often used to represent the Internet in flowcharts and diagrams.

A cloud service has three distinct characteristics that differentiate it from traditional hosting. It is sold on demand, typically by the minute or the hour; it is elastic -- a user can have as much or as little of a service as they want at any given time; and the service is fully managed by the provider (the consumer needs nothing but a personal computer and Internet access). Significant innovations in virtualization and distributed computing, as well as improved access to high-speed Internet and a weak economy, have accelerated interest in cloud computing.

A cloud can be private or public. A public cloud sells services to anyone on the Internet. (Currently, Amazon Web Services is the largest public cloud provider.) A private cloud is a proprietary network or a data center that supplies hosted services to a limited number of people. When a service provider uses public cloud resources to create their private cloud, the result is called a virtual private cloud. Private or public, the goal of cloud computing is to provide easy, scalable access to computing resources and IT services.
Infrastructure-as-a-Service like Amazon Web Services provides virtual server instanceAPI) to start, stop, access and configure their virtual servers and storage. In the enterprise, cloud computing allows a company to pay for only as much capacity as is needed, and bring more online as soon as required. Because this pay-for-what-you-use model resembles the way electricity, fuel and water are consumed, it's sometimes referred to as utility computing.
Platform-as-a-service in the cloud is defined as a set of software and product development tools hosted on the provider's infrastructure. Developers create applications on the provider's platform over the Internet. PaaS providers may use APIs, website portals or gateway software installed on the customer's computer. Force.com, (an outgrowth of Salesforce.com) and GoogleApps are examples of PaaS. Developers need to know that currently, there are not standards for interoperability or data portability in the cloud. Some providers will not allow software created by their customers to be moved off the provider's platform.
In the software-as-a-service cloud model, the vendor supplies the hardware infrastructure, the software product and interacts with the user through a front-end portal. SaaS is a very broad market. Services can be anything from Web-based email to inventory control and database processing. Because the service provider hosts both the application and the data, the end user is free to use the service from anywhere.





posted under | 0 Comments

Design a Database on cinema hall booking system

create database cinema
create table credit_information(num_of_credit int,type nvarchar(20),name nvarchar(20),user_id nvarchar(20),expdate datetime,ticket int,movie nvarchar(20))
insert into credit_information values(1,'master','bipin','M1',14/02/2012,05,'housefull2')
insert into credit_information values(2,'visa','avinash','M2',15/02/2012,05,'kahani')
insert into credit_information values(3,'master','ashok','M3',16/02/2012,05,'agent vinode')
insert into credit_information values(4,'master','ankit','M4',17/02/2012,05,'housefull')
insert into credit_information values(5,'visa','abhishek','M5',19/02/2012,05,'veer')
insert into credit_information values(7,'master','sushant','M6',18/02/2012,05,'LOC')
insert into credit_information values(6,'master','shekhar','M7',10/02/2012,05,'INDIAN')
select *from credit_information

Create Statment for the User_info table:

create table user_info(First_name nvarchar(20), Last_name nvarchar(20),
Userid nvarchar(20) primary key,
password nvarchar(20),
contact nvarchar(20) ,Hint_question nvarchar(50),
Hint_answer nvarchar(50),Email_id nvarchar(20) unique)

Insert Statment for the User_info table:
insert into user_info values('Shekhar','Tiwari','1GHJ','1234','jalandhar','pet_name','dog','a@gmail.com')
insert into user_info values('Rajan','Singh','2GHJ','12345','jalandhar','pet_name','cat','f@gmail.com')
insert into user_info values('Nitin','Kumar','3GHJ','12346','jalandhar','pet_name','cow','a1@gmail.com')
insert into user_info values('Kumar','Rana','4GHJ','12347','jalandhar','pet_name','pagwin','r@gmail.com')

Select Statment for the User_info table:

Select *from user_info

Create Statment for the booking_info table:

create table booking_info(Movie_Id nvarchar(20) primary key,
Name_of_movie nvarchar(20),
Showtime nvarchar(20),
Screen_No nvarchar(20))

Insert Statment for the booking_info table:
insert into booking_info values('2222','Housefull2','12Pm','3')
insert into booking_info values('3332','Singh_is_king','10Am','4')
insert into booking_info values('3344','SINGHAM','4Pm','2')
insert into booking_info values('5556','Veer','3Pm','1')

Select Statment for the booking_info table:

Select *from booking_info

Create Statment for the location table:

create table location(Zipcode int unique,
State nvarchar(20),
City nvarchar(20),
Country nvarchar(20),
Theatre_Id nvarchar(20) primary key)

Insert Statment for the location table:
insert into location values(22222,'UP','Lucknow','India','9')
insert into location values(33322,'MP','Ciruanm','India','10')
insert into location values(33442,'AP','Arunchal','India','11')
insert into location values(55562,'Delhi','Delhi','India','12')

Select Statment for the location table:

Select *from location

create Statment for the movie table:
create table movie(movie_id nvarchar(20) primary key,
name_of_movie nvarchar(20),
Detail nvarchar(20))

Insert Statment for the movie table:
insert into movie values('2222','housefull2','comedy')
insert into movie values('3332','singh_is_king','comedy')
insert into movie values('3344','shingham','ACTION')
insert into movie values('5556','Veer','ACTION')

Select Statment for the movie table:
Select *from movie

create Statment for the screen_info table:
create table screen_info(movie_id nvarchar(20) primary key,
Screen_id nvarchar(20),
Theatre_id nvarchar(20))

Insert Statment for the screen_info table:
insert into screen_info values('2222','s1','9')
insert into screen_info values('3332','s2','10')
insert into screen_info values('3344','s3','11')
insert into screen_info values('5556','s4','12')

Select Statment for the screen_info table:
Select *from screen_info

create Statment for the Theatre_info table:
create table theatre_info(theatre_id nvarchar(20) primary key,
number_of_Screen nvarchar(20),
name_of_Theatre nvarchar(20))

Insert Statment for the screen_info table:
insert into theatre_info values('2222','4','PVR')
insert into theatre_info values('3332','3','WAVE')
insert into theatre_info values('3344','2','FUN')
insert into theatre_info values('5556','2','BIG_cinema')

Select Statment for the theatre_info table:
Select *from theatre_info

create Statment for the show_time table:
create table show_time(movie_id nvarchar(20) primary key,
Screen_id nvarchar(20),
Theatre_id nvarchar(20))

Insert Statment for the show_time table:
insert into show_time values('2222','s1','9')
insert into show_time values('3332','s2','10')
insert into show_time values('3344','s3','11')
insert into show_time values('5556','s4','12')

Select Statment for the show_time table:

Select *from show_time

posted under | 2 Comments

Program to Draw a FLAG

#include
#include
#include
void main()
{
int gd = DETECT,gm;
clrscr();
initgraph(&gd,&gm,” “);
setcolor(5);
line(20,50,20,180);
line(20,50,100,50);
line(20,70,100,70);
line(20,90,100,90);
line(20,110,100,110);
line(100,50,100,110);
circle(60,80,10);
line(52,80,68,80);
line(60,72,60,88);
setfillstyle(SOLID_FILL,22);
floodfill(21,51,5);
setfillstyle(SOLID_FILL,7);
floodfill(21,75,5);
setfillstyle(SOLID_FILL,2);
floodfill(21,95,5);
setfillstyle(SOLID_FILL,7);
floodfill(81,75,5);
setfillstyle(SOLID_FILL,7);
floodfill(61,81,5);
getch();
closegraph();
}

posted under | 0 Comments
Older Posts

About

Cool na? :) Now Learn How to create one by Clicking here


Followers

About This Blog