Thursday 15 December 2011

Save our India ! Save our keystone!


" SAVE OUR INDIA! for Every 30 Minutes: A Farmer Suicides in India"








"An Agrarian crises soon in India", news needs to be thrown to every citizen and sought solution. I am blogging this article on the interest of creating public awareness and cognizance. I want everyone to spread this and throw some light over this issue.


It's official. The country has seen over a quarter of a million farmers’ suicides between 1995 and 2010. The National Crime Records Bureau’s latest report on ‘Accidental Deaths & Suicides in India’ places the number for 2010 at 15,964.That brings the cumulative 16-year total from 1995 — when the NCRB started recording farm suicide data —to 2,56,913, the worst-ever recorded wave of suicides of this kind in human history.



Prologue


India is an Agrarian country with around 60% of its people directly or indirectly depend upon Agriculture.


Almost everyone know the reason behind farmers suicides in India,including the government. It is the politicians who want to do politics upon the death of the poor souls. Hailing from an agricultural country I shed tears for the farmers suicide. India is not shining, rather it is fading by losing the precious souls who feed us.


During the year 1965-1969, India was exacerberated with life-threatening  drought, the whole India was dismayed by that. So the Hon'ble Prime Minister of that period Indira Gandhi contrived the "GREEN REVOLUTION" on the 4th Five year plan,  though 1st and 2nd  Five Year plans were concentrated mainly on Indian agriculture. India started to build new Dams and food repositories. Soon after that India attained the surplus state (i.e) India became self-sufficient country.


Are we preserving the self-sufficient state we attained? Absolutely NO, with the growing population and modernization,  We  are all  forgetting the backbone of our country. At the time of our republic, Our country had 58.6% of cultivating land but now 20% of that are changed to residential or industrial areas.


 Chemicals and Drought produce zero yield in late 1980s: Although these farming methods worked for several years for many farmers, they began to show adverse effects in the late 1980s. The overuse of chemical fertilizers caused the soil to become infertile.  This, coupled with a reduction in the genetic variety of crops,and three years of drought led to zero yield. If this level persists, at one stage of time, India will be put in the condition to buy even agri-products from other countries which we are cultivating now.


Agriculture is the main reason for any Country's wealth, Without giving importance to agriculture a country can grow its economy rapidly but soon it will be battered down because of the weak basement.  



Alarming Facts :


Agriculture minister Sharad Pawar's home state Maharashtra tops the list. It has the worst record for the 10th consecutive year. Maharashtra posts a dismal picture with over 50,000 farmers killing themselves in the country's richest State. It also remains the worst State for such deaths for a decade now. Close to two-thirds of all farm suicides have occurred in five States: Maharashtra, Karnataka, A.P., Madhya Pradesh and Chhattisgarh.


The data show clearly that the last eight years were much worse than the preceding eight. As many as 1,35,756 farmers killed themselves in the 2003-10 period. For 1995-2002, the total was 1,21,157. On average, this means the number of  farmers killing themselves each year between 2003 and 2010 is 1,825 higher than the numbers that took their lives in  the earlier period. Which is alarming since the total number of farmers is declining significantly. Compared to the 1991 Census, the 2001 Census saw a drop of over seven million in the population of cultivators (main workers). In other words, farm suicides are rising through the period of India's agrarian crisis, even as the number of farmers is shrinking.

  •  More than 2,56,918 farmers have taken their  lives since 1995.
  •  86.5 percent of farmers who took their own lives were financially indebted .
  •  Their average debt was about Rs.40,000.
  •  On average, there has been one farmer’s suicide every 30 minutes since 2002.


Why is it happening?
  • 15 years of economic reforms have given farmers access to expensive and promising biotechnology
  •  These reforms have not led to crop insurance, land irrigation, or enough bank loans? Reforms opened Indian farmers to global competition, such as with the United States and UK who receive over $18 billion a year in subsidies.
  •  For farmers in India such foreign subsidies have driven down the price of crops in the global market, such as cotton
  • Crops Producers are not given power to fix the price of the crops they cultivate. 

