Monday, October 5, 2015

Java Program to calculating value using Scanner in Java

Using this Program we can calculate given value of a&b using scanner. This program will help to build the calculator. So read carefully and implement this program.


package com.indra;

import java.util.Scanner;

public class SystemUsingScanner {
static int a;
static int b;
static int c;

public static void main(String[] hh) {
Scanner obj = new Scanner(System.in);
for (int i = 0; i >= 0; i++) {
System.out.println("1 Addition");
System.out.println("2 Substraction");
System.out.println("3 Multiplication");
System.out.println("4 Division");
System.out.println("5 for close your calculator");
int op = obj.nextInt();
boolean close = false;///// use to check case 5 for close this program
switch (op) {

case 1:
System.out.println("Enter the value of a & b for Addition");
a = obj.nextInt();
b = obj.nextInt();
c = a + b;
System.out.println(c);
break;
case 2:
System.out.println("Enter the value of a&b for multiplication");
a = obj.nextInt();
b = obj.nextInt();
c = a - b;
System.out.println(c);
break;
case 3:
System.out.println("Enter the value of a&b for multiplication");
a = obj.nextInt();
b = obj.nextInt();
c = a * b;
System.out.println(c);
break;
case 4:
System.out.println("Enter the value of a&b for multiplication");
a = obj.nextInt();
b = obj.nextInt();
c = a / b;
System.out.println(c);
break;
case 5:
close = true;
break;
default:
break;
}
if (close) {        /// condition true then program will close
break;
}
}
}
}

Friday, October 2, 2015

Make a Calculator Using Scanner

The java.util.Scanner class is a simple text scanner which can parse primitive types and strings using regular expressions.Following are the important points about Scanner:
1-A Scanner breaks its input into tokens using a delimiter pattern, which by default matches whitespace.
2-A scanning operation may block waiting for input.
3-A Scanner is not safe for multithreaded use without external synchronization.

package com.indra;

import java.util.Scanner;

public class TangentProgram {

public static void main(String[] hh) {
Scanner sc = new Scanner(System.in);
for (int i = 0; i >= 0; i++) {
System.out.println("1 for sin value\n2 for cos value\n3 for tan value\n4 for cot value\n5 for sec value\n6 for cosec value\n7 for square\n8 for square root\n9 1/square root");
int operator = sc.nextInt();
System.out.println("Enter the value of theta");
double theta = sc.nextDouble();

switch (operator) {
case 1:
System.out.println("Answer is - "
+ Math.sin(Math.toRadians(theta)));
break;
case 2:
System.out.println("Answer is - "
+ Math.cos(Math.toRadians(theta)));
break;
case 3:
System.out.println("Answer is - "
+ Math.tan(Math.toRadians(theta)));
break;
case 4:
System.out.println("Answer is - "
+ (1 / Math.tan(Math.toRadians(theta))));
break;
case 5:
System.out.println("Answer is - "
+ (1 / Math.cos(Math.toRadians(theta))));
break;
case 6:
System.out.println("Answer is - "
+ (1 / Math.sin(Math.toRadians(theta))));
break;
case 7:
System.out.println("Answer is - " + theta * theta);
break;
case 8:
System.out.println("Answer is - " + theta * theta * theta);
break;
case 9:
System.out.println("Answer is - " + (Math.sqrt(theta)));
break;
case 10:
System.out.println("Answer is - " + (Math.cbrt(theta)));
break;
default:
break;
}
}
}
}

Wednesday, March 4, 2015

Operators in PL/SQL

The operators which we are using in SQL the same Operators  supported by PL/SQL.

Input Statement in PL/SQL-
 There is no input statement or input function to input the values at run time. If you want to use i/p the value at run time we need to use insertion operation in PL/SQL.

Output Statement in PL/SQL-
dbms_output.put_line() - this is output statement that are using in PL/SQL programing language.

There are following type of output statement using in PL/SQL statement.

Syntax 1- dbms_output.put_line("message");
exp.-        dbms_output.put_line("infoindiatech");

Syntax 2-  dbms_output.put_line('message' || variable);
exp.-         dbms_output.put_line('sum of two number is' || c);

Syntax3-   dbms_output.put_line(variable);
 exp.-        dbms_output.put_line(c);

what is Block in PL/SQL-
Block is grouped code or set of statement these block are classified into two parts
1-Anonymous Block or Unnamed Block-Anonymous block are those block which we can not store permanently in the database.
Once the user log off from the database the block are completely vanished these block also called Unnamed block.
2-Subprograms- Subprograms are those block which we can store permanently in the database so that user at any particular point of time can access these block.
These block referred with some name so these block can be called named PL/SQL Blocks.


Saturday, February 28, 2015

What is PL/SQL

PL/SQL- Pl/SQL stand for procedural language by structure query language and it is the combination of procedural language statement and SQL.

It has following activities

1-PL/SQL is not a case sensitive language
2-In SQL we can not execute more than one statement repeatedly to particular number of times.
3-But whereas in PL/SQL we can execute the same statement repeatedly to particular number of times because it support looping mechanism.
4-In SQL we can not execute more than one statement simultaneously but whereas in PL/SQL wecan execute more than statement.
5-PL/SQL support all the principles of procedural language concept so we can easily execute the all statement.
6-PL/SQL is a high performance transaction processing language


Friday, February 27, 2015

Prospects as a kitty party venue for your restaurant

