Skip to main content

Java program to replace vowels with next Character (ICSE 2011)

Write a program to accept a word and convert it into lowercase if it is in uppercase and display the new word by replacing only vowels with the character following it.

e.g. Sample input: computer
       Output: cpmpvtfr

Shifting Agriculture

  What is Shifting agriculture? Shifting Agriculture also known as 'Slash-and-Burn' method is a very common practice of cultivation prevalence in countries such as India. In this method, farmers make a small clearing in the forest where the cultivation of crops is done solely dependent on monsoon rain for irrigation and natural fertility of soil. No artificial input of either irrigation or fertilizer is given by the farmer. This method is very harmful to the environment. Shifting agriculture  Key features of Shifting agriculture:  Following are the key features of shifting agriculture: It is practiced on small patches of land with the help of primitive tools. It is also called jhumming , agriculture where the farmers make a small clearing in the forest, cultivate it for some years and then abandon it when the fertility of the soil diminishes. They then shift to another fresh clearing in the forest. This is also called slash-and-burn agriculture. The patch of land is usually c

Simple Java Programs (Part 1)

 Q. Define a class to declare a character array of size ten, accept the character into the array and perform the following:  • Count the number of uppercase letters in the array and print.  • Count the number of vowels in the array and print. Q. Define a class to declare an array of size 20 of double datatype, accept the elements into the array and perform the following:  • Calculate and print the sum of all the elements.  • Calculate and print the highest value of the array. Q. Define a class to accept two strings, convert them into uppercase, check and display whether two strings are equal or not, if the two strings are not equal, print the string with the highest length or print the message both the strings are of equal length. Q. Define a class to accept a string, convert it into lowercase and check whether the string is a palindrome or not.  A palindrome is a word which reads the same backward as forward.  Example:  madam, racecar etc. Top