Farmers receive minimal financial support
  •  In order to compete, many farmers turned to high-cost seeds, fertilizers and pesticides, believing in easier returns.
  •  Modified seeds cost nearly twice as much as ordinary ones, necessitating larger loans.
  •  There has been minimal financial support from the government for small farmers. 
  •  Many small farmers don’t qualify for bank credit, forcing farmers to turn to moneylenders, who charge up to 20% interest on a four-month loan.  
  •  As collateral, farmers often sign away the title to their land.




Saturday 26 November 2011

Last day @ TCS-ILP


This post is addressed particularly to my ILP associates. To others, this is what happened in our final day of my first corporate, details might be insignificant for you.


CHN-09 M70
         A red letter day it was, 25th Nov, 2011. I can't stop myself thanking my friends before even beginning my post. Day was a mixture of boring, surprising, serious, fun filled and finally emotional departure. Many guys  felt the joy of leaving the ILP before a week itself, and when the most anticipated final day arrived none of them wanted to leave the ambience made by associates. Truly , I personally feel it was like a ninth semester of my college. Many of the CHN-09 came with ethnic wear, which made us different from others. 


       That was the only day we enjoyed much with the permission of the faculty . We kidded one another in Zone till 11 a.m as like everyday, without knowing we ll never sit like this in this zone. Then the Last session has begun, Owing to lack of capacity in room most were made to stand. But I didn't feel the pain as the momentum was like that. 


      It was fun beyond the words, Most of the activities are simply superb esp M73, Saurav's spot comedy, M70 skit and 3-idiots song sung by one. 


Emotional Departure :


     90 days went faster than what we thought, and I wish those last week should be for ever. Then finally everybody went to receive their relieving order and surprisingly I got the feedback paper wrote by my associates , Wow really it could't have been better feedback, I never knew this I'd get . Most unexpectedly there we wrote the feelings  at the back of the everyone's group photos. 


To my dear Associates Personally :


    People will come and go like as winter wheat, but their names remains in the annals. You are not just a passing clouds in my life,  You are all part of my life, you guys have written the story of my life in these 3 months. When I think about my first salary, first corporate life, first company everybody will come into my mind. By your feedbacks I am really surprised and thanks for the everything . I have learnt many things apart from studies .I'm sure many people ll have the dents made by me , I'm sorry for that I never wanted to hurt anyone. CHN-09 M70 words to be carved in everyone's mind . 


we knew we would keep in touch, but we also knew we would never be together. I thought It would a pre-training but never thought it would be a post college. 


                                                 `Miss you guys`

Saturday 19 November 2011

How to Search Effectively in Google


Nowadays the term "Google it" becoming more and more popular around people. There are so many search engines are there over internet, but Google stands tall. Google is named for its simple white plain user interface and performance.  Google could add up its revenue in billions by simply giving provision to add advertisements  on home page, but even changing the size of the font will lose it fans. Google is always concerned about Its simple look to grab people and avoid distractions. Google is a remarkably powerful tool that can ease and enhance your Internet exploration.  I have seen many people searching the content needed by different tedious formats and wasting their time in searching the exact content they need. There are certain ways to get the required result effectively. Google's search options go beyond simple keywords, the Web, and even its own programmers. Let's look at some of Google's lesser-known options which I have collected for you.

Basic search help


       Search is simple: just type whatever comes to mind in the search box, hit Enter or click the Search button, and Google will search the web for content that's relevant to your search. If you have Google Instant enabled, results may appear dynamically as you type. Most of the time, you'll find exactly what you're looking for with just a basic query (the word or phrase you search for). However, the following tips can help you make the most of your searches. Throughout the article, I'll use square brackets [ ] to signal a search query, so [ jack and jill] is one query, while [ jack ] and [jill ] are two separate queries.

