List of Practical's
List of Practical's
DEPARTEMENT OF BCA
1. Lab Objectives:
➢ Be able to download and install visual studio, or any other online compiler, and to
be execute windows programming practical.
➢Be able to understand the structure of visual studio and do the programs with their
proper syntax.
b) Aim
➢ Students are required to carry their record book with completed experiments while
➢ Students must use the equipment with care. Any damage is caused student is
punishable ➢ Students are not allowed to use their cell phones/pen drives/ CDs in
labs.
➢ Students are supposed to occupy the computers allotted to them and are not
supposed to talk or make noise in the lab. Students, after completion of each
experiment they need to be updated in observation notes and same to be updated in
the record.
➢ If a student is absent for any lab, they need to be completed the same experiment in
2. Plan your task properly much before to the commencement, come prepared to the
lab with the synopsis / program / experiment details.
4. Sign in the laboratory login register, write the TIME-IN, and occupy the computer
system allotted to you by the faculty.
5. Execute your task in the laboratory, and record the results / output in the lab and
get certified by the concerned faculty.
6. All the students should be polite and cooperative with the laboratory staff, must
maintain the discipline and decency in the laboratory.
7. Computer labs are established with sophisticated and high-end branded systems,
which should be utilized properly.
8. Students must keep their mobile phones in SWITCHED OFF mode during the lab
sessions. Misuse of the equipment, misbehaviors with the staff and systems etc.,
will attract severe punishment.
9. Students must take the permission of the faculty in case of any urgency to go out;
if anybody found loitering outside the lab / class without permission during
working hours will be treated seriously and punished appropriately.
10. Students should LOG OFF/ SHUT DOWN the computer system before he/she
leaves the lab after completing the task (experiment) in all aspects. He/she must
ensure the system / seat is kept properly.
2. W.A.P for demonstration of Text Box & Button control, List Box
& Combo Box Control.
class Program
{
static void Main()
{
Console.WriteLine("=== Function
Demonstrations ===");
FunctionDemo();
// Function Demonstration
static void FunctionDemo()
{
Console.WriteLine("Calling Add Function (5
+ 3): " + Add(5, 3));
// String Operations
static void StringOperations()
{
string str1 = "Hello";
string str2 = "World";
// String Concatenation
string result = str1 + " " + str2;
Console.WriteLine("Concatenation: " +
result);
// String Length
Console.WriteLine("Length of result: " +
result.Length);
// Substring
Console.WriteLine("Substring (Hello): " +
result.Substring(0, 5));
// String Comparison
Console.WriteLine("String Comparison (Hello
vs World): " + str1.CompareTo(str2));
// Replacing a Word
Console.WriteLine("Replacing 'World' with
'C#': " + result.Replace("World", "C#"));
// Splitting String
string[] words = result.Split(' ');
Console.WriteLine("Splitting String:");
foreach (string word in words)
{
Console.WriteLine(word);
}
}
}
Output:
=== Function Demonstrations ===
Calling Add Function (5 + 3): 8
Calling Overloaded Add Function (5.5 + 3.2): 8.7
Calling Recursive Factorial Function (Factorial of
5): 120
Prerequisites:
using System;
using MathWorks.MATLAB.Engine;
class Program
{
static void Main()
{
Console.WriteLine("Starting MATLAB Engine...");
// Specify the image path (change this to your actual image file)
string imagePath = @"C:\path\to\your\image.jpg";
using System;
using MathWorks.MATLAB.Engine;
class Program
{
static void Main()
{
Console.WriteLine("Starting MATLAB
Engine...");
using System;
using MathWorks.MATLAB.Engine;
class Program
{
static void Main()
{
Console.WriteLine("Starting MATLAB
Engine...");
class Program
{
static void Main()
{
Console.WriteLine("Starting MATLAB
Engine...");
% Compute 2D FFT
F = fft2(double(grayImg));
F_shifted = fftshift(F); % Shift zero
frequency to center
magnitude = abs(F_shifted);
figure; imshow(log(1 + magnitude), []);
title('Frequency Spectrum');
Console.WriteLine("Frequency domain
filtering applied. Check MATLAB for images.");
class Program
{
static void Main()
{
Console.WriteLine("Starting MATLAB
Engine...");
Console.WriteLine("Color image
representation applied. Check MATLAB for
images.");