Wednesday, 9 July 2025

“In the age of AI, those who code will lead. Others will follow the algorithm.”

AI is smart, but smarter is the coder behind it!


In today’s digital revolution, Artificial Intelligence (AI) is reshaping industries, economies, and daily life. From ChatGPT to self-driving cars and smart assistants, AI is no longer a future concept — it's today's reality. But here's the catch: AI doesn't eliminate the need for coding — it amplifies it. And this is why the youth of this generation must learn to code and understand the fundamentals of computing.




Why Learning to Code is Crucial in the AI Era

AI Needs Creators, Not Just Users

AI tools can generate text, art, even code — but behind every AI model lies thousands of lines of code. The architects of AI are skilled programmers who understand logic, algorithms, and problem-solving.


Understand How AI Thinks

AI works on principles of data, models, and logic. Learning programming (Python, C++, Java) helps young minds understand how these systems work — rather than blindly trusting results.


Coding is the Language of Innovation

Whether you want to build the next app, automate a business process, or create your own AI chatbot — coding is your superpower. It empowers you to create, not just consume.


High-Demand Skill, Globally Recognized

According to reports, AI and programming-related jobs are among the fastest-growing, highest-paying careers today. Skills in Python, ML, Data Structures, and System Design open doors globally.


Coding Builds Logical Thinking

Even if you're not aiming to become a software developer, learning how to code enhances problem-solving skills, logical reasoning, and structured thinking — crucial in any career path.


Why Fundamentals Matter More Than Just Tools

Many students jump straight to AI tools without understanding how they work. But relying on tools without a foundation is like flying a plane without knowing how it stays in the air.


Understanding algorithms, data structures, memory management, and logic gates builds a strong core.


Knowing how models are trained, how data biases affect outcomes, or how neural networks function gives you an edge over casual AI users.


You can move from AI-Tool User → to AI-Tool Creator.


Final Thoughts

Artificial Intelligence is powerful, but coding is the engine behind it. In this age of automation, the best job security and innovation potential lies in becoming AI-literate AND code-competent. Start with simple programming, dive into logic building, and gradually grow into AI development.


Remember — AI may write the future, but coders will define what it writes.



#AIRevolution #CodeTheFuture #YouthInTech #FutureCoders #AIWithCoding #CodingSkills #PythonForAI #MachineLearningBasics #TechForTeens #LearnToCode #TechTalk #DigitalSkills #NextGenDevelopers #SmartTechYouth #STEMEducation #InnovationStartsHere #CodingIsCool #AIDoesntReplaceYou #ProgrammersOfTomorrow #FromUserToCreator


Sunday, 6 July 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 3 Question (d)

Q: (d) According to the Gregorian calendar, it was Monday on the date 01/01/01. If any year is input through the keyboard write a program to find out what is the day on 1st January of this year.



 #include <stdio.h>

int isLeapYear(int year)

{

    if ((year%4==0&&year%100!=0)||(year%400==0))

        return 1;

    else

        return 0;

}

int main()

{

    int year,dayIndex=0;//0 for monday

    int daysInYear;

    char *days[]={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};

    printf("Enter the year: ");

    scanf("%d", &year);

    for (int y = 1; y < year; y++)

    {

        if (isLeapYear(y))

            dayIndex+=366;//if leap year add 1 extra day

        else

            dayIndex+=365;

    }

    dayIndex=dayIndex%7;//remainder for day number

    printf("1st January of year %d is a %s.\n", year, days[dayIndex]);

    return 0;

}

Friday, 4 July 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 3 Question (c)

 Q: (c) Any year is input through the keyboard. Write a program to determine whether the year is a leap year or not.

#include <stdio.h>

int main()

{

    unsigned int y;

    printf("Enter Year");

    scanf("%u",&y);

    (y%4==0&&y%100!=0)||(y%400==0)?printf("Leap Year"):printf("Not Leap Year");

    return 0;

}