Some basic facts

       Every word matters. Generally, all the words you put in the query will be used. Search is always case insensitive. A search for [ new york times ] is the same as a search or[ New York Times ]. Generally, punctuation is ignored, including @#$%^&*()=+[]\ and other special characters. If you like this blog, you probably use Google many times a day.  But, chances are, unless you are a technology geek, you probably still use Google in its simplest form. If your current use of Google is limited to typing a few words in, and changing your query until you find what you’re looking for, then I’m here to tell you that there’s a better way – and it’s not hard to learn.  On contrary, if you are a technology geek, and can use Google like the best of them already, then I suggest you bookmark this article of Google search tips. You’ll then have the tips on hand when you are ready to pull your hair out in frustration when watching a neophyte repeatedly type in basic queries in a desperate attempt to find something. The following Google search tips are based on my own experience and things that I actually find useful.

Tips for better effective searches

  • Phrase Search

    By putting double quotes around a set of words, you are telling Google to consider the exact words in that exact order without any change. Google already uses the order and the fact that the words are together as a very strong signal and will stray from it only for a good reason, so quotes are usually unnecessary. By insisting on phrase search  you might be missing good results accidentally. For example, a search for [ "Alexander Bell" ] (with quotes) will miss the pages that refer to Alexander G. Bell.

  • Search Single Word exactly as is ("")

       Google employs synonyms automatically, so that it finds pages that mention, for example, childcare for the query [ child care ] (with a space), or California history for the query[ ca history ]. But sometimes Google helps out a little too much and gives you a synonym when you don't really want it. By putting double quotes around a single word, you are telling Google to match that word precisely as you typed it.

  • Search within a specific website (site:)

       Google allows you to specify that your search results must come from a given website. For example, the query [ india site:thehindu.com ] will return pages about India but only from thehindu.com. The simpler queries [ india thehindu.com ] or [ india thehindu ] will usually be just as good, though they might return results from other sites that mention the New York Times. You can also specify a whole class of sites, for example [ india site:.gov ] will return results only from a .gov domain and [ india site:.in ] will return results only from India sites.

  • Terms you want to exclude (-)

        Attaching a minus sign immediately before a word indicates that you do not want pages that contain this word to appear in your results. The minus sign should appear immediately before the word and should be preceded with a space. For example, in the query[ anti-virus software ], the minus sign is used as a hyphen and will not be interpreted as an exclusion symbol; whereas the query [ anti-virus -software ] will search for the words 'anti-virus' but exclude references to software. You can exclude as many words as you want by using the - sign in front of all of them, for example [ jaguar -cars -football -os ]. The -sign can be used to exclude more than just words. For example, place a hyphen before the 'site:' operator (without a space) to exclude a specific site from your search results.

  • Fill in the blanks (*)

       The *, or wildcard, is a little-known feature that can be very powerful. If you include * within a query, it tells Google to try to treat the star as a placeholder for any unknown term(s) and then find the best matches. For example, the search [ Google * ] will give you results about many of Google's products (go to next page and next page -- we have many products). The query[ Obama voted * on the * bill ] will give you stories about different votes on different bills. Note that the * operator works only on whole words, not parts of words.

  • OR Operator

        Google's default behavior is to consider all the words in a search. If you want to specifically allow either one of several words, you can use the OR operator (note that you have to type 'OR' in ALL CAPS). For example, [ San Francisco Giants 2004 OR 2005 ] will give you results about either one of these years, whereas [ San Francisco Giants 2004 2005 ] (without the OR) will show pages that include both years on the same page. The symbol | can be substituted for OR. (The AND operator, by the way, is the default, so it is not needed.)
        
  • Keep it simple

        If you're looking for a particular company, just enter its name, or as much of its name as you can recall. If you're looking for a particular concept, place, or product, start with its name. If you're looking for a pizza restaurant, just enter pizza and the name of your town or your zip code. Most queries do not require advanced operators or unusual syntax. Simple is good.

  • Think how the page you are looking for will be written. 

           A search engine is not a human, it is a program that matches the words you give to pages on the web. Use the words that are most likely to appear on the page. For example, instead of saying [ my head hurts ], say[ headache ], because that's the term a medical page will use. The query[ in what country are bats considered an omen of good luck? ] is very clear to a person, but the document that gives the answer may not have those words. Instead, use the query [ bats are considered good luck in ] or even just [ bats good luck ], because that is probably what the right page will say.

  • Describe what you need with as few terms as possible.

           The goal of each word in a query is to focus it further. Since all words are used, each additional word limits the results. If you limit too much, you will miss a lot of useful information. The main advantage to starting with fewer keywords is that, if you don't get what you need, the results will likely give you a good indication of what additional words are needed to refine your results on the next search. For example,[ weather cancun ] is a simple  way to find the weather and it is likely to give better results than the longer [ weather report for cancun mexico ].

  • Choose descriptive words 

          The more unique the word is the more likely you are to get relevant results. Words that are not  very descriptive, like 'document,' 'website,' 'company,' or 'info,' are usually not needed. Keep in mind, however, that even if the word has the correct meaning but it is not the one most people use, it may not match the pages you need. For example,[ celebrity ringtones ] is more descriptive and specific than [ celebrity sounds ].

  • Explicit Phrase

          Lets say you are looking for content about internet marketing.  Instead of just typing internet marketing into the Google search box, you will likely be better off searching explicitly for the phrase.  To do this, simply enclose the each phrase within double quotes.Example: "internet marketing"

  • Exclude Words

           Lets say you want to search for content about internet marketing, but you want to exclude any results that contain the term advertising.  To do this, simply use the "-" sign in front of the word you want to exclude.Example Search: internet marketing -advertising

  • Site Specific Search

            Often, you want to search a specific website for content that matches a certain phrase. Even if the site doesn’t support a built-in search feature, you can use Google to search the site for your term. Simply use the "site:somesite.com" modifier. Example: "internet marketing" site:www.smallbusinesshub.com

  • Similar Words and Synonyms

           Let’s say you want to include a word in your search, but want to include results that contain similar words or synonyms. To do this, use the "~" in front of the word. Example: "internet marketing" ~professional

  • Specific Document Types

                 If you’re looking to find results that are of a specific type, you can use the modifier "filetype:".  For example, you might want to find only PowerPoint presentations related to internet marketing.Example: "internet marketing" filetype:ppt

  • Phone Listing

                 Let’s say someone calls you on your mobile number and you don’t know who it is.  If all you have is a phone number, you can look it up on Google using the phonebook feature. Example: phonebook:617-555-1212 (note: the provided number does not work – you’ll have to use a real number to get any results).

  • Area Code Lookup

              If all you need to do is to look-up the area code for a phone number, just enter the 3-digit area code and Google will tell you where it’s from. Example: 617
  • Numeric Ranges

                This is a rarely used, but highly useful tip.  Let’s say you want to find results that contain any of a range of numbers.  You can do this by using the X..Y modifier (in case this is hard to read, what’s between the X and Y are two periods.)  This type of search is useful for years (as shown below), prices, or anywhere where you want to provide a series of numbers.Example: president 1940..1950
  • Stock (Ticker Symbol)

              Just enter a valid ticker symbol as your search term and Google will give you the current financials and a quick thumb-nail chart for the stock. Example: GOOG
  • Calculator

               The next time you need to do a quick calculation, instead of bringing up the Calculator applet, you can just type your expression in to Google.Example: 48512 * 1.02
  • Word Definitions