Your restaurant business might be doing great as an eatery but have you considered the untapped potential of qualifying as an ideal venue for parties and get-together. Even the go-to places in town can’t count upon perineal flock of customers. Some days are just meant to give average business. While it may not be something worrisome to you but business always means expansion. And expanding into this new horizon will indeed give you an edge over your competitors.

Here are a few reasons why you should contact kitty party planners in Delhi and discuss your restaurant’s potential as a venue.






 •    The first and the most obvious benefit such social gatherings provide is immense exposure. In a place like Delhi where there is no dearth of hang-out points, people from different parts of town would gather up. If the food is good and the service admissible, well, then you know, word of mouth spreads faster than fire.

•    Kitty parties are a The prices involved is one time

•    You can also get into Kitty Party planning for businesses. Networking with high profile corporates may can open various prospects for you. Besides, tending to the high profile page3 parties will earn you reputation and free media coverage.

•    Outings have a season. Marriages have a season. But kitty parties is festivity all around the year. So it keeps your place humming all through the year.

•    Kitty parties in Delhi are the ticket to launch yourself as a party venue. Women these days are a part of multiple kitties. This opens up new gateways for business and networking. You can host various groups and several personal celebrations as well, if you are able to gain there approval for your services.

•    By issuing out complimentary gifts and/or discount coupons you can further guarantee their patronage as diners and party hosts.

So, it’s a win win deal. and the little investment it would call for initially is well worth it.   

Friday, January 9, 2015

Kitty Networks | Kitty Party Planning for Indian Ladies

There are ample themes that can be adopted for hosting kitty parties for Indian women. An upcoming festival theme works good if you know how to pull it off.

There are some creative kitty party themes for you to throw a grand event for your friends. Kitty party planning for individuals can take a lot of work, but that doesn’t mean that it can’t be done. If you plan and implement step by step, you’ll begin to get intrigued more and more.

So here are some interesting themes suitable to put up a memorable party for Indian women:

1.    Wedding theme

Weddings are famous among Indian women as it’s the one occasion that almost requires them to be at their best, and they abide by the necessity whenever they have a chance. This theme can do wonders for a kitty party. Dress code may include heavily embroidered sarees and bright lehengas with matching makeup and jewelry.



 The décor could be done using materials such as garlands, rose petals, flowers, diyas or lamps, and loud sheets and cushions.

2.    Indian Village Theme

Who wouldn’t like to go back to the time when all we had in India was small villages and even smaller communities. It calls for a celebration of the lost times in today’s modern India - perfect theme to re-invoke ancient culture and tradition which Indian ladies would greatly adore.

You could dress up in traditional salwar-kameez or a plain long skirt paired up with a simple shirt, or any other cultural clothing. Jewelry and accessories need not be too loud. Simple glass bangles and an aknlet could do the job.
 
To deck up the venue, you can use clay pots for holding liquid items, folding beds or jute charpoys to lay out for guests.

3.    Rajasthani Theme

Who wouldn’t like a taste of some Rajasthani finesse for a kitty party. India’s rich and diverse cultures and traditions can alone make for a long list of distinct themes. Rajasthani theme is one of the more cherished and popular themes to go with.

Dressing may consist of the conventional ghagra-choli along with some vibrant bangles and accessories, and makeup.

You can drape your couch in sheets with mirror and sequin work on it along with colorful cushions.

Animal prints and Rajasthani artifacts are easily available in the market and can give the décor an ethnic feel.

Monday, December 22, 2014

Kitty Parties for Men | Kitty parties for Single Female

Kitty parties have recently gone through a makeover with couples and even men entering this realm that was exclusively associated with women earlier. It’s only true that kitty parties have been revamped and the transformation is evident on all levels and across all ages and gender. Men’s entry has led to redefining the term “kitty party.”

Kitty parties for men are a relatively new and one of the more interesting phenomena in the evolution of kitties. According to a newspaper report, men hardly have anything to complain about the fact. If anything, these social gatherings enable them to establish a network of people and places.

While women are more inclined to talk about makeup and jewelry and clothing, men are more comfortable with talking about things like news and general happenings around the world. However, one thing that both women and men like to talk about in common during kitty parties is food!

Food recipes are discussed with adoration and excitement by both parties. So, here is a kitty party recipe to tingle your taste buds:

Achari Paneer


A great dish to go with the occasion, Achari Paneer derives its flavor and aroma from a grand mix of native seeds and herbs.

Ingredients:

1 cup Paneer
1 tsp Fennel Seeds
1/4 tsp Mustard Seeds
 5 to 6 Fenugreek Seeds
1 tsp Nigella Seeds
1/2 tsp Cumin
1/2 tsp Asafoetida or Hing
1/2 cup sliced onions
1/2 tsp Turmeric
1/2 tsp Chilli powder
1/2 tsp Black Salt
3/4 cup fresh Yogurt or Dahi
1 tsp White Flour
3 tbsp Coriander leaves
1 tbsp Oil
Salt

How to pull it off:

•    Take a bowl and mix fenugreek seeds, mustard seeds, cumin, fennel seeds, nigella seeds with a bit of asafetida.
•    Ready a pan with oil and once it’s heated, slide in the mixture of seeds carefully.
•    Once the seeds have popped, add some chopped onions into the pan and stir until they are just about to turn brown in color.
•    Add the paneer, turmeric powder, chilli powder along with a bit of black salt and stir.
•    Pour in the curd with some white flour and mix well.
•    Add the coriander and salt and let it cook for a while on a light flame.
•    Serve hot along with rotis or rice.
Tricks and Tips