Download Source Code

Wednesday, 2 July 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 3 Question (b)

 Q: (b) Any integer is input through the keyboard. Write a program to find out whether it is an odd number or even number.

#include <stdio.h>

int main() 

{

    int n;

    printf("Enter an Integer\n");

    scanf("%d",&n);

    if(n%2==0)

        printf("Even Number");

    else

        printf("Odd Number");

    return 0;

}






Download Source Code

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 3 Question (a)

 Q: (a) If cost price and selling price of an item are input through the keyboard, write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred.


#include <stdio.h>

int main() 

{

    double cp,sp,pol=0;

    printf("Enter the Cost Price\n");

    scanf("%lf", &cp);

    printf("Enter the Selling Price\n");

    scanf("%lf", &sp);

    pol=sp>cp?sp-cp:cp-sp;

    if(pol>0)

        printf("Profit is %lf",pol);

    else if(pol<0)

        printf("Loss is %lf",pol);

    else

        printf("No Profit No Loss");

    return 0;

}



Download Source Code

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 Q:(i) Consider a currency system in which there are notes of seven  denominations,

namely, Re. 1, Rs. 2, Rs. 5, Rs. 10, Rs. 50, Rs. 100. If  a sum of Rs. N is entered through the keyboard, write a program to 

compute the smallest number of notes that will combine to give Rs. N.


#include<stdio.h>

int main()

{

    int s=0,a[6]={1,2,5,10,50,100},n;

    int i;

    printf("Enter Total Amount :\n");

    scanf("%d",&n);

    for(i=5;i>=0;i--)

    {

        s=s+n/a[i];

        n=n%a[i];

    }

    printf("Total Notes : %d",s);

    return 0;

}


Download Source Code

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

Q: (h) Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.

#include<stdio.h>

int main()

{

    int C, D, t;

    printf("Enter value of C: ");

    scanf("%d", &C);

    printf("Enter value of D: ");

    scanf("%d", &D);

    printf("\nBefore swapping: C = %d, D = %d\n", C, D);

    t = C;

    C = D;

    D = t;

    printf("After swapping:  C = %d, D = %d\n", C, D);

    return 0;

}



Download Source Code

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 Q:(g) If value of an angle is input through the keyboard, write a program to print all its Trigonometric ratios.

/* C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2 

Q:(g) If value of an angle is input through the keyboard,

write a program to print all its Trigonometric ratios.

*/

#include<stdio.h>

#include<math.h>

#define PI 3.141592

int main()

{

    double angle_deg, angle_rad,sin_val, cos_val, tan_val, cosec_val, sec_val, cot_val;

    printf("Enter angle in degrees:\n");

    scanf("%lf", &angle_deg);

    angle_rad = angle_deg * (PI / 180.0);

    sin_val = sin(angle_rad);

    cos_val = cos(angle_rad);

    tan_val = tan(angle_rad);

    printf("Trigonometric Ratios for %lf degrees:\n", angle_deg);

    printf("sin(%lf) = %lf\n", angle_deg, sin_val);

    printf("cos(%lf) = %lf\n", angle_deg, cos_val);

    

    if (fabs(cos_val) < 1e-6)

        printf("tan(%lf) = Undefined\n", angle_deg);

    else

        printf("tan(%lf) = %lf\n", angle_deg, tan_val);

        

    if (fabs(sin_val) < 1e-6)

        printf("cosec(%lf) = Undefined\n", angle_deg);

    else

        printf("cosec(%lf) = %lf\n", angle_deg, 1.0 / sin_val);


    if (fabs(cos_val) < 1e-6)

        printf("sec(%lf) = Undefined\n", angle_deg);

    else

        printf("sec(%lf) = %lf\n", angle_deg, 1.0 / cos_val);


    if (fabs(tan_val) < 1e-6)

        printf("cot(%lf) = Undefined\n", angle_deg);

    else

        printf("cot(%lf) = %lf\n", angle_deg, 1.0 / tan_val);


    return 0;

}





