18 css101j pps unit 2
Relational and logical Operators - Condition Operators, Operator Precedence - Expressions with pre / post increment operator - Expression with conditional and assignment operators - If statement in expression - L value and R value in expression -
Control Statements – if and else - else if and nested if, switch case - Iterations, Conditional and Unconditional branching
For loop - while loop - do while, goto, break, continue
Array Basic and Types - Array Initialization and Declaration - Initialization: one Dimensional Array - Accessing, Indexing one Dimensional Array Operations - One Dimensional Array operations - Array Programs – 1D
Operators and Control Statements in Java : Arithmetic Operators, Unary Operators, Relational
Operators, Logical Operators, Boolean Operators, Bitwise Operators, Ternary Operators, New
Operator, Cast Operator, If .... else statement, Switch statement, Break statement, Continue
statement, Return statement, do ... while loop, while loop, for loop.
C++ provides operators for composing arithmetic, relational, logical, bitwise, and conditional expressions. It also provides operators which produce useful side-effects, such as assignment, increment, and decrement. We will look at each category of operators in turn. We will also discuss the precedence rules which govern the order of operator evaluation in a multi-operator expression.
18 css101j pps unit 2
Relational and logical Operators - Condition Operators, Operator Precedence - Expressions with pre / post increment operator - Expression with conditional and assignment operators - If statement in expression - L value and R value in expression -
Control Statements – if and else - else if and nested if, switch case - Iterations, Conditional and Unconditional branching
For loop - while loop - do while, goto, break, continue
Array Basic and Types - Array Initialization and Declaration - Initialization: one Dimensional Array - Accessing, Indexing one Dimensional Array Operations - One Dimensional Array operations - Array Programs – 1D
Operators and Control Statements in Java : Arithmetic Operators, Unary Operators, Relational
Operators, Logical Operators, Boolean Operators, Bitwise Operators, Ternary Operators, New
Operator, Cast Operator, If .... else statement, Switch statement, Break statement, Continue
statement, Return statement, do ... while loop, while loop, for loop.
C++ provides operators for composing arithmetic, relational, logical, bitwise, and conditional expressions. It also provides operators which produce useful side-effects, such as assignment, increment, and decrement. We will look at each category of operators in turn. We will also discuss the precedence rules which govern the order of operator evaluation in a multi-operator expression.
This slide contains information about Operators in C.pptxranaashutosh531pvt
This slide contains information about c++ operators,This slide contains information about This slide contains information about c++ operators,This slide contains information about c++ operators,This slide contains information about c++ operators,This slide contains information about c++ operators,
This slide contains information about Operators in C.pptxranaashutosh531pvt
This slide contains information about c++ operators,This slide contains information about This slide contains information about c++ operators,This slide contains information about c++ operators,This slide contains information about c++ operators,This slide contains information about c++ operators,
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.
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.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesChristina Lin
Traditionally, dealing with real-time data pipelines has involved significant overhead, even for straightforward tasks like data transformation or masking. However, in this talk, we’ll venture into the dynamic realm of WebAssembly (WASM) and discover how it can revolutionize the creation of stateless streaming pipelines within a Kafka (Redpanda) broker. These pipelines are adept at managing low-latency, high-data-volume scenarios.
HEAP SORT ILLUSTRATED WITH HEAPIFY, BUILD HEAP FOR DYNAMIC ARRAYS.
Heap sort is a comparison-based sorting technique based on Binary Heap data structure. It is similar to the selection sort where we first find the minimum element and place the minimum element at the beginning. Repeat the same process for the remaining elements.
6th International Conference on Machine Learning & Applications (CMLA 2024)ClaraZara1
6th International Conference on Machine Learning & Applications (CMLA 2024) will provide an excellent international forum for sharing knowledge and results in theory, methodology and applications of on Machine Learning & Applications.
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.
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.
3. OPERATORS
The symbol that are used in C++ programs to form
an expression are known as OPERATORS.C++ has a
rich set of operators including all C language’s
operators and also some new operators. There are
three categories of operators in C++.
These are :
01: Unary Operators
02: Binary Operators
03: Ternary Operators
4. OPERATORS
The operators thatr operate a single
operand to form an expression are
Unary operators.like ++,--
The operators that operate two or
more operands are Binary operators.
The operators are +,-,*,/,% etc.
The operators that operates minimum or maximum
three operands are Ternary operators. Only one
(?) used as substitute of if-else statement.
01
02
03
Unary Operators
Binary Operators
Ternary Operators
5. Type of
operators in
C++
< * Arithmetic Operators
* Logical Operators
* Bitwise Operators
* Relational Operators
* Assignment Operators >
}
6. The operators that helps the programmer in
mathematical calculation are Arithmetic Operators.
Its include (+) for addition , (-) for
subtraction, (/) for division ,(*) for
multiplication etc.
01.Arthimetic Operators
<example>
2+5= 7
2*7= 14
8/2= 4
8-4= 4
} ..
7. Program for arthimetic operators
OUTPUT:
Sum: 15
Difference: 5
Product: 50
Quotient: 2
Remainder: 0
#include <iostream>
using namespace std;
int main() {
int num1 = 10, num2 = 5;
int sum = num1 + num2;
cout << "Sum: " << sum << endl;
int difference = num1 - num2;
cout << "Difference: " << difference << endl;
int product = num1 * num2;
cout << "Product: " << product << endl;
int quotient = num1 / num2;
cout << "Quotient: " << quotient << endl;
int remainder = num1 % num2;
cout << "Remainder: " << remainder << endl;
return 0;
}
} ..
8. 02.Logical Operators
The Operators that help the
programmer to connect (combine)
two or more expression, are
known as Logical Operators.
It include :
01: (&&) logical AND
02: (||) logical OR
03: (!) logical NOT
9. Program for logical operators
OUTPUT;
x && y: 0
x && z: 1
x || y: 1
y || z: 1
!x: 0
!y: 1
#include <iostream>
using namespace std;
int main() {
bool x = true, y = false, z = true;
// AND operator (&&)
cout << "x && y: " << (x && y) << endl; // false
cout << "x && z: " << (x && z) << endl; // true
// OR operator (||)
cout << "x || y: " << (x || y) << endl; // true
cout << "y || z: " << (y || z) << endl; // true
// NOT operator (!)
cout << "!x: " << !x << endl; // false
cout << "!y: " << !y << endl; // true
return 0;
}
{
}
10. 03.Bitwise Operators
(~) bitwise complement
(<<) left shift
(>>) right shift
(&) bitwise AND
(|) bitwise OR
(^) bitwise exclusive Or
The operators which operate a bit level and
allows the programmer to manipulate
individual bits. These are basically used
for testing or shifting bits.
Bitwise operators are:
11. Program for Bitwise operators
#include <iostream>
using namespace std;
int main(){
int x = 10, y = 7, z = 0;
// Bitwise AND (&)
z = x & y;
cout << "x & y = " << z << endl;
// Bitwise OR (|)
z = x | y;
cout << "x | y = " << z << endl;
// Bitwise XOR (^)
z = x ^ y;
cout << "x ^ y = " << z << endl;
// Bitwise NOT (~)
z = ~x;
cout << "~x = " << z << endl;
// Left shift (<<)
z = x << 2;
cout << "x << 2 = " << z << endl;
// Right shift (>>)
z = y >> 1;
cout << "y >> 1 = " << z << endl;
return 0;
}
OUYPUT:
x & y = 2
x | y = 15
x ^ y = 13
~x = -11
x << 2 = 40
y >> 1 = 3
12. 04.Relational Operators
Relational operators are used to
compare values and determine their
relationship. They return a Boolean
value of TRUE(1) if the relation is
true, and false(0) if it’s not.
X == y
equal to
==
X != y
Not equal to
!=
X > y
Greater than
>
X < y
Less than
<
X >= y
Greater than or equal to
>=
X <= y
Less than or equal to
<=
13. Program for relational operators
int num1 = 20, num2 = 15;
// Equality check
if (num1 == num2) {
cout << num1 << " is equal to " << num2 << endl;
} else {
cout << num1 << " is not equal to " << num2 << endl;
}
// Greater than check
if (num1 > num2) {
cout << num1 << " is greater than " << num2 << endl;
}
// Less than check
if (num1 < num2) {
cout << num1 << " is less than " << num2 << endl;
}
// Greater than or equal to check
if (num1 >= num2) {
cout << num1 << " is greater than or equal to " << num2 << endl;
}
// Less than or equal to check
if (num1 <= num2) {
cout << num1 << " is less than or equal to " << num2 << endl;
}
}..
OUTPUT:
20 is not equal to 15
20 is greater than 15
20 is greater than or
equal to 15
14. 05.Assignment Operators
{
} ..
Assignment operators are used to assign values to
variables. They store the value on the right side
of the operator into the variable on the left
side.it include :
01. Simple assign (=)
02. Add and assign (+=)
03. Subtract and assign (-=)
04. Multiply and assign (*=)
05. Divide and assign (/=)
06. Modulo assign (%=)
15. Program for Assignment operators
int x = 10;
int y = 5;
// Simple assignment
cout << "Original value of x: " << x << endl;
x = 20; // Assign 20 to x
cout << "After assignment: x = " << x << endl;
// Compound assignment operators
x += 5; // Equivalent to x = x + 5
cout << "After x += 5: x = " << x << endl;
y -= 2; // Equivalent to y = y - 2
cout << "After y -= 2: y = " << y << endl;
x *= 3; // Equivalent to x = x * 3
cout << "After x *= 3: x = " << x << endl;
y /= 2; // Equivalent to y = y / 2
cout << "After y /= 2: y = " << y << endl;
return 0;
}
OUTPUT:
Original value of x: 10
After assignment: x = 20
After x += 5:
x = 25
After y -= 2:
y = 3
After x *= 3:
x = 75
After y /= 2:
y = 1