If you need to quickly look up the definition of a word or phrase, simply use the "define:" command. Example: define:plethora
  • Exceptions

            Search is rarely absolute. Search engines use a variety of techniques to imitate how people think and to approximate their behavior. As a result, most rules have exceptions. For example, the query [ for better or for worse ] will not be interpreted by Google as an OR query, but as a phrase that matches a (very popular) comic strip. Google will show calculator results for the query [ 34 * 87 ] rather than use the 'Fill in the blanks' operator. Both cases follow the obvious intent of the query.
               
  • Exceptions  to 'Every word matters'

     *Words that are commonly used, like 'the,' 'a,' and 'for,' are usually ignored (these are called stop words). But there are even exceptions to this exception. The search [ the who ] likely refers to the band; the query [ who ] probably refers to the World Health Organization -- Google will not ignore the word 'the' in the first query.
    *Synonyms might replace some words in your original query.A particular word might not appear on a page in your results if there is sufficient other evidence that the page is relevant. The evidence might come from language analysis that Google has done or many other sources. For example, the query [ overhead view of the bellagio pool ]will give you nice overhead pictures from pages that do not include the word 'overhead.'

  • Punctuation that is not ignored

     Punctuation in popular terms that have particular meanings, like [ C++ ] or [ C# ] (both are names of programming languages), are not ignored.
    The dollar sign ($) is used to indicate prices. [ nikon 400 ] and [ nikon $400 ] will give different results.
    The hyphen - is sometimes used as a signal that the two words around it are very strongly connected.         (unless there is no space after the - and a space before it, in which case it is a negative sign.)
    The underscore symbol _ is not ignored when it connects two words, e.g. [ quick_sort ].

Monday 19 September 2011

Microsoft's entry in Social Networking


Google+, Facebook, Twitter and now Tulalip. Tulalip is Microsoft’s “in the roots” social networking site. Tulalip is Microsoft’s alternative to Google+ and Facebook. Tulalip was first seen about a week ago ago and was first reported on Fusible. 
The social networking world may get a new competition very soon. According to the sources, Microsoft inadvertently has leaked a figure of its own social networking platform.

Tentatively titled "Tulalip", the website will allow users to find what they need and share what they know.

From the glimpse of the site, it appears that users would be able to login to the site using their Facebook or Twitter accounts.

The company, however, has not confirmed whether it is going to launch a social network or a social search site related to its Bing search engine.

The image was leaked at the Microsoft-owned domain socl.com. Now, the page has been removed from the site. 
Tulalip is in the phase of the early development you can expect hundreds of changes in the next few months. Microsoft claims that the first view of this social network was mistakenly published on the web and they actually didn’t mean to do that. Tulalip will be accessible later on the domain name socl.com which was recently bought by Microsoft. It is rumored that Microsoft bought socl.com on the same day when Google+ was first announced. That definitely means that Microsoft wants to join the social network forces and if they integrate their Microsoft softwares like Word, Excel, PowerPoint, Skype, etc. All these services, if integrated would make Tulalip superior to other social networking sites.
I am expecting a lot from Microsoft as it is a huge company and may give a great competition to the existing social networking sites. I think that Tulalip might go under a lot of changes in the coming months and it is eagerly awaited by millions and billions of people. Microsoft has a great reach so Tulalip will receive a lot of hype when it launches. The leaked screenshot mainly showcases that the interface of Tulalip would be like the interface of Windows Phone 7 or Windows 8. Well, you never know what Microsoft is going to bring out. I am a lot too excited about it and I would be waiting for it.
The internet experts think that the design is close to the Windows Phone 7 one and probably the network will be integrated into the mobile operational system. From the information that slipped out, it seems that Tulalip is not an internal project, but a real social network.
The domain is a clearly a social network one (socl.com), the analysts think. It appears that the Tulalip’s slogan is “find what you need and share what you know easier than ever”.
This might seems an announcement for the social network’s fans, but it might be a real threat to the social network players.


Twitter, Facebook, Google+ - Who will win the battle?


ONE IMPRESSED BY OTHER

After Google upped the ante with Google+, their own social networking platform; and Facebook integrated Skype, Twitter is also up for changes.  According to the report i gone through , the micro-blogging site is revamping its existing version making itself pretty similar to Facebook platform.


The war between social networking sites is getting intense day by day. In a bid to outdo each other they are introducing new developments every now and then.

Twitter, has given few of its regular users a feature by replacing the traditional ‘@mention’ tab. If the endeavor gets successful then the new tab will be available on every Twitter account.

Twitter is now aping the ‘Facebook way’ of providing a summary chart. The latest tabs which are going to replace the ‘@message’ tab will notify who is following you and who has re-tweeted your messages.

Facebook too is getting impressed by some of Twitter's features. It has added ‘Updates’ and ‘Feeds’ to its platform.

Seeing these recent developments in the networking sites it is clear that they are trying to branch out their services by keeping an eye on each other’s positive points.

While Twitter does not have a Photo sharing feature like Facebook, Google+ lags in the race of games. Google+ hopes to fill the void by an array of games it introduced recently to challenge Facebook.

Some reports are suggesting that Twitter is inclining towards the search engine market to boost its market share.

As for as i know, If a web service wants to survive then it needs to incorporate best of all the worlds. Amidst this cut-throat competition it is difficult to say who will be the winner in the social networking race.

Wednesday 10 August 2011

Are u really bored? Then chat with God here..Really cool

If you really feel tired and want to share your thoughts to someone or u want to spare time with someone then i hope u'll like n use this app. This application is programmed to give accurate, intelligent and fast replies to your chats.This app is called iGod.


So, U can chat here
1.Chat with God.
2.If the link doesn't lead u directly, then click open at the open of the above link.
3.Click Enter.
4.Select the Theme.

5. That's all Enjoy ! :)



Monday 8 August 2011

java Assignments1.

hello folks, Here s d ansz for all the ten problems in java assignments1. As for as i concerned it z correct upto my knowledge. Reg compiling n running also it works good. I say u  not to upload the same things directly. If u aware of java just edit as  u wish and if u don't know anything abt java, jz  change the class names(which s at 2nd o 3rd line of each prog : class jx(change this jx to other word) , words within inverted commas in output lines and variables.


Solutions:




Program1: Write a program to find the difference between sum of the squares and the square of the sums of n numbers?

import java.io.*;
import java.util.Scanner;
class j1
{
public static void main(String args[]) throws IOException
{
Scanner s=new Scanner(System.in);
System.out.println("How many numbers:");
int n=s.nextInt();
int a[]=new int[n];
int i, sqr, diff, count=0, plus=0;
System.out.print("Type the  "+n + " Numbers \n");
for(i=0;i<n;i++)
{
a[i]=s.nextInt();
count+=(a[i]*a[i]);
plus+=a[i];
}
sqr=plus*plus;
diff=sqr-count;
System.out.print("\nSum of Squares of given "+n +"number is :"+count);
System.out.print("\nSquares of Sum of given "+n + "number is :"+sqr);
System.out.println("\nDifference between sum of the squares and \nthe square of the sum of given "+n + " number is :"+diff);
}}

Program 2: Develop a program that accepts the area of a square and will calculate its perimeter.

import java.util.*;
import java.text.*;
class  j2
{
public static void main(String[] args){
         DecimalFormat df = new DecimalFormat("##.00");
         Scanner input=new Scanner(System.in);
         System.out.println("Enter Area of Square:");
         double area=input.nextDouble();
         System.out.println("Perimeter of Square is :"+df.format(4*Math.sqrt(area)));
         }}

Program 3: Develop the program calculateCylinderVolume., which accepts radius of a cylinder's base disk and its height and computes the volume of the cylinder.

import java.util.*;
class j3
{
   public static void main(String[] args)    {  
        Scanner input=new Scanner(System.in);
        System.out.print("Enter Radius: ");
        double r=input.nextDouble();
        System.out.print("Enter Height: ");
        double h=input.nextDouble();
        System.out.println("Volume of Cylinder: "+(Math.PI*r*r*h));
    }}

Program 4:  Utopias tax accountants always use programs that compute income taxes even though the tax rate is a solid, never-changing 15%. Define the program calculateTax which determines the tax on the gross pay. Define calculateNetPay that determines the net pay of an employee from the number of hours worked. Assume an hourly rate of $12.

import java.util.*;
import java.text.*;
public class j4
{
    public static void main(String[]args){
    DecimalFormat df=new DecimalFormat("$##.00");
    Scanner input=new Scanner(System.in);
    System.out.print("Enter Number of Hours Worked: ");
    double hours=input.nextDouble();
    double pay=(hours*12)-(hours*12*0.15);
    System.out.println("Net Pay is: "+df.format(pay));
    }}

Program 5: An old-style movie theater has a simple profit program. Each customer pays $5 per ticket. Every performance costs the theater $20, plus $.50 per attendee. Develop the program calculateTotalProfit that consumes the number of attendees (of a show) and calculates how much income the show earns.

import java.io.*;
class j5
{
public static void main(String[] s) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the number of customers");
int ticket=Integer.parseInt(br.readLine());
System.out.println("Total Income: "+((5*ticket)-(20+(0.5*ticket))));
}}