Download Source Code

Sunday, 29 June 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2


Q:(f) Wind chill factor is the felt air temperature on exposed skin due to 
wind. The wind chill temperature is always lower than the air 
temperature, and is calculated as per the following formula: 
wcf = 35.74 + 0.6215t + ( 0.4275t - 35.75 ) * v0.16 
where t is the temperature and v is the wind velocity. Write a 
program to receive values of t and v and calculate wind chill factor 
(wcf).

#include <stdio.h>
#include <math.h>

int main()
{
    double t, v, wcf;
    printf("Enter the temperature in Fahrenheit: ");
    scanf("%lf", &t);
    printf("Enter the wind velocity in mph: ");
    scanf("%lf", &v);
    wcf = 35.74 + 0.6215 * t + (0.4275 * t - 35.75) * pow(v, 0.16);
    printf("The Wind Chill Factor (WCF) is: %lf\n", wcf);
    return 0;
}



Thursday, 26 June 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 Q: (e) Write a program to receive values of latitude (L1, L2) and longitude (G1, G2), in degrees, of two places on the earth and output the distance (D) between them in nautical miles. The formula for distance in nautical miles is: D = 3963 cos-1 ( sin L1 sin L2 + cos L1 cos L2 * cos ( G2 – G1 ) )


#include <stdio.h>

#include<math.h>

int main()

{

    double l1,l2,g1,g2,D;

    printf("Enter Latitudes L1 & L2");

    scanf("%lf%lf",&l1,&l2);

    printf("Enter Longitudes G1 & G2");

    scanf("%lf%lf",&g1,&g2);

    D=3963*acos(sin(l1)*sin(l2)+cos(l1)*cos(l2)*cos(g2-g1));

    printf("Nautical Miles = %lf",D);

    return 0;

}




Download Source Code

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 

Q: (d) Write a program to receive Cartesian co-ordinates (x, y) of a point and convert them into polar co-ordinates (r, ). Hint: r = sqrt ( x2 + y2 ) and  𝝫 = tan-1 ( y / x )


#include <stdio.h>

#include<math.h>

int main()

{

    double x,y,r,p;

    printf("Enter Cartesian Co-ordinates x,y :\n");

    scanf("%lf%lf", &x,&y);

    r=sqrt(x*x+y*y);

    p=atan(y/x);

    printf("Polar Co-ordinates are ( %lf , %lf )",r,p);

    return 0;

}



Download Source Code


C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 Q: (c) If lengths of three sides of a triangle are input through the keyboard, write a program to find the area of the triangle.


#include <stdio.h>

#include<math.h>

int main()

{

    double a, b, c, s, area;

    printf("Enter the length of side a:\n");

    scanf("%lf", &a);

    printf("Enter the length of side b:\n");

    scanf("%lf", &b);

    printf("Enter the length of side c:\n");

    scanf("%lf", &c);

    s = (a + b + c) / 2;

    area = sqrt(s * (s - a) * (s - b) * (s - c));

    printf("The area of the triangle is: %lf", area);

    return 0;

}






Download Source Code

Wednesday, 25 June 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

Q:(b)If a five-digit number is input through the keyboard, write a 

program to reverse the number.

#include <stdio.h>


int main()

{

    long int n;

    int s=0,r;

    printf("Enter Number\n");

    scanf("%ld",&n);

    while(n>0)

    {

        r=n%10;

        s=s*10+r;

        n=n/10;

    }

    printf("Reverse of Number is %d",s);

    return 0;

}





 







Download Source Code

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2

 

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 2


Q: (a) If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits. (Hint: Use the modulus operator ‘%’)


