Session
Session
C/C++ JAVA
These are procedure oriented languages. Java is an object oriented language.
These are machine dependent. It is machine independent.
It requires recompilation. It works on “Write Once, Run
everywhere”.
After compiling it will generate a .obj After compiling it will generate .class file
file, .exe file, .backup file. which can easily run on any machine
having a JVM.
These languages are compiled using a Java uses both a compiler and an
compiler. interprete. It Converts Java code (.java)
into bytecode (.class) using javac. JVM
interprets the bytecode and executes it
on different platforms.
TYPES OF SOFTWARES
1. Desktop Applications:
Desktop applications are software programs that run on a computer's operating system and do not require an internet connection
(except for cloud-based ones). They are installed directly on the user's computer.
Examples: Microsoft Office (Word, Excel, PowerPoint), Visual Studio Code (Code Editor)
2. Web Applications:
Web applications are software that runs in a web browser. They require an internet connection and do not need installation on the
local device.
Examples: Google Search, DuckDuckGo, Google Drive (Cloud Storage)
3. Mobile Applications:
Mobile applications (apps) are software designed to run on smartphones and tablets. They are available on platforms like Android
(Google Play Store) and iOS (Apple App Store).
Examples: WhatsApp (Messaging), Telegram (Chat & File Sharing), Zoom (Video Conferencing)
4. AR/VR/MR Applications:
Applications based on Augmented Reality (AR), Virtual Reality (VR), and Mixed Reality (MR) create immersive digital experiences.
Examples:
Augmented Reality (AR) Apps: Pokémon GO (AR Gaming), Google Lens (Object Recognition)
Virtual Reality (VR) Apps: Oculus Rift Apps (VR Games & Experiences)
Mixed Reality (MR) Apps: Microsoft HoloLens Apps (3D Holographic Computing)
Utility Software
Example:
#include <stdio.h>
int main() {
int i = 1;
while (i <= 5) { // Condition checked first
printf("%d\n", i);
i++}
return 0;
}
2. Exit-Control Loop:
• The condition is checked after executing the
loop body.
• The loop executes at least once, even if the
condition is false initially.
Example :
#include <stdio.h>
int main() {
int i = 6;
do {
printf("%d\n", i);
i++;
} while (i <= 5); // Condition checked after
execution
return 0;
}
CANDY CATCHER GAME IN C
Objective
Catch falling candies ('0') with a moving box ('#').
Earn points for each successful catch.
Game Setup
Background color is set to blue.
Score and lifeline are displayed at the top-right.
Candy starts falling from a random position.
Controls
'A' / 'a' → Move left (within screen limits).
'D' / 'd' → Move right (within screen limits).
'X' / 'x' → Exit the game.
Scoring System
If the box catches the candy, score increases.
If missed, lifeline decreases.
If lifelines reach zero, the game ends with "GAME OVER".
THANK YOU