C++ functions require prototypes that specify the return type and parameters. Function overloading allows multiple functions to have the same name but different signatures. Default arguments allow functions to be called without providing trailing arguments. Inline functions expand the function body at the call site for small functions to reduce overhead compared to regular function calls.
Header files in C contain function declarations and macros that can be included in C programs using the #include preprocessor directive. Common header files like stdio.h provide input/output functions, conio.h provides console input/output functions, and math.h provides mathematics functions. Other header files provide functions for strings, date/time, memory allocation, and other general utilities. Header files allow code to be reused across programs and abstraction of platform-specific details.
This document discusses different types of functions in C programming. It defines library functions, user-defined functions, and the key elements of functions like prototypes, arguments, parameters, return values. It categorizes functions based on whether they have arguments and return values. The document also explains how functions are called, either by value where changes are not reflected back or by reference where the original values are changed.
Virtual functions allow functions to be overridden in derived classes. The virtual keyword before a function in the base class specifies that the function can be overridden. When a virtual function is called using a base class pointer, the version from the most derived class will be executed due to late binding. This allows runtime polymorphism where the function call is resolved based on the actual object type rather than the pointer variable type.
- A structure is a user-defined data type that groups logically related data items of different data types into a single unit. Structures allow related data to be accessed and managed together.
- Structures can contain nested structures as members. Nested structure members are accessed using two period operators (e.g. e1.doj.day).
- Structures can be passed to functions as parameters and returned from functions. Pointers to structures are declared and accessed using arrow (->) operator instead of period operator.
- A union shares the same memory space for multiple data types, allocating only enough space for its largest member. Unions allow different types to share the same memory location.
User-defined functions allow programmers to break programs into smaller, reusable parts. There are two types of functions: built-in functions that are predefined in C like printf() and user-defined functions created by the programmer. A function is defined with a return type, name, and parameters. Functions can call other functions and be called from main or other functions. Parameters can be passed by value, where the value is copied, or by reference, where the address is passed so changes to the parameter are reflected in the caller. Functions allow for modularity and code reuse.
An operator is a symbol designed to operate on data.
They can be a single symbol, di-graphs, tri-graphs or keywords.
Operators can be classified in different ways.
This is similar to function overloading
The document discusses functions in C programming. It defines what functions are and their advantages, such as modularity, reusability and avoiding code repetition. It covers different types of functions based on arguments and return values. Additionally, it discusses function definitions, prototypes, scope, storage classes, recursion, call by value vs reference and examples of functions.
The document discusses call by value and call by reference in functions. Call by value passes the actual value of an argument to the formal parameter, so any changes made to the formal parameter do not affect the actual argument. Call by reference passes the address of the actual argument, so changes to the formal parameter do directly modify the actual argument. An example program demonstrates call by value, where changing the formal parameter does not change the original variable.
The document discusses functions in C programming. It defines a function as a self-contained block of code that performs a specific task. Functions make code more modular and reusable. There are two types of functions: standard/library functions and user-defined functions. Functions can take input parameters and return values. Functions are an essential part of program structure in C as they help organize code and logic.
INTRODUCTION
COMPARISON BETWEEN NORMAL FUNCTION AND INLINE FUNCTION
PROS AND CONS
WHY WHEN AND HOW TO USED?
GENERAL STRUCTURE OF INLINE FUNCTION
EXAMPLE WITH PROGRAM CODE
Functions - C Programming
What is a Function? A function is combined of a block of code that can be called or used anywhere in the program by calling the name. ...
Function arguments. Functions are able to accept input parameters in the form of variables. ...
Function return values
Functions allow code to be reused by defining formulas that can be called from different parts of a program. Functions take in inputs, perform operations, and return outputs. They are defined outside of the main body with a function prototype, and can be called multiple times from within main or other functions. This document demonstrates how to define a FindMax function that takes in two numbers, compares them, and returns the maximum number. It shows function prototypes, defining the function outside of main, and calling the function from within main to find the maximum of two user-input numbers.
This document provides an overview of object-oriented programming concepts using C++. It discusses key OOP concepts like objects, classes, encapsulation, inheritance, polymorphism, and dynamic binding. It also covers C++ specific topics like functions, arrays, strings, modular programming, and classes and objects in C++. The document is intended to introduce the reader to the fundamentals of OOP using C++.
The document discusses the basic structure of C programs. It explains that a C program contains functions that are organized into different sections, including a documentation section, link section, definition section, main function section, and optional subprogram section. It provides details on what each section is used for and example code to demonstrate the main components of a C program, including functions, variables, data types, and memory organization.
This document discusses templates in C++. Templates allow functions and classes to work with multiple data types without writing separate code for each type. There are two types of templates: class templates, which define a family of classes that operate on different data types, and function templates, which define a family of functions that can accept different data types as arguments. Examples of each template type are provided to demonstrate how they can be used to create reusable and flexible code.
This document discusses different types of functions in C programming. It defines standard library functions as built-in functions to handle tasks like I/O and math operations. User-defined functions are functions created by programmers. Functions can be defined to take arguments and return values. Functions allow dividing programs into modular and reusable pieces of code. Recursion is when a function calls itself within its own definition.
Here is a potential solution to the problem in C++:
#include <iostream>
using namespace std;
int main() {
int num1, num2, num3;
cout << "Enter three numbers: ";
cin >> num1 >> num2 >> num3;
int total = num1 + num2 + num3;
float average = total / 3.0;
cout << "The numbers entered were: " << num1 << ", " << num2 << ", " << num3 << endl;
cout << "Their average is: " << average;
return 0;
}
Some key points:
- Use cin to input the 3 numbers from the
Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. Destructor on the other hand is used to destroy the class object.
Types of C++ functions:
Standard functions
User-defined functions
C++ function structure
Function signature
Function body
Declaring and Implementing C++ functions
The document provides an introduction to algorithms and key concepts related to algorithms such as definition, features, examples, flowcharts, pseudocode. It also discusses different types of programming languages from first to fifth generation. Key points of structured programming approach and introduction to C programming language are explained including data types, variables, constants, input/output functions, operators, type conversion etc.
The document discusses C++ functions. It explains that functions allow code to be reused by grouping common operations into reusable blocks of code called functions. Functions have three parts: a prototype that declares the function, a definition that implements it, and calls that execute the function. Functions can take parameters as input and return a value. Grouping common code into well-named functions makes a program more organized and maintainable.
1. A string is a one-dimensional array of characters terminated by a null character. Strings can be initialized during compilation or at runtime.
2. Common string functions like scanf(), gets(), getchar() are used to input strings while printf(), puts(), putchar() are used to output strings.
3. Library functions like strcpy(), strcat(), strcmp(), strlen() allow manipulation of strings like copying, concatenation, comparison and finding length.
This document discusses function overloading, inline functions, and friend functions in C++. It defines function overloading as having two or more functions with the same name but different parameters, allowing for compile-time polymorphism. Inline functions have their body inserted at call sites for faster execution. Friend functions are non-member functions that have access to private members of a class. Examples are provided to demonstrate overloaded functions, inline functions checking for prime numbers, and using a friend function to check if a number is even or odd. Important concepts and questions for discussion are also outlined.
The document discusses C programming functions. It provides examples of defining, calling, and using functions to calculate factorials, Fibonacci sequences, HCF and LCM recursively and iteratively. Functions allow breaking programs into smaller, reusable blocks of code. They take in parameters, can return values, and have local scope. Function prototypes declare their interface so they can be called from other code locations.
The document discusses PN-junction diodes and their general applications. It begins by explaining that a diode is formed by placing a P-type and N-type semiconductor together, forming a PN junction. Electrons diffuse from the N to P side and holes diffuse from the P to N side, creating a depletion region. This process stops when an electric field is produced that opposes further diffusion. General applications of diodes include using them in half-wave and full-wave rectifier circuits to convert AC to DC, and filter circuits to remove AC components from the rectified output. Diodes also find use as LEDs, in transistors, and have many other applications like switching, amplifying and oscillating.
Friend functions and classes allow external code to access private members of a class. The document demonstrates declaring a function and class as friends of the Rectangle class to access its private length and width variables. This is done by specifying the function or class as friend within the class definition. This allows the friend function getCost() and class CostCalculator to multiply length and width to calculate the area or cost despite them being private members.
The document discusses functions in C programming. It defines what functions are and their advantages, such as modularity, reusability and avoiding code repetition. It covers different types of functions based on arguments and return values. Additionally, it discusses function definitions, prototypes, scope, storage classes, recursion, call by value vs reference and examples of functions.
The document discusses call by value and call by reference in functions. Call by value passes the actual value of an argument to the formal parameter, so any changes made to the formal parameter do not affect the actual argument. Call by reference passes the address of the actual argument, so changes to the formal parameter do directly modify the actual argument. An example program demonstrates call by value, where changing the formal parameter does not change the original variable.
The document discusses functions in C programming. It defines a function as a self-contained block of code that performs a specific task. Functions make code more modular and reusable. There are two types of functions: standard/library functions and user-defined functions. Functions can take input parameters and return values. Functions are an essential part of program structure in C as they help organize code and logic.
INTRODUCTION
COMPARISON BETWEEN NORMAL FUNCTION AND INLINE FUNCTION
PROS AND CONS
WHY WHEN AND HOW TO USED?
GENERAL STRUCTURE OF INLINE FUNCTION
EXAMPLE WITH PROGRAM CODE
Functions - C Programming
What is a Function? A function is combined of a block of code that can be called or used anywhere in the program by calling the name. ...
Function arguments. Functions are able to accept input parameters in the form of variables. ...
Function return values
Functions allow code to be reused by defining formulas that can be called from different parts of a program. Functions take in inputs, perform operations, and return outputs. They are defined outside of the main body with a function prototype, and can be called multiple times from within main or other functions. This document demonstrates how to define a FindMax function that takes in two numbers, compares them, and returns the maximum number. It shows function prototypes, defining the function outside of main, and calling the function from within main to find the maximum of two user-input numbers.
This document provides an overview of object-oriented programming concepts using C++. It discusses key OOP concepts like objects, classes, encapsulation, inheritance, polymorphism, and dynamic binding. It also covers C++ specific topics like functions, arrays, strings, modular programming, and classes and objects in C++. The document is intended to introduce the reader to the fundamentals of OOP using C++.
The document discusses the basic structure of C programs. It explains that a C program contains functions that are organized into different sections, including a documentation section, link section, definition section, main function section, and optional subprogram section. It provides details on what each section is used for and example code to demonstrate the main components of a C program, including functions, variables, data types, and memory organization.
This document discusses templates in C++. Templates allow functions and classes to work with multiple data types without writing separate code for each type. There are two types of templates: class templates, which define a family of classes that operate on different data types, and function templates, which define a family of functions that can accept different data types as arguments. Examples of each template type are provided to demonstrate how they can be used to create reusable and flexible code.
This document discusses different types of functions in C programming. It defines standard library functions as built-in functions to handle tasks like I/O and math operations. User-defined functions are functions created by programmers. Functions can be defined to take arguments and return values. Functions allow dividing programs into modular and reusable pieces of code. Recursion is when a function calls itself within its own definition.
Here is a potential solution to the problem in C++:
#include <iostream>
using namespace std;
int main() {
int num1, num2, num3;
cout << "Enter three numbers: ";
cin >> num1 >> num2 >> num3;
int total = num1 + num2 + num3;
float average = total / 3.0;
cout << "The numbers entered were: " << num1 << ", " << num2 << ", " << num3 << endl;
cout << "Their average is: " << average;
return 0;
}
Some key points:
- Use cin to input the 3 numbers from the
Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. Destructor on the other hand is used to destroy the class object.
Types of C++ functions:
Standard functions
User-defined functions
C++ function structure
Function signature
Function body
Declaring and Implementing C++ functions
The document provides an introduction to algorithms and key concepts related to algorithms such as definition, features, examples, flowcharts, pseudocode. It also discusses different types of programming languages from first to fifth generation. Key points of structured programming approach and introduction to C programming language are explained including data types, variables, constants, input/output functions, operators, type conversion etc.
The document discusses C++ functions. It explains that functions allow code to be reused by grouping common operations into reusable blocks of code called functions. Functions have three parts: a prototype that declares the function, a definition that implements it, and calls that execute the function. Functions can take parameters as input and return a value. Grouping common code into well-named functions makes a program more organized and maintainable.
1. A string is a one-dimensional array of characters terminated by a null character. Strings can be initialized during compilation or at runtime.
2. Common string functions like scanf(), gets(), getchar() are used to input strings while printf(), puts(), putchar() are used to output strings.
3. Library functions like strcpy(), strcat(), strcmp(), strlen() allow manipulation of strings like copying, concatenation, comparison and finding length.
This document discusses function overloading, inline functions, and friend functions in C++. It defines function overloading as having two or more functions with the same name but different parameters, allowing for compile-time polymorphism. Inline functions have their body inserted at call sites for faster execution. Friend functions are non-member functions that have access to private members of a class. Examples are provided to demonstrate overloaded functions, inline functions checking for prime numbers, and using a friend function to check if a number is even or odd. Important concepts and questions for discussion are also outlined.
The document discusses C programming functions. It provides examples of defining, calling, and using functions to calculate factorials, Fibonacci sequences, HCF and LCM recursively and iteratively. Functions allow breaking programs into smaller, reusable blocks of code. They take in parameters, can return values, and have local scope. Function prototypes declare their interface so they can be called from other code locations.
The document discusses PN-junction diodes and their general applications. It begins by explaining that a diode is formed by placing a P-type and N-type semiconductor together, forming a PN junction. Electrons diffuse from the N to P side and holes diffuse from the P to N side, creating a depletion region. This process stops when an electric field is produced that opposes further diffusion. General applications of diodes include using them in half-wave and full-wave rectifier circuits to convert AC to DC, and filter circuits to remove AC components from the rectified output. Diodes also find use as LEDs, in transistors, and have many other applications like switching, amplifying and oscillating.
Friend functions and classes allow external code to access private members of a class. The document demonstrates declaring a function and class as friends of the Rectangle class to access its private length and width variables. This is done by specifying the function or class as friend within the class definition. This allows the friend function getCost() and class CostCalculator to multiply length and width to calculate the area or cost despite them being private members.
Electrical earthing and safety is important to protect people and equipment from high voltages and electrical accidents. Earthing is the process of connecting metallic electrical systems to the earth through wires to divert high voltages safely to the ground. There are two types of grounding: electrical circuit grounding, which protects circuits from lightning by grounding one conductor; and equipment grounding, which grounds all metal frames and enclosures. A good earthing system must have low resistance, resist corrosion, and dissipate high fault currents without damage. Untreated electric shocks as low as 3 milliamps can cause accidents, while over 50 milliamps can cause heart fibrillation. Proper earthing and grounding is vital for electrical safety
Simplifies and normal forms - Theory of ComputationNikhil Pandit
1) The document discusses simplifying context-free grammars (CFGs) and putting them into normal form.
2) It describes eliminating null productions, unit productions, and useless productions to simplify CFGs.
3) It then explains Greibach normal form, where all productions are of the form A→αX, with A a nonterminal, α a terminal, and X a string of nonterminals. An algorithm is provided to convert CFGs to Greibach normal form.
The document discusses different types of functions in C++ including:
1) Main functions are mandatory while other programs define additional functions. Functions are declared with a return type, name, and parameters.
2) Functions are defined with a syntax including the return type, name, parameters, and body. Functions can be called within other functions or the main function by passing values.
3) Inline functions have their code placed at the call site at compile time to avoid function call overhead. They are defined using the inline keyword before the return type for small, single line functions.
4) Functions can have default arguments which are values provided in the declaration that are used if not passed to the function. They must
This document discusses software coding standards and guidelines. It explains that coding standards provide rules for writing consistent, robust code that is easily understood. Coding transforms a system design into code and tests the code. Standards help ensure maintainability, adding new features, clean coding, and fewer errors. The document provides examples of coding standards like limiting global variables and naming conventions. It also discusses code reviews to find logical errors and oversights, as well as the importance of documentation for requirements, architecture, code, manuals, and marketing.
The document defines and describes different types of arrays in C programming. It states that arrays can hold multiple values of the same data type and are used to store data in linear or tabular form. The key types discussed are one-dimensional, two-dimensional, and multi-dimensional arrays. It provides examples and explains how to declare, initialize, search and sort each array type.
Inheritance allows classes to inherit characteristics from other classes. There are three types of inheritance: public, protected, and private. Public inheritance makes base class members public or protected in the derived class. Protected inheritance makes base class members protected in the derived class. Private inheritance makes base class members private in the derived class. Polymorphism allows functions to have different implementations depending on the type of object that calls it. Virtual functions provide polymorphism by allowing derived classes to override base class function implementations through late binding.
This document discusses the chain rule for functions of multiple variables. It begins by reviewing the chain rule for single-variable functions, then extends it to functions of more variables. The chain rule is presented for cases where the dependent variable z is a function of intermediate variables x and y, which are themselves functions of independent variables s and t. General formulas are given using partial derivatives. Examples are worked out, such as finding the derivative of a function defined implicitly by an equation. Diagrams are used to illustrate the relationships between variables.
The document discusses friend functions and friend classes in C++. A friend function has access to all private and protected members of a class but must be called with an object passed as a parameter rather than through an object. A friend function violates data hiding and encapsulation. A friend class allows member functions of one class to access private members of another class, providing similar functionality to a friend function but through class members instead of standalone functions. Code snippets demonstrate declarations of friend functions and classes.
The document presents a presentation on the working of a four-stroke diesel engine. It defines an engine as a prime mover that converts fuel into mechanical energy. It classifies engines based on their stroke, fuel used, cylinder position, and ignition type. It then describes the basic parts of a diesel engine, including the cylinder block, piston, connecting rod, crankshaft, cylinder head, valves, camshaft, and spark plug. It proceeds to explain the four strokes of the diesel engine cycle - intake, compression, power, and exhaust strokes. It concludes by noting advantages of diesel engines such as better fuel economy, lower fuel costs, and higher reliability compared to gasoline engines.
This document discusses counterfort retaining walls. It defines a retaining wall and lists common types, focusing on counterfort retaining walls. It describes the components and mechanics of counterfort walls, noting they are more economical than cantilever walls for heights over 6 meters. The document also covers forces acting on retaining walls, methods for calculating active and passive earth pressures, and stability conditions walls must satisfy including factors of safety against overturning and sliding and limiting maximum pressure at the base.
1) The document discusses different types of micro-operations including arithmetic, logic, shift, and register transfer micro-operations.
2) It provides examples of common arithmetic operations like addition, subtraction, increment, and decrement. It also describes logic operations like AND, OR, XOR, and complement.
3) Shift micro-operations include logical shifts, circular shifts, and arithmetic shifts which affect the serial input differently.
This document discusses register transfer language and micro-operations. It describes how registers store information and how register transfer language is used to define the transfer of data between registers using micro-operations like shift, clear and load. It also discusses how bus systems, memory transfers, and arithmetic logic shift units are used to perform these micro-operations and transfer data.
Friend functions and classes allow non-member functions or other classes to access the private and protected members of a class. A friend function is defined outside the class but has access to private members, and can be used when two classes need to access each other's private data. A class can declare another class as a friend, making all of its member functions friends. This allows them access to the private members of the other class. Friendship violates encapsulation but is useful when two classes are tightly coupled.
The document introduces different types of functions in C++ including user-defined internal and external functions, and describes how to define functions with parameters and return types, declare function prototypes, and call functions from within a main program or from other functions. It provides examples of functions that calculate the absolute value of a number, add up hours, minutes and seconds, print a diamond pattern, and calculate the area of a circle.
Functions allow programmers to divide complex problems into smaller subproblems by defining reusable blocks of code (functions) to solve specific subtasks. Functions make programs easier to understand and maintain by separating implementation from concept. In C++, functions are defined with a return type, name, parameters, and body. Functions can be called to reuse their code from other parts of a program like the main function. Function prototypes declare the interface while definitions implement the body.
This document provides an introduction to functions in C++. It discusses how functions allow complex problems to be broken down into smaller parts, making the code more modular and reusable. The key aspects of functions covered include: defining functions with a return type and parameters, calling functions by passing arguments, using function prototypes to declare the interface, and placing function definitions in the code. Examples are provided of functions to calculate the absolute value of a number and total seconds from hours, minutes and seconds.
The document discusses functions in C++. It defines a function as a block of code that performs a specific task. There are two types of functions: built-in functions provided by the language and user-defined functions created by the programmer. The components of a function include the function header, body, parameters, return type, local variables, and return statement. Functions can pass arguments either by value or by reference. The document provides examples of built-in and user-defined functions as well as examples demonstrating call by value and call by reference.
The document discusses functions in C programming. It defines functions and explains their various parts like declaration, definition, and invocation. It also differentiates between function declaration and definition. Various types of functions are classified based on their inputs and outputs. The key differences between call by value and call by reference are explained with examples. Advantages of pass by reference are also mentioned.
Function in c language(defination and declaration)VC Infotech
This document discusses functions in C language. It defines functions as blocks of code that perform specific tasks. Functions can be either user-defined or library functions. There are three steps to creating a user-defined function: declaration, definition, and call. The declaration specifies the return type and parameters. The definition defines the body of the function. Functions allow code reusability and divide programs into smaller, simpler tasks to make them easier to read, update, and handle errors.
Functions allow programmers to break programs into smaller, more manageable units called functions to make programs more modular and easier to write and debug; functions contain elements like a function prototype, parameters, definition, and body; and there are different types of functions like user-defined functions, library functions, and categories of functions based on whether they have arguments or return values.
1. Functions allow programmers to break programs into smaller, self-contained subprograms, making code more modular and reusable.
2. There are four types of functions: those with no arguments and no return value, no arguments but a return value, arguments but no return value, and arguments with a return value.
3. Functions can be user-defined or library functions provided in standard libraries that perform common tasks like input/output and mathematics. Functions must be declared, defined, and called properly in a program.
1) A function is a block of code that performs a specific task. Functions increase code reusability and improve readability.
2) There are two types of functions - predefined library functions and user-defined functions. User-defined functions are customized functions created by the user.
3) The main() function is where program execution begins. It can call other functions, which may themselves call additional functions. This creates a hierarchical relationship between calling and called functions.
Programming Fundamentals Functions in C and typesimtiazalijoono
Programming Fundamentals
Functions in C
Lecture Outline
• Functions
• Function declaration
• Function call
• Function definition
– Passing arguments to function
1) Passing constants
2) Passing variables
– Pass by value
– Returning values from functions
• Preprocessor directives
• Local and external variables
This document discusses functions in C programming. It defines functions as self-contained blocks of code that perform particular tasks. There are two types of functions: builtin/library functions like printf and scanf, and user-defined functions. User-defined functions are defined by the programmer to avoid code repetition and enable code reusability. The implementation of user-defined functions involves a function declaration, definition, and call. Examples are provided to demonstrate function declarations, definitions, and calls.
This document discusses C functions. It defines a function as a block of code that performs a specific task. Functions allow for modular programming by subdividing programs into separate, reusable modules. The key elements of a function are its declaration, which informs the compiler about the function name, parameters, and return type; its definition, which contains the function body; and its call, which transfers program control to the function. Parameters act as placeholders for the arguments passed during a function call. Using functions improves code readability, reusability, testability and maintenance. Standard and user-defined functions are described along with examples.
Functions are blocks of code that perform specific tasks. There are two types of functions: predefined/library functions provided by C, and user-defined functions created by the programmer. Functions make programs more modular and reusable. A function definition includes the function header with its name, parameters, and return type. The function body contains the code to execute. Functions are called by their name and actual parameters are passed in. Parameters in the function header are formal parameters that receive the passed in values. Functions can return values to the calling code.
1. Functions allow programmers to break complex problems into smaller, discrete tasks, making code more modular and reusable. Functions perform specific tasks and can optionally return values or receive parameters.
2. There are two types of functions - predefined functions from standard libraries like stdio.h and math.h, and user-defined functions created for specialized tasks. Functions have a name, parameters, return type, and body.
3. Functions improve code organization and readability. They separate implementation from interface and allow code reuse. Parameters can be passed by value, where copies are used, or by reference, where the function can modify the original arguments.
Value Stream Mapping Worskshops for Intelligent Continuous SecurityMarc Hornbeek
This presentation provides detailed guidance and tools for conducting Current State and Future State Value Stream Mapping workshops for Intelligent Continuous Security.
Concept of Problem Solving, Introduction to Algorithms, Characteristics of Algorithms, Introduction to Data Structure, Data Structure Classification (Linear and Non-linear, Static and Dynamic, Persistent and Ephemeral data structures), Time complexity and Space complexity, Asymptotic Notation - The Big-O, Omega and Theta notation, Algorithmic upper bounds, lower bounds, Best, Worst and Average case analysis of an Algorithm, Abstract Data Types (ADT)
its all about Artificial Intelligence(Ai) and Machine Learning and not on advanced level you can study before the exam or can check for some information on Ai for project
Passenger car unit (PCU) of a vehicle type depends on vehicular characteristics, stream characteristics, roadway characteristics, environmental factors, climate conditions and control conditions. Keeping in view various factors affecting PCU, a model was developed taking a volume to capacity ratio and percentage share of particular vehicle type as independent parameters. A microscopic traffic simulation model VISSIM has been used in present study for generating traffic flow data which some time very difficult to obtain from field survey. A comparison study was carried out with the purpose of verifying when the adaptive neuro-fuzzy inference system (ANFIS), artificial neural network (ANN) and multiple linear regression (MLR) models are appropriate for prediction of PCUs of different vehicle types. From the results observed that ANFIS model estimates were closer to the corresponding simulated PCU values compared to MLR and ANN models. It is concluded that the ANFIS model showed greater potential in predicting PCUs from v/c ratio and proportional share for all type of vehicles whereas MLR and ANN models did not perform well.
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxRishavKumar530754
LiDAR-Based System for Autonomous Cars
Autonomous Driving with LiDAR Tech
LiDAR Integration in Self-Driving Cars
Self-Driving Vehicles Using LiDAR
LiDAR Mapping for Driverless Cars
Analysis of reinforced concrete deep beam is based on simplified approximate method due to the complexity of the exact analysis. The complexity is due to a number of parameters affecting its response. To evaluate some of this parameters, finite element study of the structural behavior of the reinforced self-compacting concrete deep beam was carried out using Abaqus finite element modeling tool. The model was validated against experimental data from the literature. The parametric effects of varied concrete compressive strength, vertical web reinforcement ratio and horizontal web reinforcement ratio on the beam were tested on eight (8) different specimens under four points loads. The results of the validation work showed good agreement with the experimental studies. The parametric study revealed that the concrete compressive strength most significantly influenced the specimens’ response with the average of 41.1% and 49 % increment in the diagonal cracking and ultimate load respectively due to doubling of concrete compressive strength. Although the increase in horizontal web reinforcement ratio from 0.31 % to 0.63 % lead to average of 6.24 % increment on the diagonal cracking load, it does not influence the ultimate strength and the load-deflection response of the beams. Similar variation in vertical web reinforcement ratio leads to an average of 2.4 % and 15 % increment in cracking and ultimate load respectively with no appreciable effect on the load-deflection response.
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...Infopitaara
A feed water heater is a device used in power plants to preheat water before it enters the boiler. It plays a critical role in improving the overall efficiency of the power generation process, especially in thermal power plants.
🔧 Function of a Feed Water Heater:
It uses steam extracted from the turbine to preheat the feed water.
This reduces the fuel required to convert water into steam in the boiler.
It supports Regenerative Rankine Cycle, increasing plant efficiency.
🔍 Types of Feed Water Heaters:
Open Feed Water Heater (Direct Contact)
Steam and water come into direct contact.
Mixing occurs, and heat is transferred directly.
Common in low-pressure stages.
Closed Feed Water Heater (Surface Type)
Steam and water are separated by tubes.
Heat is transferred through tube walls.
Common in high-pressure systems.
⚙️ Advantages:
Improves thermal efficiency.
Reduces fuel consumption.
Lowers thermal stress on boiler components.
Minimizes corrosion by removing dissolved gases.
Sorting Order and Stability in Sorting.
Concept of Internal and External Sorting.
Bubble Sort,
Insertion Sort,
Selection Sort,
Quick Sort and
Merge Sort,
Radix Sort, and
Shell Sort,
External Sorting, Time complexity analysis of Sorting Algorithms.
2. Introduction to Functions
A complex problem is often easier to solve
by dividing it into several smaller parts,
each of which can be solved by itself.
This is called structured programming.
These parts are sometimes made into
functions in C++.
main() then uses these functions to
solve the original problem.
3. Advantages of Functions
Functions separate the concept (what is
done) from the implementation (how it is
done).
Functions make programs easier to
understand.
Functions can be called several times in
the same program, allowing the code to be
reused.
4. C++ Functions
C++ allows the use of both internal (user-
defined) and external functions.
External functions (e.g., abs, ceil, rand,
sqrt, etc.) are usually grouped into
specialized libraries (e.g., iostream,
stdlib, math, etc.)
5. User-Defined Functions
C++ programs usually have the following form:
// include statements
// function prototypes
// main() function
// function definitions
7. Function Definition
A function definition has the following syntax:
<type> <function name>(<parameter list>){
<local declarations>
<sequence of statements>
}
For example: Definition of a function that computes the
absolute value of an integer:
int absolute(int x){
if (x >= 0) return x;
else return -x;
}
8. Function Call
A function call has the following syntax:
<function name>(<argument list>)
Example: int distance = absolute(-5);
The result of a function call is a value of type
<type>
9. Function Definition
The function definition can be placed anywhere
in the program after the function prototypes.
If a function definition is placed in front of
main(), there is no need to include its function
prototype.
10. Function of three parameters
#include <iostream>
using namespace std;
double total_second(int, double ,double );
int main()
{
cout << total_second(1,1.5, 2) << endl;
return 0;
}
double total_second( int hour, double minutes,
double second)
{
return hour*3600 + minutes * 60 + second;
}
12. #include<iostream.h>
#include<conio.h>
const float pi=3.14;
float area(float r) // This is the function for calculating area
{
float ar;
ar=pi*r*r;
return ar;
}
void main()
{
float r,result;
clrscr();
cout<<“nEnter the Radius of Circle: n”;
cin>>r;
result=area(r); // Function call
cout<<“nArea of Circle: “<<result<<endl;
getch();
}