#include <stdio.h>
int main()
{
    long int n;
    int s=0,r;
    printf("Enter Number\n");
    scanf("%ld",&n);
    while(n>0)
    {
        r=n%10;
        s=s+r;
        n=n/10;
    }
    printf("Sum of Digits is %d",s);
    return 0;
}


C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 1

 Q:(f) Paper of size A0 has dimensions 1189 mm x 841 mm. Each subsequent size A(n) is defined as A(n-1) cut in half parallel to its shorter sides. Thus paper of size A1 would have dimensions 841 mm x 594 mm. Write a program to calculate and print paper sizes A0, A1, A2, … A8.

#include <stdio.h>

int main()

{

    double a[9][2]={{1189,841}};

    int i,j;

    for(i=1;i<=8;i++)

    {

        for(j=0;j<=0;j++)

        {

            if(a[i-1][j]>a[i-1][j+1])

            {

                a[i][j+1]=a[i-1][j]/2;

                a[i][j]=a[i-1][j+1];

            }

            else

            {

                a[i][j+1]=a[i-1][j+1]/2;

                a[i][j]=a[i-1][j];


            }

        }

    }

    for(i=0;i<=8;i++)

    {

        for(j=0;j<=1;j++)

        {

            printf("%lf\t",a[i][j]);

        }

        printf("\n");

    }

    return 0;

}







Tuesday, 24 June 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 1

Q: (e) The length and breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area and perimeter of the rectangle, and the area and circumference of the circle.


#include <stdio.h>

int main()

{

    double l,b,arearec,perirec,r,areacir,circumcir;

    printf("Enter Length & Breadth of Rectangle\n");

    scanf("%lf%lf",&l,&b);

    printf("Enter Radius of Circle\n");

    scanf("%lf",&r);

    arearec=l*b;

    perirec=2*(l+b);

    areacir=3.14*r*r;

    circumcir=2*3.14*r;

    printf("Area of Rectangle is %lf\n",arearec);

    printf("Perimeter of Rectangle is %lf\n",perirec);

    printf("Area of Circle is %lf\n",areacir);

    printf("Circumference of Circle is %lf\n",circumcir);

    return 0;

}



Download Source Code

Page : 1 2 3 4 5

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 1

 Q: (d) Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.

#include <stdio.h>

int main()

{

    double f, c;

    printf("Enter temperature in Fahrenheit: ");

    scanf("%lf", &f);

    c=(f - 32) * 5.0 / 9.0;

    printf("%lf Fahrenheit is equal to %lf Celsius\n", f, c);

    return 0;

}



Download Source Code

Page : 1 2 3 4 5

Tuesday, 17 June 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 1

Q: (c) If the marks obtained by a student in five different subjects are input through the keyboard, write a program to find out the aggregate marks and percentage marks obtained by the student. Assume that the maximum marks that can be obtained by a student in each subject is 100.

/*Q: (c) If the marks obtained by a student in five different subjects are input through the keyboard,

write a program to find out the aggregate marks and percentage marks obtained by the student.

Assume that the maximum marks that can be obtained by a student in each subject is 100.*/



#include<stdio.h>

#include<conio.h>

void main()

{

double m1,m2,m3,m4,m5,tot,per;

clrscr();

printf("Enter Marks in 5 Subjects out of 100 each\n");

printf("Enter Marks in Subject 1\n");

scanf("%lf",&m1);

printf("Enter Marks in Subject 2\n");

scanf("%lf",&m2);

printf("Enter Marks in Subject 3\n");

scanf("%lf",&m3);

printf("Enter Marks in Subject 4\n");

scanf("%lf",&m4);

printf("Enter Marks in Subject 5\n");

scanf("%lf",&m5);

tot=m1+m2+m3+m4+m5;

per=tot/5;

printf("Total Marks = %lf\n",tot);

printf("Percentage = %lf",per);

getch();

}






Page : 1 2 3 4 5

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 1

 Q: (b) The distance between two cities (in km.) is input through the keyboard. Write a program to convert and print this distance in meters, feet, inches and centimeters.


