While, for, and do-while loops in C allow code to be repeatedly executed. The while loop repeats as long as a condition is true. The do-while loop executes the statement block first and then checks the condition, repeating until it is false. The for loop allows initialization of a counter variable, a condition to test on each iteration, and an increment expression to modify the counter between iterations. All three loops repeat zero or more times until their condition becomes false.
In this presentation slides you will able to understand easily ,this slides contain loops of c++ programming language which contain for loop , while loop , do while loop and nested these all are describe with definition,examples and flow charts
It gives you the basic difference between among different types of loop...So here its my Presentation that help to clear all the confusions you faced while studying the LOOPS.
In this presentation slides you will able to understand easily ,this slides contain loops of c++ programming language which contain for loop , while loop , do while loop and nested these all are describe with definition,examples and flow charts
It gives you the basic difference between among different types of loop...So here its my Presentation that help to clear all the confusions you faced while studying the LOOPS.
Selection Statements
Using if and if...else
Nested if Statements
Using switch Statements
Conditional Operator
Repetition Statements
Looping: while, do, and for
Nested loops
Using break and continue
BRANCHING STATEMENTS
if statement
if – else statement
if – else if ladder
Nested if
Goto
Switch case
programs
output
flowchart
Branching / Decision Making Statements
The statements in the program that helps to transfer the control from one part to other parts of the program.
Facilitates program in determining the flow of control
Involves decision making conditions
See whether the condition is satisfied or not
If statement; Execute a set of command line or one command line when the logical condition is true.
It has only one option
syntax with flowchart
If else if ladder; Number of logical statements are checked for executing various statement
If the first condition is true the compiler executes the block followed by first if condition.
If false it skips the block and checks for the next logical condition followed by else if.
Process is continued until a true condition is occurred or an else condition is satisfied.
Switch case; Multiway branch statement
It only requires one argument of any type, which is checked with number of cases.
If the value matches with the case constant, that particular case constant is executed. If not the default statement is executed.
Break statement – used to exit from current case structure
Nested if else; When a series of decisions are involved we use more than one if-else statement.
If condition is true control passes to first block i.e., if block. In this case there may be one more if block.
If condition is false control passes to else block. There we may have one more if block.
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached. Typically, a certain process is done, such as getting an item of data and changing it, and then some condition is checked such as whether a counter has reached a prescribed number.
Selection Statements
Using if and if...else
Nested if Statements
Using switch Statements
Conditional Operator
Repetition Statements
Looping: while, do, and for
Nested loops
Using break and continue
BRANCHING STATEMENTS
if statement
if – else statement
if – else if ladder
Nested if
Goto
Switch case
programs
output
flowchart
Branching / Decision Making Statements
The statements in the program that helps to transfer the control from one part to other parts of the program.
Facilitates program in determining the flow of control
Involves decision making conditions
See whether the condition is satisfied or not
If statement; Execute a set of command line or one command line when the logical condition is true.
It has only one option
syntax with flowchart
If else if ladder; Number of logical statements are checked for executing various statement
If the first condition is true the compiler executes the block followed by first if condition.
If false it skips the block and checks for the next logical condition followed by else if.
Process is continued until a true condition is occurred or an else condition is satisfied.
Switch case; Multiway branch statement
It only requires one argument of any type, which is checked with number of cases.
If the value matches with the case constant, that particular case constant is executed. If not the default statement is executed.
Break statement – used to exit from current case structure
Nested if else; When a series of decisions are involved we use more than one if-else statement.
If condition is true control passes to first block i.e., if block. In this case there may be one more if block.
If condition is false control passes to else block. There we may have one more if block.
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached. Typically, a certain process is done, such as getting an item of data and changing it, and then some condition is checked such as whether a counter has reached a prescribed number.
loops play a vital role in any programming language, they allow the programmer to write more readable and effective code. The looping concept also allows us to reduce the number of lines.
A while loop in C programming
repeatedly executes a target
statement as long as a given
condition is true.
A while loop in C programming
repeatedly executes a target
statement as long as a given
condition is true.
#loops, #c, #program, #loops in c, #c loops, #loops introduction, #while and do while loop, #for loop in c programming, #loops in c programming, #c programming loop, #c loop programs, #looping structure in c, #looping
A transducer is a device which transforms a non-electricalphysical quantity (i.e. temperature, sound or light) into anelectrical signal (i.e. voltage, current, capacity…)
In a generating station the generator and transformer are the most expensive equipments and hence it is desirable to employ protective system to isolate the faulty equipment as quickly as possible to keep the healthy section in normal operation and to ensure uninterruptable power supply.
Design of Magnetic Circuit for Synchronous MachineAbhishek Choksi
Mmf required to drive flux in the magnetic circuit of a synchronous machine can be calculated as by the governing terms:-
Mmf for air gap
Mmf for armature teeth
Mmf for core
Mmf for poles
Mmf for yoke
Total field Mmf at no load
Total field Mmf at full load
Load flow studies or Power flow studies is the analysis of a power system in normal steady state condition.
Load flow studies basically comprises of the determination of
Voltage
Current
Active Power
Reactive Power
Pulse Width Modulation, or PWM, is a technique for getting analog results with digital means.
Digital control is used to create a square wave, a signal switched between on and off.
It is that branch of welding in which Electric current is used to produce the large heat required for joining together into firm two pieces of metals.
Electrical welding process fall into two main categories
RESISTANCE WELDING.
ARC WELDING.
DC motor and open loop speed control.
Closed loop speed control of DC drives.
Closed loop speed control with inner loop current control
Closed loop field control
Closed loop armature control.
Synthesis of unsymmetrical phasors from their symmetrical componentsAbhishek Choksi
Power systems are large and complex three phase system
In normal operating conditions , electrical power system operate in balanced condition.
But sometimes certain situation occurs like fault or short circuit which make the system to be unstable.
Single phase equivalent system method of analysis cannot be applied to such system.
In early days, there was a little demand for electrical energy so that small power stations were built to supply lighting and heating loads. However, the widespread use of electrical energy by modern civilisation has necessitated to produce bulk electrical energy economically and efficiently.
The increased demand of electrical energy can be met by building big power stations at favourable places where fuel (coal or gas) or water energy is available in abundance.
The armature winding is the main current-carrying winding in which the electromotive force or counter-emf of rotation is induced.
The current in the armature winding is known as the armature current.
The location of the winding depends upon the type of machine.
The armature windings of dc motors are located on the rotor, since they must operate in union with the commutator.
In DC rotating machines other than brushless DC machines, it is usually rotating.
The microprocessor is the core of computer systems.
Nowadays many communication, digital entertainment, portable devices, are controlled by them.
A designer should know what types of components he needs, ways to reduce production costs and product reliable.
Principle of regenerative braking and chopper configurationAbhishek Choksi
A Regenerative Brake, is an energy recovery mechanism which slows a vehicle or object down by converting its kinetic energy into another form, which can be either used immediately or stored until needed.
Regenerative braking takes place whenever the speed of the motor exceeds the synchronous speed.
This braking method is called regenerative baking because here the motor works as generator and supply itself is given power from the load, i.e. motors.
Root locus is a graphical representation of the closed-loop poles as a system parameter is varied.
It can be used to describe qualitatively the performance of a system as various parameters are changed.
It gives graphic representation of a system’s transient response and also stability.
We can see the range of stability, instability, and the conditions that cause a system to break into oscillation.
Web application attack and audit framework (w3af)Abhishek Choksi
w3af (web application attack and audit framework) is an open-source web application security scanner. The project provides a vulnerability scanner and exploitation tool for Web applications. It provides information about security vulnerabilities and aids in penetration testing efforts. Users have the choice between a graphic user interface and a command-line interface.
Vaccine management system project report documentation..pdfKamal Acharya
The Division of Vaccine and Immunization is facing increasing difficulty monitoring vaccines and other commodities distribution once they have been distributed from the national stores. With the introduction of new vaccines, more challenges have been anticipated with this additions posing serious threat to the already over strained vaccine supply chain system in Kenya.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
Presented at NUS: Fuzzing and Software Security Summer School 2024
This keynote talks about the democratization of fuzzing at scale, highlighting the collaboration between open source communities, academia, and industry to advance the field of fuzzing. It delves into the history of fuzzing, the development of scalable fuzzing platforms, and the empowerment of community-driven research. The talk will further discuss recent advancements leveraging AI/ML and offer insights into the future evolution of the fuzzing landscape.
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
Courier management system project report.pdfKamal Acharya
It is now-a-days very important for the people to send or receive articles like imported furniture, electronic items, gifts, business goods and the like. People depend vastly on different transport systems which mostly use the manual way of receiving and delivering the articles. There is no way to track the articles till they are received and there is no way to let the customer know what happened in transit, once he booked some articles. In such a situation, we need a system which completely computerizes the cargo activities including time to time tracking of the articles sent. This need is fulfilled by Courier Management System software which is online software for the cargo management people that enables them to receive the goods from a source and send them to a required destination and track their status from time to time.
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSEDuvanRamosGarzon1
AIRCRAFT GENERAL
The Single Aisle is the most advanced family aircraft in service today, with fly-by-wire flight controls.
The A318, A319, A320 and A321 are twin-engine subsonic medium range aircraft.
The family offers a choice of engines
3. Repetition statements allow us to execute a
statement multiple times
Often they are referred to as loops
Like conditional statements, they are
controlled by boolean expressions
There are three kinds of repetition
statements:
4. The syntax of while statement in C:
while (loop repetition condition)
statement
Loop repetition condition is the condition
which controls the loop.
The statement is repeated as long as the loop
repetition condition is true.
A loop is called an infinite loop if the loop
repetition condition is always true.
5. Logical expression that determines
whether the action isto be executed
while ( Expression) Action
Action to be iteratively
performed until logical
expression isfalse
6. A while statement has the following syntax:
while ( condition ){
statement;
}
• If the condition is true, the statement is executed
• Then the condition is evaluated again, and if it is still true, the
statement is executed again
• The statement is executed repeatedly until the condition becomes
false
8. An example of a while statement:
int count = 1;
while (count <= 5){
System.out.println (count);
count++;
}
• If the condition of a while loop is false initially, the statement is
never executed
• Therefore, the body of a while loop will execute zero or more times
9.
10. The syntax of the do-while statement in
C:
do
statement
while (loop repetition condition);
The statement is first executed.
If the loop repetition condition is
satisfied, the statement is repeated else,
the repetition of the loop is stopped.
11. Syntax
do Action
while
(Expression)
Semantics
◦ Execute Action
◦ If Expression is true
then execute Action
again
◦ Repeat this process
until Expression
evaluates to false
Action is either a
single statement or a
group of statements
within curly braces
Action
true
false
Expression
15. /* Find an even number input */
do{
printf(“Enter a value:n”);
scanf(“%d”,&num);
}while(num%2!=0)
printf(“n%d”,num);
This loop will repeat if the user inputs
odd number.
16. The syntax of for statement in C:
for (initialization expression;
loop repetition condition;
update expression)
statement
The initialization expression set the initial
value of the loop control variable.
The loop repetition condition test the value of
the loop control variable.
The update expression update the loop
control variable.
17. A for statement has the following syntax:
for ( initialization ; condition ; increment ){
statement;
}
The initialization
is executed once
before the loop begins
The statement is
executed until the
condition becomes false
The increment portion is executed at
the end of each iteration
19. A for loop is functionally equivalent to the
following while loop structure:
initialization;
while ( condition ){
statement;
increment;
}
20. An example of a for loop:
for (int count=1; count <= 5; count++){
System.out.println (count);
}
• The initialization section can be used to declare a variable
• Like a while loop, the condition of a for loop is tested prior to
executing the loop body
• Therefore, the body of a for loop will execute zero or more times
21. The increment section can perform any
calculation
• A for loop is well suited for executing statements a specific
number of times that can be calculated or determined in advance
for (int num=100; num > 0; num -= 5){
System.out.println (num);
}
22. Each expression in the header of a for loop is
optional
If the initialization is left out, no initialization is
performed
If the condition is left out, it is always considered
to be true, and therefore creates an infinite loop
◦ We usually call this a “forever loop”
If the increment is left out, no increment
operation is performed
23. Remember the break keyword that we used
to stop a switch statement from executing
more than one statement?
break can also be used to exit an infinite
loop
But it is almost always best to use a well-
written while loop