AI Programming
11.2K subscribers
595 photos
42 videos
245 files
570 links
An artificial intelligence free resource channel for students, professionals, and anyone who wants to learn how to solve problems.

ENGINEERING πŸŽ– PROGRAMMING πŸŽ– TIPS & HACKS

https://youtube.com/c/AIProgramming
CONTACT US ON: @alphadmin12
Download Telegram
Stack - Post & Eval.cpp
4.2 KB
Infix to Postfix & Evaluate Using Stack C++
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
Implementation of infix equation/expression to postfix expression converter and evaluator by using stack data structure method.

(N.B. We use stack class from library by calling #include <stack>, which is the same as doing inside our project by declaring function called pop & push.)
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

AI Programming @freecodecs
Have a LitπŸ”₯ Practice Folks πŸ™ŒπŸ½
~~ Difference between C and C++ ~~
The major difference between C and C++ is that C is a procedural programming language and😭 does not support classes and objects, while😏 C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.

AI Programming @freecodecs
Have a LitπŸ”₯ Practice Folks πŸ™ŒπŸ½
πŸ˜‚πŸ˜‚
Happy Mother’s Day Folks!
Who Have Love Wishes πŸ‘ΈπŸ½β€οΈ
πŸ˜‚πŸ˜‚
Java -Exercises
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
Below are some java basics exercise source codes to help you practice the methods and little syntax’s.
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

AI Programming @freecodecs
Have a LitπŸ”₯ Practice Folks πŸ™ŒπŸ½
N.B. (Correction / we think it’s error/ on line 5, which is - - j instead of -j )

On the first loop it will output
100 - β€œI am learning Java !!”
On the second loop it will output
1 - β€œI found it simple, portable and secured”

This loops will be repeated 50 times since N/2 is 50 and the final keyword iteratively decrease the N until it’s null.

So a) 100 x 50 = 5000
b) 1 x 50 = 50
Java - Important Code Note 1
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
IP Address
import java.net.InetAddress;
InetAddress IP = InetAddress.getLocalHost();
System. out. println("IP of my system is := "+IP. getHostAddress());

Maths Equations
Math.pow(b,s)
Math.sqrt()
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
AI Programming @freecodecs
Have a LitπŸ”₯ Practice Folks πŸ™ŒπŸ½
Java - Important Code Note 2
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
Reverse Number

public class ReverseNumber {
public static void main(String[] args) {

int num = 1234, reversed = 0;

while(num != 0) {
int digit = num % 10;
reversed = reversed * 10 + digit;
num /= 10;
}

System.out.println("Reversed Number: " + reversed);
}
}
β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
AI Programming @freecodecs
Have a LitπŸ”₯ Practice Folks πŸ™ŒπŸ½