Posts

AI and Human Evolution

  How AI Might Shape Our Future: A Personal Reflection In this era, AI is rapidly taking over many aspects of life, and while it brings innovation, it also poses challenges that could cause humans to suffer or fall behind. But I believe there's a potential solution: integrating AI into our biology . This is, in some ways, the goal of Neuralink, Elon Musk’s company. If we can't compete with AI as we are, then perhaps the answer is to evolve —to become something equivalent or even superior by merging with it. The Rise of Cyborgs and Enhanced Humans Another concept that fascinates me is the idea of cyborgs . Beyond just enhancing physical strength, this could solve many biological problems—curing diseases, extending lifespan, and even overcoming our natural limitations. What Might the Future Look Like if These Ideas Become Reality? Imagine a world where every individual has a personal AI plug-in , each tailored with a unique skill set. We'd no longer need to spend time...

To Do List App (GUI) using C#

Image
To Do List App: App link here to download and use:-  Download Link  App UI: This is made with C#.Net in visual studio, It is a windows forms application. Source Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace ToDoList2 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void btnAdd_Click(object sender, EventArgs e)         {             if (!string.IsNullOrWhiteSpace(txtTask.Text))             {                 clbTasks.Items.Add(txtTask.Text); ...

Diamond pattern program in c#

Image
Diamond pattern program in c#  Source code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 {     class Program     {         static void Main(string[] args)         {             int n = 9;             for (int i = 0; i < n; i++) {                 for (int j = i; j < n; j++) {                     Console.Write("* ");                 }                 for (int j = 0; j < i; j++) {                     Console.Write("  ");                 }                 for (...

Snake Game using JAVA

Snake Game using JAVA  Here is the link to play the game in your pc. https://www.mediafire.com/file/5avqwkgnjxl58zt/snake.jar/file Source Code:  import java.awt.* ; import java.awt.event.* ; import java.util.ArrayList ; import java.util.Random ; import javax.swing.* ; public class SnakeGame extends JPanel implements ActionListener , KeyListener {     private class Tile {         int x ;         int y ;         Tile ( int x , int y ){             this . x = x;             this . y = y;         }     }     int boardHeight ;     int boardWidth ;     int tileSize = 25 ;     //snake     Tile snakeHead ;     ArrayList < Tile > snakeBody ;     //     Tile food ;     Random random ;     //game l...

Birth Year Finder using C#

Image
  Birth Year Finder using C#  // code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BirthYearFinder {     class Program     {         static void Main(string[] args)         {             String name;             int age;             Console.WriteLine("Enter your name: ");             name = Console.ReadLine();             Console.WriteLine("Enter your age: ");             age = Convert.ToInt32(Console.ReadLine());             int currentYear = DateTime.Now.Year;             int birthYear = currentYear - age;             Console.WriteLine("Dear, "+name+" you were born in the...

Ceaser Cipher Encryption Technique in C

Image
// Ceaser Cipher Encryption technique #include<stdio.h> #include<string.h> #include<ctype.h> void to_lower(char word[]); void ceaser_cipher_encrypt(char word[], int shift); int main(){     int shift;     char word[100];          printf("enter a word: ");     fgets(word, sizeof(word), stdin);     word[strcspn(word,"\n")] = '\0';     to_lower(word);     //printf("%s",word);          printf("enter shift no: ");     scanf("%d",&shift);          printf("\nCeaser Cipher Encrypted: \n>");     ceaser_cipher_encrypt(word, shift); } void to_lower(char word[]){     int len = strlen(word);     for(int i = 0; i<len; i++){         word[i] = tolower(word[i]);     } } void ceaser_cipher_encrypt(char word[], int shift){     int len = strlen(word);    for(...

Word Guess Game in C++

#include<iostream> #include<time.h> using namespace std; int main(){     srand(time(0));     int r = rand()%10;     char userWord[100];          char words[10][10] = {     "apple",     "banana",     "grape",     "orange",     "green",     "Alphabet",     "box",     "magnet",     "hand",     "keyboard" };     // random words length     int len = strlen(words[r]);          for(int i = 0; i<strlen(words[r]); i++){         if(i == 0){             cout<<words[r][i];         }         else{             cout<<"*";         }              }             cout<<"\...

FizzBuzz Game C#

using System; class FizzBuzz {     static void Main(String[] args)     {         while (true)         {             Console.WriteLine("Enter a number: ");             int n = Convert.ToInt32(Console.ReadLine());             if (n % 3 == 0 && n % 5 == 0)             {                 Console.WriteLine("FizzBuzz");             }             else if (n % 3 == 0)             {                 Console.WriteLine("Fizz");             }             else if (n % 5 == 0)             {                 Console.WriteLine...

Chakravyuha Matrix Generator in C

Image
#include<stdio.h> void chakravyuha(int n); int main(){     int n;           printf("enter matrix size (Only odd number): ");     scanf("%d",&n);          if(n % 2 == 0){         printf("you entered even number");         return 1;     }     else{         chakravyuha(n);     } } void chakravyuha(int n){     int matrix[100][100];     for(int i = 0; i<n; i++){         for(int j = 0; j<n; j++){             matrix[i][j] = 0;         }     }     int mid = n / 2;     int row = mid, col = mid;     int num = 1;     int steps = 1;     int m_size = n*n;     matrix[row][col] = num++;          while(num <= m_size){       ...

Doubly LinkedList

Elements are printed both normally and reversely #include<stdio.h> #include<stdlib.h> typedef struct node{     int data;     struct node *next;     struct node *prev;      }node; int main(){     node *head = NULL;     int num,s;     printf("enter size of linked list:");     scanf("%d",&s);              for(int i = 0; i<s; i++){          node *n = (node*)malloc(sizeof(node));          if(n == NULL){         printf("Memory Allocation Failed\n");         return 1;     }          printf("enter value %d : ",i);     scanf("%d", &num);          n->data = num;     n->next = NULL;     n->prev = NULL;          if(head == NULL){     ...

Linkedlist Creation and Traversal

Image
Insertion of elements at end  #include<stdio.h> #include<stdlib.h> typedef struct node{     int data;     struct node *next; }node; int main(){     node *head = NULL;     int num,s;     printf("enter size of linked list:");     scanf("%d",&s);              for(int i = 0; i<s; i++){          node *n = (node*)malloc(sizeof(node));          if(n == NULL){         printf("Memory Allocation Failed\n");         return 1;     }          printf("enter value %d : ",i);     scanf("%d", &num);          n->data = num;     n->next = NULL;          if(head == NULL){         head = n;     }          else{       ...

Insertion Sort in c++

Image
#include<iostream> using namespace std; void printArray (int *arr, int n); class InsertionSort {     public:     void iSort(int *arr, int n) {         int j,x;                  for(int i = 1; i<n; i++) {             j = i-1;             x = arr[i];                          while(j > -1 && arr[j] > x) {                 arr[j+1] = arr[j];                 j--;             }             arr[j+1] = x;         }     } }; int main() {     int arr[100];     int n;          cout<<"\t--- Insertion Sort ---\n";          cout...

BubbleSort C++

Image
#include<iostream> using namespace std; void printArray(int *arr, int n); class BubbleSort{     public:     void bSort(int *arr, int n){         for(int i = 0; i<n-1; i++){             for(int j = 0; j<n-1; j++){                 if(arr[j] > arr[j+1]){                     swap(&arr[j],&arr[j+1]);                 }             }         }     }          void swap(int *a, int *b){         int temp = *a;         *a = *b;         *b = temp;     } }; int main(){     int arr[100];     int n = 5;     cout<<"\t**** Bubble Sort ****\n";          cout<<"\nenter...