Program 6: Develop the program calculateCylinderArea, which accepts radius of the cylinder's base disk and its height and computes surface area of the cylinder.
Hint :surface area of a cylinder is 2pi*r2 + 2pi*R2


import java.util.*;
import java.text.*;
class j6
{
    public static void main(String[] args)
    {
        DecimalFormat df = new DecimalFormat("##.00");
        Scanner input=new Scanner(System.in);
        System.out.print("Enter Radius: ");
        double r=input.nextDouble();
        System.out.print("Enter Height: ");
        double h=input.nextDouble();
        double surfarea=2*Math.PI*r*(r+h);
        System.out.println("Surface Area of Cylinder: "+df.format(surfarea));
       }
}

Program 7: Develop the program calculatePipeArea. It computes the surface area of a pipe, which is an open cylinder. The program accpets three values: the pipes inner radius, its length, and the thickness of its wall.

Hint: here surface means inner, outer , top n bottom 2pi*r*h + 2pi*R*h + 2(pi*R2-pi*r2)


import java.io.*;
class j7
{
public static void main(String[] args) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter inner radius");
double r=Integer.parseInt(br.readLine());
System.out.println("Enter thickness");
double t=Integer.parseInt(br.readLine());
System.out.println("Enter height");
double h=Integer.parseInt(br.readLine());
double R=r+t;
double surfacearea=((2*Math.PI*r*h)+(2*Math.PI*R*h)+((2*Math.PI)*((R*R)-(r*r))));
System.out.println("Total Suraface Area: "+(surfacearea));
}}


