I am telling about basic c such as variable,constant,operators,decison making,loops,switch,break and continue,function,call by value ,call by reference and recursion.In this pdf i give some practice problems too.
Transmission Control Protocol and User Datagram protocolSamsil Arefin
The Transmission Control Protocol (TCP) is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP/IP.
n computer networking, the User Datagram Protocol (UDP) is one of the core members of the Internet protocol suite. The protocol was designed by David P. Reed in 1980 and formally defined in RFC 768.
A phylogenetic tree or evolutionary tree is a branching diagram or "tree" showing the inferred evolutionary relationships among various biological species or other entities—their phylogeny—based upon similarities and differences in their physical or genetic characteristics.
Bio-informatics is one of the most popular topic today. here we make a presentation in pptx about Evolution Phylogenetic. I think it maybe helpful to others.
Augmented reality (AR) is a live direct or indirect view of a physical, real-world environment whose elements are "augmented" by computer-generated or extracted real-world sensory input such as sound, video, graphics, haptics or GPS data.[1] It is related to a more general concept called computer-mediated reality, in which a view of reality is modified (possibly even diminished rather than augmented) by a computer. Augmented reality enhances one’s current perception of reality, whereas in contrast, virtual reality replaces the real world with a simulated one.
Client Server is networking based project.We made presentation slides to present this topic.It is helpful to everyone.Here we talked about socket programming too.
Program to sort the n names in an alphabetical orderSamsil Arefin
It is a cpp program.Sort names by alphabetical order.
Users give some names as input and they will get sorted name by alphabetical order.I think that it may be helpful to others
Water billing management system project report.pdfKamal Acharya
Our project entitled “Water Billing Management System” aims is to generate Water bill with all the charges and penalty. Manual system that is employed is extremely laborious and quite inadequate. It only makes the process more difficult and hard.
The aim of our project is to develop a system that is meant to partially computerize the work performed in the Water Board like generating monthly Water bill, record of consuming unit of water, store record of the customer and previous unpaid record.
We used HTML/PHP as front end and MYSQL as back end for developing our project. HTML is primarily a visual design environment. We can create a android application by designing the form and that make up the user interface. Adding android application code to the form and the objects such as buttons and text boxes on them and adding any required support code in additional modular.
MySQL is free open source database that facilitates the effective management of the databases by connecting them to the software. It is a stable ,reliable and the powerful solution with the advanced features and advantages which are as follows: Data Security.MySQL is free open source database that facilitates the effective management of the databases by connecting them to the software.
ACEP Magazine edition 4th launched on 05.06.2024Rahul
This document provides information about the third edition of the magazine "Sthapatya" published by the Association of Civil Engineers (Practicing) Aurangabad. It includes messages from current and past presidents of ACEP, memories and photos from past ACEP events, information on life time achievement awards given by ACEP, and a technical article on concrete maintenance, repairs and strengthening. The document highlights activities of ACEP and provides a technical educational article for members.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
TOP 10 B TECH COLLEGES IN JAIPUR 2024.pptxnikitacareer3
Looking for the best engineering colleges in Jaipur for 2024?
Check out our list of the top 10 B.Tech colleges to help you make the right choice for your future career!
1) MNIT
2) MANIPAL UNIV
3) LNMIIT
4) NIMS UNIV
5) JECRC
6) VIVEKANANDA GLOBAL UNIV
7) BIT JAIPUR
8) APEX UNIV
9) AMITY UNIV.
10) JNU
TO KNOW MORE ABOUT COLLEGES, FEES AND PLACEMENT, WATCH THE FULL VIDEO GIVEN BELOW ON "TOP 10 B TECH COLLEGES IN JAIPUR"
https://www.youtube.com/watch?v=vSNje0MBh7g
VISIT CAREER MANTRA PORTAL TO KNOW MORE ABOUT COLLEGES/UNIVERSITITES in Jaipur:
https://careermantra.net/colleges/3378/Jaipur/b-tech
Get all the information you need to plan your next steps in your medical career with Career Mantra!
https://careermantra.net/
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...ssuser7dcef0
Power plants release a large amount of water vapor into the
atmosphere through the stack. The flue gas can be a potential
source for obtaining much needed cooling water for a power
plant. If a power plant could recover and reuse a portion of this
moisture, it could reduce its total cooling water intake
requirement. One of the most practical way to recover water
from flue gas is to use a condensing heat exchanger. The power
plant could also recover latent heat due to condensation as well
as sensible heat due to lowering the flue gas exit temperature.
Additionally, harmful acids released from the stack can be
reduced in a condensing heat exchanger by acid condensation. reduced in a condensing heat exchanger by acid condensation.
Condensation of vapors in flue gas is a complicated
phenomenon since heat and mass transfer of water vapor and
various acids simultaneously occur in the presence of noncondensable
gases such as nitrogen and oxygen. Design of a
condenser depends on the knowledge and understanding of the
heat and mass transfer processes. A computer program for
numerical simulations of water (H2O) and sulfuric acid (H2SO4)
condensation in a flue gas condensing heat exchanger was
developed using MATLAB. Governing equations based on
mass and energy balances for the system were derived to
predict variables such as flue gas exit temperature, cooling
water outlet temperature, mole fraction and condensation rates
of water and sulfuric acid vapors. The equations were solved
using an iterative solution technique with calculations of heat
and mass transfer coefficients and physical properties.
Understanding Inductive Bias in Machine LearningSUTEJAS
This presentation explores the concept of inductive bias in machine learning. It explains how algorithms come with built-in assumptions and preferences that guide the learning process. You'll learn about the different types of inductive bias and how they can impact the performance and generalizability of machine learning models.
The presentation also covers the positive and negative aspects of inductive bias, along with strategies for mitigating potential drawbacks. We'll explore examples of how bias manifests in algorithms like neural networks and decision trees.
By understanding inductive bias, you can gain valuable insights into how machine learning models work and make informed decisions when building and deploying them.
Online aptitude test management system project report.pdfKamal Acharya
The purpose of on-line aptitude test system is to take online test in an efficient manner and no time wasting for checking the paper. The main objective of on-line aptitude test system is to efficiently evaluate the candidate thoroughly through a fully automated system that not only saves lot of time but also gives fast results. For students they give papers according to their convenience and time and there is no need of using extra thing like paper, pen etc. This can be used in educational institutions as well as in corporate world. Can be used anywhere any time as it is a web based application (user Location doesn’t matter). No restriction that examiner has to be present when the candidate takes the test.
Every time when lecturers/professors need to conduct examinations they have to sit down think about the questions and then create a whole new set of questions for each and every exam. In some cases the professor may want to give an open book online exam that is the student can take the exam any time anywhere, but the student might have to answer the questions in a limited time period. The professor may want to change the sequence of questions for every student. The problem that a student has is whenever a date for the exam is declared the student has to take it and there is no way he can take it at some other time. This project will create an interface for the examiner to create and store questions in a repository. It will also create an interface for the student to take examinations at his convenience and the questions and/or exams may be timed. Thereby creating an application which can be used by examiners and examinee’s simultaneously.
Examination System is very useful for Teachers/Professors. As in the teaching profession, you are responsible for writing question papers. In the conventional method, you write the question paper on paper, keep question papers separate from answers and all this information you have to keep in a locker to avoid unauthorized access. Using the Examination System you can create a question paper and everything will be written to a single exam file in encrypted format. You can set the General and Administrator password to avoid unauthorized access to your question paper. Every time you start the examination, the program shuffles all the questions and selects them randomly from the database, which reduces the chances of memorizing the questions.
A review on techniques and modelling methodologies used for checking electrom...nooriasukmaningtyas
The proper function of the integrated circuit (IC) in an inhibiting electromagnetic environment has always been a serious concern throughout the decades of revolution in the world of electronics, from disjunct devices to today’s integrated circuit technology, where billions of transistors are combined on a single chip. The automotive industry and smart vehicles in particular, are confronting design issues such as being prone to electromagnetic interference (EMI). Electronic control devices calculate incorrect outputs because of EMI and sensors give misleading values which can prove fatal in case of automotives. In this paper, the authors have non exhaustively tried to review research work concerned with the investigation of EMI in ICs and prediction of this EMI using various modelling methodologies and measurement setups.
We have compiled the most important slides from each speaker's presentation. This year’s compilation, available for free, captures the key insights and contributions shared during the DfMAy 2024 conference.
1. Welcome to Programming World!
C Programming
Topic: Keywords and Identifiers
Keywords are predefined, reserved words used in programming that have a
special meaning. Keywords are part of the syntax and they cannot be used as an
identifier.
For example: int money;
Here, int is a keyword that indicates 'money' is a variable of type integer.
Keywords List:
Samsil Arefin
2. Identifiers : Identifier refers to name given to entities such as variables,
functions, structures etc.
int money;
double accountBalance;
Here, money and accountBalance are identifiers.
Topic: Constants and Variables
3. In programming, a variable is a container (storage area) to hold data.
To indicate the storage area, each variable should be given a unique name
(identifier). Variable names are just the symbolic representation of a memory
location.
For example: int potato=20;
Here potato is a variable of integer type. The variable is assigned value: 20
Constants/Literals :
A constant is a value or an identifier whose value cannot be altered in a program.
For example: const double PI = 3.14
Here, PI is a constant. Basically what it means is that, PI and 3.14 is same for this
program.
6. Programming Operators :
Increment and decrement operators:
C programming has two operators increment ++ and decrement -- to change the
value of an operand (constant or variable) by 1.
Increment ++ increases the value by 1 whereas decrement -- decreases the value
by 1. These two operators are unary operators, meaning they only operate on a
single operand.
7. #include <stdio.h>
int main()
{
int a = 10, b = 100;
float c = 10.5, d = 100.5;
printf("++a = %d n", ++a);
printf("--b = %d n", --b);
printf("++c = %f n", ++c);
printf("--d = %f n", --d);
return 0;
}
Output:
++a = 11
--b = 99
++c = 11.500000
++d = 99.500000
8. Ternary Operator (?:) :
conditionalExpression ? expression1 : expression2
The conditional operator works as follows:
1.The first expression conditionalExpression is evaluated at first. This expression
evaluates to 1 if it's and evaluates to 0 if it's false.
2.If conditionalExpression is true, expression1 is evaluated.
3.If conditionalExpression is false, expression2 is evaluated.
For example:
#include<stdio.h>
int main(){
int a=10,b=15;
// If test condition (a >b) is true, max equal to 10.
// If test condition (a>b) is false,max equal to 15.
int max=(a>b)?a:b;
printf("%d",max);
return 0;
}
9. Topic: if, if...else and Nested if...else Statement
if statement :
if(boolean_expression) {
/* statement(s) will execute if the boolean expression is true */
}
Samsil Arefin
10. Example :
#include <stdio.h>
int main () {/* local variable definition */
int a = 10;
/* check the boolean condition using if statement */
if( a < 20 ) {/* if condition is true then print the following */
printf("a is less than 20n" );
}
printf("value of a is : %dn", a); return 0; }
Output:
a is less than 20
11. value of a is : 10
If...else if...else Statement :
if(boolean_expression 1) {
/* Executes when the boolean expression 1 is true */
}
else if( boolean_expression 2) {
/* Executes when the boolean expression 2 is true */
}
else if( boolean_expression 3) {
/* Executes when the boolean expression 3 is true */
}
else {
/* executes when the none of the above condition is true */
}
#include <stdio.h>
void main () { int a = 100; /* local variable definition */
/* check the boolean condition */
if( a == 10 ) {
/* if condition is true then print the following */
printf("Value of a is 10n" );
}
else if( a == 20 ) {
12. /* if else if condition is true */
printf("Value of a is 20n" );
}
else if( a == 30 ) {
/* if else if condition is true */
printf("Value of a is 30n" );
}
else {
/* if none of the conditions is true */
printf("None of the values is matchingn" ); } }
Topic: Switch statement
13. switch (n)
{
case constant1:
// code to be executed if n is equal to constant1;
break;
case constant2:
// code to be executed if n is equal to constant2; break;
.
.
.
default:
// code to be executed if n doesn't match any constant
}
Samsil Arefin
14.
15. For example :
#include <stdio.h>
void main () {
char grade = 'B'; /* local variable definition */
switch(grade) {
case 'A' :
printf("Excellent!n" ); break;
case 'B' :
printf("Well donen" ); break;
case 'C' :
printf("You passedn" ); break;
case 'D' :
printf("Better try againn" ); break;
default : printf("Invalid graden" ); } }
Topic : LOOP
There are three loops in C programming:
1.for loop
2.while loop
3.do..while loop
Samsil Arefin
16. For loop :
Example :
#include <stdio.h>
void main () { int a;
/* for loop execution */
for( a =0; a <10; a++ ){
17. printf("value of a: %dn", a); } }
Output:
value of a: 0
value of a: 1
value of a: 2
value of a: 3
value of a: 4
value of a: 5
value of a: 6
value of a: 7
value of a: 8
value of a: 9
while loop :
while(condition) {
statement(s); }
Example:
#include <stdio.h>
Void main () {
/* local variable definition */
18. int a = 10;
/* while loop execution */
while( a < 20 ) {
printf("value of a: %dn", a);
a++;
} }
Output same.
DO..while loop :
do {
statement(s);
} while( condition );
19. Example:
#include <stdio.h>
Void main () {
/* local variable definition */
int a = 10;
/* do loop execution */
do {
printf("value of a: %dn", a);
a++;
}while( a < 20 ); }
20. Output same.
Nested for loop :
for (initialization; condition; increment/decrement)
{
statement(s);
for (initialization; condition; increment/decrement)
{
statement(s);
... ... ...
}
... ... ...
}
26. int a = 10;
/* while loop execution */
while( a < 20 ) {
printf("value of a: %dn", a);
a++;
if( a > 15) {
/* terminate the loop using break statement */
break;
}
}
return 0;
}
Result:
value of a: 10
value of a: 11
value of a: 12
27. value of a: 13
value of a: 14
value of a: 15
continue Statement :
Example:
#include <stdio.h>
int main()
{ int i;
for( i=0;i<=8;i++)
{
if(i==5) continue;
printf("value of i: %dn", i);
}
return 0;
}
Output:
value of i: 0
value of i: 1
value of i: 2
value of i: 3
28. value of i: 4
value of i: 6
value of i: 7
value of i: 8
Topic: Function
29. Example #1: No arguments passed and no return Value
#include <stdio.h>
void add()
{
int a=10,b=20,c;
c=a+b;
printf("C= %d",c);
30. // return type of the function is void becuase no value is returned from the
function
}
int main()
{
add(); // no argument is passed to add()
return 0;
}
Output: c= 30
Example #2: No arguments passed but a return value
#include <stdio.h>
int get()
{
int n=10,m=10;
return m+n; //m+n return value
}
void main()
{
int c;
31. c= get(); // no argument is passed to the function
// the value returned from the function is assigned to c
printf("C= %d",c);
}
Output: C= 20
Example #3: Argument passed but no return value
#include <stdio.h>
// void indicates that no value is returned from the function
void get(int c)
{
printf("C= %d",c) ;
}
int main()
{
int a=10,b=10,c;
c=a+b;
get(c); // c is passed to the function
return 0;
}
32. Example #4: Argument passed and a return value
#include <stdio.h>
/* function declaration */
int max(int num1, int num2);
int main () {
/* local variable definition */
int a = 100;
int b = 200;
int ret;
// a,b are passed to the checkPrimeNumber() function
// the value returned from the function is assigned to ret variable
ret = max(a, b);
printf( "Max value is : %dn", ret );
return 0;
33. }
/* function returning the max between two numbers */
int max(int num1, int num2) {
/* local variable declaration */
int result;
if (num1 > num2)
result = num1;
else
result = num2;
return result;
}
Pass by Value: In this parameter passing method, values of actual
parameters are copied to function’s formal parameters and the two
types of parameters are stored in different memory locations. So any
changes made inside functions are not reflected in actual parameters
of caller.
34. #include <stdio.h>
void fun(int x)
{
x = 30;
}
int main(void)
{
int x = 20;
fun(x);
printf("x = %d", x);
return 0;
}
Output: x = 20
Pass by Reference Both actual and formal parameters refer to same
locations, so any changes made inside the function are actually reflected in
actual parameters of caller.
# include <stdio.h>
void fun(int *ptr)
{
*ptr = 30;
}
int main()
{
int x = 20;
fun(&x);
printf("x = %d", x);
return 0;
}
x = 30
35. Topic: Recursion
A function that calls itself is known as a recursive function. And, this
technique is known as recursion. The recursion continues until some
condition is met to prevent it. To prevent infinite recursion, if...else
statement (or similar approach) can be used where one branch makes the
recursive call and other doesn't
36. Example: Sum of Natural Numbers Using Recursion
#include <stdio.h>
int sum(int n);
int main()
{
int number, result;
printf("Enter a positive integer: ");
scanf("%d", &number);
result = sum(number);
printf("sum=%d", result);
}
int sum(int num)
{
if (num!=0)
return num + sum(num-1); // sum() function calls itself
else
return num;
}
Output : Enter a positive integer: 3
sum=6
38. Exercise 1)
Write a program and call it calc.c which is the basic calculator and receives
three values from input via keyboard.
The first value as an operator (Op1) should be a char type and one of (+, -, *,
/, s) characters with the following meanings:
o ‘+’ for addition (num1 + num2)
o ‘-’ for subtraction (num1 - num2)
o ‘*’ for multiplication (num1 * num2)
o ‘/’ for division (num1 / num2)
o ‘s’ for swap
*Program should receive another two operands (Num1, Num2) which could
be float or integer
.
*The program should apply the first given operator (Op1) into the operands
(Num1, Num2) and prints the relevant results with related messages in the
screen.
* Swap operator exchanges the content (swap) of two variables, for this task
you are not allowed to use any further variables (You should use just two
variables to swap).
Exercise 2)
Write a C program and call it sortcheck.cpp which receives 10 numbers
from input and checks whether these numbers are in ascending order or
not. You are not allowed to use arrays. You should not define more than
three variables.
39. e.g Welcome to the program written by Your Name:
Please enter 10 Numbers: 12 17 23 197 246 356 790 876 909 987
Fine, numbers are in ascending order.
Exercise 3)
Write a C program to calculates the following equation for entered numbers
(n, x). 1+ (nx/1!) - (n(n-1)x^2/2!)......................................
Exercise 4)
Write the C program for processing of the students structure. Define the
array of a structure called students including following fields:
* “First name”
* “Family Name”
* “Matriculation Number”
You should first get the number of students from input and ask user to
initialize the fields of the structure for the entered amount of students. Then
delete the students with the same “Matriculation Number” and sort the list
based on “Family Name” and print the final result in the screen.
Samsil Arefin
161-15-7197