Posts

Showing posts from 2023

Living the Green Dream

Image
Introduction : Meet George Kuzhivelil, a true inspiration for anyone seeking a sustainable lifestyle. For over a decade, he's been transforming his Kerala home into a green haven, proving that eco-friendly living is not just possible, but incredibly rewarding. Solar Power Champion : In 2012, Dad's journey began with two solar panels. Fast forward to today, his rooftop boasts a 12-panel farm, silently capturing the sun's energy and lighting the way towards clean power. Beyond Panels : Sustainability doesn't stop with electricity. Dad further reduced his environmental footprint by installing a solar water heater in 2016, ensuring a warm welcome while minimizing carbon emissions. Rainwater Harvest : Monsoon showers aren't wasted in Dad's home. Four strategically placed rainwater harvesting tanks collect the bounty, providing abundant water for plants, gardens, and even car washes throughout the year. Waste to Energy : Embracing sustainable waste management, Da...

CASE Connected vehicles

The car of the future is connected, autonomous, shared, electric – and it’s already here. For example, by 2030, more than 95 percent of   passenger miles will be served by autonomous cars . With sensors now built into every imaginable aspect of a vehicle, from fully voice-operated features and driver attention monitoring to biometric security for reducing theft, the possibilities for the customer experience are endless. Car manufacturers have started thinking beyond traditional car features like design and engine type to consider cutting-edge digital capabilities like personalized subscription services where user can opt in or out of a range of on-demand features from a centralized marketplace. Because of this, customers have changed the way they purchase cars – it’s not just about aesthetics or performance anymore. There is a shift in customer preferences to include features like personalized digital entertainment and data-powered productivity. Connected cars of the future will al...

Java String Program - Part 1

Image
 Program 1 Write a program in Java to accept a string in lower case and change the first letter of every word to upper case. Display the new string. Sample input: we are in cyber world Sample output: We Are In Cyber World import java.util.Scanner; class P1{          public static void change(){         Scanner sc = new Scanner(System.in);         System.out.println("Enter a sentence");                  String s = sc.nextLine();         String newstr = "";                  s = s.toLowerCase();         s = s.trim();         s = " " + s;                  for(int i=0; i<s.length(); i++){             char ch = s.charAt(i);             if(ch == ' '){      ...

Java - Bubble Sort Numbers and Strings

Image
Bubble sort code for sorting numbers in ascending order import java.util.Scanner; public class Bubble_Asc{     public static void sort_number_asc(){         // input array elements         Scanner sc = new Scanner(System.in);         int a[] = new int[5];         System.out.println("Enter five array elements");         for(int i=0; i<a.length; i++){             a[i] = sc.nextInt();         }                  // sort array elements          for(int i=0; i<a.length; i++){             for(int j=0; j<a.length-1-i; j++){                 if( a[j]>a[j+1] ){                     //swap elements             ...

Java - Class based program

Image
 Program 1 - Eshop import java.util.*; class Eshop {     String name;     double price;          void accept(){         Scanner sc = new Scanner(System.in);         System.out.println("Enter name and price");         name = sc.next();         price = sc.nextDouble();     }          void calculate(){         if (price >= 1000 && price <=25000)             price = price - 0.05 * price;         else if (price >= 25001 && price <= 57000)             price = price - (7.5/100.0) * price;         else if (price >=57001 && price <= 100000)             price = price - (10/100.0) * price;         else      ...