Program 8: Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g · t in t time units and a height of 1/2 * v * t where v is the speed at t.
Hint : Simple Physics laws of motion aptitude question


import java.util.*;
import java.text.*;
class j8
{
public static void main(String[] args)
{
DecimalFormat df = new DecimalFormat("##.00");
Scanner input=new Scanner(System.in);
 System.out.println("Enter the constant rate of Rocket:");
double g=input.nextDouble();
 System.out.println("Enter the time:");
double t=input.nextDouble();
double speed=g*t;
double height=0.5*speed*t;
System.out.println("Height that the rocket reaches in given time "+t + " is: "+df.format(height));
}}

Program 9: Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed. Speed is distance/time, and the Pythagorean Theorem is c2 = a2 + b2.
Hint :Simple question in confounding way-pythagorous theorem 

import java.io.*;
class j9
{
public static void main(String[] args) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the speed of the Boat:");
double bs=Double.parseDouble(br.readLine());
System.out.println("Enter the speed of the River:");
double rs=Double.parseDouble(br.readLine());
 System.out.println("Enter the width of the River :");
double width=Double.parseDouble(br.readLine());
double factor=rs/bs;
factor=(1/(1+factor*factor));
factor=Math.sqrt(factor);
System.out.println("Distance: "+(width/factor));
}}

Program 10: Develop a program that accepts an initial amount of money (called the principal), a simple annual interest rate, and a number of months will compute the balance at the end of that time. Assume that no additional deposits or withdrawals are made and that a month is 1/12 of a year. Total interest is the product of the principal, the annual interest rate expressed as a decimal, and the number of years.
Hint : Simple interest=(P*N*R)/100

import java.io.*;
class j10
{
public static void main(String[] xxx) throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the Principal amount:");
double pr=Integer.parseInt(input.readLine());
System.out.println("Enter the interest Rate (in %):");
double rate=Double.parseDouble(input.readLine());
System.out.println("Enter the total number of months:");
Double months=Double.parseDouble(input.readLine());
months=months/12;
double interest=0.01*(pr*rate*months);
System.out.println("Interest after "+months + " years are: "+interest);
System.out.println("Total Balance including principal at the end is :"+(pr+interest));
}
}