C ++ Program Alphabet Triangle Pattern

C Plus Plus Program Alphabet Triangle Pattern Task: Write down a C++ Program to display Alphabet Triangle Pattern. The user will enter the height of triangle. Then the program will show a right angle triangle of alphabets in Capital letters. How Alphbets Triangle Program Works This program uses nested for loops to display the required… Read More: C ++ Program Alphabet Triangle Pattern »

Loading

C++ Circle Area or Circumference Program

Task: Write a C++ Program To Calculate Circle Area or Circumference according to the User choice. The Source Code of C++ Circle Program // Write a program that uses two user defined functions // for calculating area and circumference of a circle. //The program will input radius and asks the user // to enter a… Read More: C++ Circle Area or Circumference Program »

Loading

Java Vowel Count in String Program

Task: Write a Java program to count vowels in a given string input by the user at runtime. The Source Code of Java Vowel Count Program /* * Write down a Java program to input a string. * And count number of Vowels in it. */ package countvowelsinstring; import java.util.Scanner; /** * * @author www.EasyCodeBook.com… Read More: Java Vowel Count in String Program »

Loading

Java Palindrome String Check

Task: Write down a Java String Program to check for Palindrome. The Source Code of Java Program Check for Palindrome import java.util.Scanner; /** * * @author www.EasyCodeBook.com */ public class StringPalindrome { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print(“Enter a String to check for Palindrome: “); String s1=input.nextLine(); String s2=””;… Read More: Java Palindrome String Check »

Loading

Java String Class Reverse Program

Task: Write a Java String Class Reverse Program. You have to use only String class objects and String class built-in methods to reverse a user supplied string. Logic behind Java String Reverse Program You will use the following standard methods provided in String class: length() method to know the length of the original string. charAt(index)… Read More: Java String Class Reverse Program »

Loading

Java Day Number to Name switch Program

Task: Java Day Number to Name switch Program Java Program – The Use of Switch Statement through practical Java programming- Input a day number from the user Display Day Name. Source Code – Java Day Number to Name switch Program /* * Java Program – The Use of Switch Statement * Input a day number… Read More: Java Day Number to Name switch Program »

Loading