/*Q: (b) The distance between two cities (in km.) is input through the keyboard.

Write a program to convert and print this distance in meters, feet, inches and centimeters.*/

#include<stdio.h>

#include<conio.h>

void main()

{

double dkm,dm,dcm,dft,din;

clrscr();

printf("Enter Distance in KM");

scanf("%lf",&dkm);

dm=dkm*1000;

dcm=dm*100;

din=dcm*0.3937;

dft=dcm*0.0328;

printf("Distance in CM = %lf\n",dcm);

printf("Distance in Inches = %lf\n",din);

printf("Distance in Feet = %lf\n",dft);

printf("Distance in Meter = %lf",dm);

getch();

}









Download Source Code


Page : 1 2 3 4 5


Sunday, 15 June 2025

C Programming Solved Problems Let us C Yashwant Kanitkar Chapter 1

 Q: (a) Ramesh’s basic salary is input through the keyboard. His dearness 

allowance is 40% of basic salary, and house rent allowance is 20% of 

basic salary. Write a program to calculate his gross salary.

Solution:

/*(a) Ramesh’s basic salary is input through the keyboard. His dearness 

allowance is 40% of basic salary, and house rent allowance is 20% of 

basic salary. Write a program to calculate his gross salary.*/

#include<stdio.h>

#include<conio.h>

void main()

{

double b_sal,da,hra,g_sal;

clrscr();

printf("Enter basic salary");

scanf("%lf",&b_sal);

hra=0.20*b_sal;//House Rent Allowance

da=0.40*b_sal;//Dearness Allowance

g_sal=b_sal+da+hra;//Gross Salary

printf("Gross Salary = %lf",g_sal);

getch();

}

Output:



Download Source Code

Page : 1 2 3 4 5

Sunday, 19 January 2025

UGC NET COMPUTER SCIENCE AND APPLICATIONS PAPER - 2 Question 2 November 2017 Solution

Q: 2 Let m=(313)4 and n=(322)4 . Find the base 4 expansion of m+n.

(1) (635)4

(2) (32312)4

(3) (21323)4

(4) (1301)4

Answer: (4)

Explanation:


Firstly convert m & n into base 10:

(313)4 = 3*42+1*41+3*40 = (55)10
(322)4 = 3*42+2*41+2*40
 = (58)10

Now m + n = 55+58 = (113)10

Now Convert (113)10 into base 4

  • When 113 is divided by 4, the quotient is 28 and the remainder is 1.
  • When 28 is divided by 4, the quotient is 7 and the remainder is 0.
  • When 7 is divided by 4, the quotient is 1 and the remainder is 3.
  • When 1 is divided by 4, the quotient is 0 and the remainder is 1.

Write the remainders from bottom to top.

So, (113)10 = (1301)4      which is Correct.

UGC NET COMPUTER SCIENCE AND APPLICATIONS PAPER - 2 Question 1 November 2017 Solution

UGC NET COMPUTER SCIENCE AND APPLICATIONS PAPER - 2 November 2017 Solution


Q: 1 If the time is now 4 O’clock, what will be the time after 101 hours from now ? 

(1) 9 O’clock (2) 8 O’clock (3) 5 O’clock (4) 4 O’clock

Answer: (1)

To find the time after 101 hours from 4 o’clock, we can use the modulo operation with respect to 12 (since it’s a 12-hour clock).
  1. First, calculate the remainder when 101 is divided by 12:

    Quotient is 8 and Remainder is 5
  2. Now add this remainder to the current time: 

    i.e. 4+5 = 9

    Thus, 101 hours from 4 o’clock will be 9 o’clock.
    The correct answer is (1) 9 O’clock.



Try Your Self:
Q:  If the time is now 2 O’clock, what will be the time after 55 hours from now?
2 O’clock
3 O’clock
10 O’clock
9 O’clock