This document discusses looping structures in algorithms and programming. It defines looping as repeating statements to fulfill a looping condition. The main types of looping structures are for, while, and repeat loops. Examples are given in pseudocode and Pascal to illustrate for loops that count ascending and descending, while loops, and repeat loops. Exercises are provided to practice different types of loops.
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Adam Mukharil Bachtiar
This file contains explanation about introduction of dev pascal, data type, value, and identifier. This file was used in my Algorithm and Programming Class.
Complete Information till 2D arrays. In this slides you can also find information about loops and control decision....
Best slides for beginners who wants to learn about C programming language..
Latest C Interview Questions and AnswersDaisyWatson5
3. What is a register variable?
Register variables are stored in the CPU registers. Its default value is a garbage value. Scope of a register variable is local to the block in which it is defined. Lifetime is till control remains within the block in which the register variable is defined. Variable stored in a CPU register can always be accessed faster than the one that is stored in memory. Therefore, if a variable is used at many places in a program, it is better to declare its storage class as register
Example: register int x=5;
Variables for loop counters can be declared as register. Note that register keyword may be ignored by some compilers.
4. Where is an auto variables stored?
Main memory and CPU registers are the two memory locations where auto variables are stored. Auto variables are defined under automatic storage class. They are stored in main memory. Memory is allocated to an automatic variable when the block which contains it is called and it is de-allocated at the completion of its block
execution.
Auto variables:
Storage
:
main memory.
Default value
:
garbage value.
Scope
:
local to the block in which the variable is defined.
Lifetime
:
till the control remains within the block in which the variable is defined.
5. What is scope & storage allocation of extern and global variables?
Extern variables: belong to the External storage class and are stored in the main memory. extern is used when we have to refer a function or variable that is implemented in another file in the same project. The scope of the extern variables is Global.
This document discusses principles of clean code and software craftsmanship. It covers topics such as what constitutes clean code through examples of good and bad code. Other sections provide guidance on naming conventions, functions, comments, formatting, error handling, unit testing, and class design. The document emphasizes that code should be written to be readable, reusable, and maintainable.
VBScript provides two main types of conditional statements for controlling program flow: the If...Then statement and Select Case statement. The If...Then statement allows executing different blocks of code based on conditional checks, and can include ElseIf and Else clauses. The Select Case statement chooses between multiple blocks of code based on the value of an expression. VBScript also supports looping structures like For...Next, Do...Loop, and While...Wend to repeat blocks of code. These conditional and looping statements allow inserting verification points and error handling in scripts.
This document discusses different types of loops in C++ programming including for loops, while loops, do-while loops, and infinite loops. It provides examples of each loop type and explanations of how they work. It also covers switch-case statements, providing an example case statement that prints different outputs depending on the user's input number.
this slide is for to understand the conditions which are applied in C++ programming language. I hope u would understand better by viewing this presentation.
For loops allow code to be repeatedly executed until a condition is met. They include initialization, condition, and update statements. While and do-while loops also repeatedly execute code until a condition is met, but check the condition at the start or end of each iteration respectively. Loops are useful for tasks like adding numbers in a range or populating data structures to avoid repetitive code.
This page contains examples and source code on decision making in C programming (to choose a particular statement among many statements) and loops ( to perform repeated task ). To understand all the examples on this page, you should have knowledge of following topics:
if...else Statement
for Loop
while Loop
break and Continue Statement
switch...case
what are loop in general
what is loop in c language
uses of loop in c language
types of loop in c language
program of loop in c language
syantax of loop in c language
The document discusses storage classes in C programming which determine where a variable is stored in memory and the scope and lifetime of a variable. There are four main storage classes - automatic, external, static and register. Automatic variables are local to a block and vanish after the block ends. External variables can be accessed from other files. Static variables retain their value between function calls and last the lifetime of the program. Register variables are stored in CPU registers for faster access but there are limited registers.
This document provides information on PL/SQL programming language concepts including:
- PL/SQL allows defining logic using variables, conditional statements, loops, and object-oriented programming.
- Code is organized into blocks with declaration, executable, and exception sections.
- Variables can be declared and assigned values. Data types include numbers, strings, records, and collections.
- Conditional statements like IF-THEN-ELSE and CASE support different execution paths.
- Loops like simple, while, and for are used to iterate.
- Cursors access and process multiple database records in PL/SQL blocks.
The document discusses loop control statements in C++. It describes the three main types of loops - for, while, and do-while loops. It provides examples of how a for loop works, including the initialization, test, and update expressions that control the loop execution. It also gives a sample program to calculate the sum of the first n positive integers using a for loop.
Control structures in C++ allow programs to conditionally execute code or repeat code in loops. The if/else statement executes code based on a condition being true or false. A while loop repeats a statement as long as a condition is true. A do/while loop repeats a statement first, then checks a condition to repeat. A for loop initializes a counter, checks a condition, and increments the counter on each iteration while the condition is true. Break and continue can prematurely exit or skip iterations in loops.
The document discusses different types of variable scope in C programming:
1. Block scope - Variables declared within a code block using curly braces {} are only accessible within that block.
2. Function scope - Variables declared within a function are only accessible within that function.
3. Global scope - Variables declared outside of any block or function can be accessed from anywhere in the program file.
4. File scope - Variables can be declared with the static keyword to limit their scope to the current source code file. The static keyword also prevents local variables from being destroyed after the block or function ends.
C lecture 4 nested loops and jumping statements slideshareGagan Deep
Nested Loops and Jumping Statements(Loop Control Statements), Goto statement in C, Return Statement in C Exit statement in C, For Loops with Nested Loops, While Loop with Nested Loop, Do-While Loop with Nested Loops, Break Statement, Continue Statement : visit us at : www.rozyph.com
This document discusses storage classes in the C programming language. It begins with an introduction to the C language and its history. The main body of the document then covers the four primary storage classes in C - automatic, register, static, and external. For each class, it provides details on storage location, default initial value, scope, and lifetime. Examples are provided to illustrate the behavior and usage of variables for each storage class. The key differences between the four classes are summarized in a table at the end.
Iterative structures, also known as loops, repeat sections of code and are used for tasks like calculating multiple values, computing iterative results, printing tables of data, and processing large amounts of input or array data. The three types of loops in C++ are the while loop, do-while loop, and for loop, each with different test conditions to control the loop execution. Loops can also be nested within each other to perform multiple iterations or to loop through multi-dimensional data structures.
This document discusses different types of loops in C++ programming including for loops, while loops, do-while loops, and infinite loops. It provides examples of each loop type and explanations of how they work. It also covers switch-case statements, providing an example case statement that prints different outputs depending on the user's input number.
The original Creative JavaScript tutorial, covering loops in JavaScript. This tutorial is aimed at creative people with no programming experience who are interested to learn loops JavaScript.
The storage class determines where a variable is stored in memory (CPU registers or RAM) and its scope and lifetime. There are four storage classes in C: automatic, register, static, and external. Automatic variables are stored in memory, have block scope, and are reinitialized each time the block is entered. Register variables try to store in CPU registers for faster access but may be stored in memory. Static variables are also stored in memory but retain their value between function calls. External variables have global scope and lifetime across the entire program.
The document discusses storage classes in C which determine where a variable is stored in memory and how long it exists. There are four main storage classes: automatic, register, static, and external. Automatic is the default and variables exist for the duration of the block they are declared in. Register variables store in CPU registers but cannot be used with scanf. Static variables retain their value between function calls while existing in the block. External variables are global and visible throughout a program.
Algoritma dan flowchart memberikan panduan dasar untuk menyelesaikan masalah melalui serangkaian instruksi langkah demi langkah. Algoritma adalah inti ilmu komputer yang menjelaskan solusi masalah secara terstruktur dengan input, output, dan langkah-langkahnya. Flowchart digunakan untuk menggambarkan aliran algoritma menggunakan simbol-simbol khusus.
Pencarian Rute Terpendek Dengan Menggunakan Algoritma DjikstrakArinten Hidayat
Analisis rute terpendek antara kota Jakarta dan Bandung menggunakan algoritma Dijkstra dan aplikasi WinQSB. Algoritma Dijkstra menghasilkan rute sejauh 174 km melalui Cileunyi, Lembang, Sagalaherang, Purwakarta, Padalarang 2, Cikalong Wetan, Cikalong Kulon, Ciranjang, Cianjur, Sukabumi, Cicurug, Bogor, Citeureup, Cileungsi, Jonggol, Lemahabang, Bekasi, dan Cimahi dengan
Project Studi Kasus Toko Langganan Sistem Informasi AkuntansiRaysha md
Sistem Informasi Akuntansi (Revenue Cycle) yang mengangkat tema tentang proses penjualan pada toko perhiasan. terdapat analisa kelemahan serta dilengkapi diagram Docflow, Sysflow dan DFD
Leave comment untuk kemajuan saya :)
this slide is for to understand the conditions which are applied in C++ programming language. I hope u would understand better by viewing this presentation.
For loops allow code to be repeatedly executed until a condition is met. They include initialization, condition, and update statements. While and do-while loops also repeatedly execute code until a condition is met, but check the condition at the start or end of each iteration respectively. Loops are useful for tasks like adding numbers in a range or populating data structures to avoid repetitive code.
This page contains examples and source code on decision making in C programming (to choose a particular statement among many statements) and loops ( to perform repeated task ). To understand all the examples on this page, you should have knowledge of following topics:
if...else Statement
for Loop
while Loop
break and Continue Statement
switch...case
what are loop in general
what is loop in c language
uses of loop in c language
types of loop in c language
program of loop in c language
syantax of loop in c language
The document discusses storage classes in C programming which determine where a variable is stored in memory and the scope and lifetime of a variable. There are four main storage classes - automatic, external, static and register. Automatic variables are local to a block and vanish after the block ends. External variables can be accessed from other files. Static variables retain their value between function calls and last the lifetime of the program. Register variables are stored in CPU registers for faster access but there are limited registers.
This document provides information on PL/SQL programming language concepts including:
- PL/SQL allows defining logic using variables, conditional statements, loops, and object-oriented programming.
- Code is organized into blocks with declaration, executable, and exception sections.
- Variables can be declared and assigned values. Data types include numbers, strings, records, and collections.
- Conditional statements like IF-THEN-ELSE and CASE support different execution paths.
- Loops like simple, while, and for are used to iterate.
- Cursors access and process multiple database records in PL/SQL blocks.
The document discusses loop control statements in C++. It describes the three main types of loops - for, while, and do-while loops. It provides examples of how a for loop works, including the initialization, test, and update expressions that control the loop execution. It also gives a sample program to calculate the sum of the first n positive integers using a for loop.
Control structures in C++ allow programs to conditionally execute code or repeat code in loops. The if/else statement executes code based on a condition being true or false. A while loop repeats a statement as long as a condition is true. A do/while loop repeats a statement first, then checks a condition to repeat. A for loop initializes a counter, checks a condition, and increments the counter on each iteration while the condition is true. Break and continue can prematurely exit or skip iterations in loops.
The document discusses different types of variable scope in C programming:
1. Block scope - Variables declared within a code block using curly braces {} are only accessible within that block.
2. Function scope - Variables declared within a function are only accessible within that function.
3. Global scope - Variables declared outside of any block or function can be accessed from anywhere in the program file.
4. File scope - Variables can be declared with the static keyword to limit their scope to the current source code file. The static keyword also prevents local variables from being destroyed after the block or function ends.
C lecture 4 nested loops and jumping statements slideshareGagan Deep
Nested Loops and Jumping Statements(Loop Control Statements), Goto statement in C, Return Statement in C Exit statement in C, For Loops with Nested Loops, While Loop with Nested Loop, Do-While Loop with Nested Loops, Break Statement, Continue Statement : visit us at : www.rozyph.com
This document discusses storage classes in the C programming language. It begins with an introduction to the C language and its history. The main body of the document then covers the four primary storage classes in C - automatic, register, static, and external. For each class, it provides details on storage location, default initial value, scope, and lifetime. Examples are provided to illustrate the behavior and usage of variables for each storage class. The key differences between the four classes are summarized in a table at the end.
Iterative structures, also known as loops, repeat sections of code and are used for tasks like calculating multiple values, computing iterative results, printing tables of data, and processing large amounts of input or array data. The three types of loops in C++ are the while loop, do-while loop, and for loop, each with different test conditions to control the loop execution. Loops can also be nested within each other to perform multiple iterations or to loop through multi-dimensional data structures.
This document discusses different types of loops in C++ programming including for loops, while loops, do-while loops, and infinite loops. It provides examples of each loop type and explanations of how they work. It also covers switch-case statements, providing an example case statement that prints different outputs depending on the user's input number.
The original Creative JavaScript tutorial, covering loops in JavaScript. This tutorial is aimed at creative people with no programming experience who are interested to learn loops JavaScript.
The storage class determines where a variable is stored in memory (CPU registers or RAM) and its scope and lifetime. There are four storage classes in C: automatic, register, static, and external. Automatic variables are stored in memory, have block scope, and are reinitialized each time the block is entered. Register variables try to store in CPU registers for faster access but may be stored in memory. Static variables are also stored in memory but retain their value between function calls. External variables have global scope and lifetime across the entire program.
The document discusses storage classes in C which determine where a variable is stored in memory and how long it exists. There are four main storage classes: automatic, register, static, and external. Automatic is the default and variables exist for the duration of the block they are declared in. Register variables store in CPU registers but cannot be used with scanf. Static variables retain their value between function calls while existing in the block. External variables are global and visible throughout a program.
Algoritma dan flowchart memberikan panduan dasar untuk menyelesaikan masalah melalui serangkaian instruksi langkah demi langkah. Algoritma adalah inti ilmu komputer yang menjelaskan solusi masalah secara terstruktur dengan input, output, dan langkah-langkahnya. Flowchart digunakan untuk menggambarkan aliran algoritma menggunakan simbol-simbol khusus.
Pencarian Rute Terpendek Dengan Menggunakan Algoritma DjikstrakArinten Hidayat
Analisis rute terpendek antara kota Jakarta dan Bandung menggunakan algoritma Dijkstra dan aplikasi WinQSB. Algoritma Dijkstra menghasilkan rute sejauh 174 km melalui Cileunyi, Lembang, Sagalaherang, Purwakarta, Padalarang 2, Cikalong Wetan, Cikalong Kulon, Ciranjang, Cianjur, Sukabumi, Cicurug, Bogor, Citeureup, Cileungsi, Jonggol, Lemahabang, Bekasi, dan Cimahi dengan
Project Studi Kasus Toko Langganan Sistem Informasi AkuntansiRaysha md
Sistem Informasi Akuntansi (Revenue Cycle) yang mengangkat tema tentang proses penjualan pada toko perhiasan. terdapat analisa kelemahan serta dilengkapi diagram Docflow, Sysflow dan DFD
Leave comment untuk kemajuan saya :)
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAri Septiawan
Program menghitung tarif taksi berdasarkan jarak tempuh dengan menentukan tarif km pertama sebesar Rp. 2500 dan tarif km selanjutnya sebesar Rp. 1800. Jika jarak kurang dari 1 km, tarif tetap Rp. 2500.
Dokumen tersebut memberikan tips untuk membuat formatting kode program yang baik agar mudah dibaca dan dipahami. Terdapat dua jenis formatting, yaitu vertical dan horizontal formatting. Secara vertical, kode perlu diatur dengan memperhatikan konsep-konsep, jarak antar konsep, kerapatan kode yang berkaitan, dan letak deklarasi dan pemanggilan fungsi. Secara horizontal, perlu memperhatikan pemberian jarak, penyamaan baris, dan pengindentasian untuk membedakan struktur program.
Slide ini menjelaskan perihal penggunaan komentar yang baik dan buruk pada suatu kode program. Slide ini merupakan bahan ajar untuk mata kuliah Clean Code dan Design Pattern.
Dokumen tersebut memberikan tips-tips untuk membuat nama variabel, fungsi, kelas, dan paket yang baik dalam pembuatan kode program. Beberapa tips utama adalah menggunakan nama yang jelas maksudnya, hindari penggunaan encoding, gunakan kata benda untuk nama kelas dan verba untuk nama metode, serta tambahkan konteks yang bermakna.
Dokumen tersebut membahas tentang pengujian perangkat lunak, termasuk definisi pengujian perangkat lunak, tujuan pengujian, jenis pengujian seperti manual testing, automated testing, unit testing, integration testing, serta metode pengujian seperti white box testing dan black box testing.
Slide ini berisi penjelasan tentang Data Mining Klasifikasi. Di dalamnya ada tiga algoritma yang dibahas, yaitu: Naive Bayes, kNN, dan ID3 (Decision Tree).
Dokumen tersebut membahas algoritma program dinamis untuk menentukan lintasan terpendek antara dua simpul dalam sebuah graf. Metode yang digunakan adalah program dinamis mundur dimana permasalahan dibagi menjadi beberapa tahap dan dihitung secara mundur untuk menentukan nilai optimal pada setiap tahap. Hasil akhir adalah terdapat tiga lintasan terpendek dengan panjang 11 antara simpul 1 dan 10.
Teks tersebut membahas strategi algoritma Divide and Conquer untuk memecahkan masalah. Strategi ini membagi masalah menjadi submasalah kecil, memecahkan submasalah tersebut secara rekursif, lalu menggabungkan hasilnya untuk mendapatkan solusi masalah awal. Dua contoh masalah yang dijelaskan adalah mencari nilai maksimum dan minimum dalam tabel, serta mencari pasangan titik terdekat dalam himpunan titik.
Slide ini berisi penjelasan tentang teorema-teorema yang berlaku untuk notasi asimptotik beserta cara perhitungannya untuk kebutuhan waktu suatu algoritma.
AI and Deep Learning with NVIDIA TechnologiesSandeepKS52
Artificial intelligence and deep learning are transforming various fields by enabling machines to learn from data and make decisions. Understanding how to prepare data effectively is crucial, as it lays the foundation for training models that can recognize patterns and improve over time. Once models are trained, the focus shifts to deployment, where these intelligent systems are integrated into real-world applications, allowing them to perform tasks and provide insights based on new information. This exploration of AI encompasses the entire process from initial concepts to practical implementation, highlighting the importance of each stage in creating effective and reliable AI solutions.
Automating Map Production With FME and PythonSafe Software
People still love a good paper map, but every time a request lands on a GIS team’s desk, it takes time to create that perfect, individual map—even when you're ready and have projects prepped. Then come the inevitable changes and iterations that add even more time to the process. This presentation explores a solution for automating map production using FME and Python. FME handles the setup of variables, leveraging GIS reference layers and parameters to manage details like map orientation, label sizes, and layout elements. Python takes over to export PDF maps for each location and template size, uploading them monthly to ArcGIS Online. The result? Fresh, regularly updated maps, ready for anyone to grab anytime—saving you time, effort, and endless revisions while keeping users happy with up-to-date, accessible maps.
NTRODUCTION TO SOFTWARE TESTING
• Definition:
• Software testing is the process of evaluating and
verifying that a software application or system meets
specified requirements and functions correctly.
• Purpose:
• Identify defects and bugs in the software.
• Ensure the software meets quality standards.
• Validate that the software performs as intended in
various scenarios.
• Importance:
• Reduces risks associated with software failures.
• Improves user satisfaction and trust in the product.
• Enhances the overall reliability and performance of
the software
Invited Talk at RAISE 2025: Requirements engineering for AI-powered SoftwarE Workshop co-located with ICSE, the IEEE/ACM International Conference on Software Engineering.
Abstract: Foundation Models (FMs) have shown remarkable capabilities in various natural language tasks. However, their ability to accurately capture stakeholder requirements remains a significant challenge for using FMs for software development. This paper introduces a novel approach that leverages an FM-powered multi-agent system called AlignMind to address this issue. By having a cognitive architecture that enhances FMs with Theory-of-Mind capabilities, our approach considers the mental states and perspectives of software makers. This allows our solution to iteratively clarify the beliefs, desires, and intentions of stakeholders, translating these into a set of refined requirements and a corresponding actionable natural language workflow in the often-overlooked requirements refinement phase of software engineering, which is crucial after initial elicitation. Through a multifaceted evaluation covering 150 diverse use cases, we demonstrate that our approach can accurately capture the intents and requirements of stakeholders, articulating them as both specifications and a step-by-step plan of action. Our findings suggest that the potential for significant improvements in the software development process justifies these investments. Our work lays the groundwork for future innovation in building intent-first development environments, where software makers can seamlessly collaborate with AIs to create software that truly meets their needs.
Artificial Intelligence Applications Across IndustriesSandeepKS52
Artificial Intelligence is a rapidly growing field that influences many aspects of modern life, including transportation, healthcare, and finance. Understanding the basics of AI provides insight into how machines can learn and make decisions, which is essential for grasping its applications in various industries. In the automotive sector, AI enhances vehicle safety and efficiency through advanced technologies like self-driving systems and predictive maintenance. Similarly, in healthcare, AI plays a crucial role in diagnosing diseases and personalizing treatment plans, while in financial services, it helps in fraud detection and risk management. By exploring these themes, a clearer picture of AI's transformative impact on society emerges, highlighting both its potential benefits and challenges.
Integrating Survey123 and R&H Data Using FMESafe Software
West Virginia Department of Transportation (WVDOT) actively engages in several field data collection initiatives using Collector and Survey 123. A critical component for effective asset management and enhanced analytical capabilities is the integration of Geographic Information System (GIS) data with Linear Referencing System (LRS) data. Currently, RouteID and Measures are not captured in Survey 123. However, we can bridge this gap through FME Flow automation. When a survey is submitted through Survey 123 for ArcGIS Portal (10.8.1), it triggers FME Flow automation. This process uses a customized workbench that interacts with a modified version of Esri's Geometry to Measure API. The result is a JSON response that includes RouteID and Measures, which are then applied to the feature service record.
Who will create the languages of the future?Jordi Cabot
Will future languages be created by language engineers?
Can you "vibe" a DSL?
In this talk, we will explore the changing landscape of language engineering and discuss how Artificial Intelligence and low-code/no-code techniques can play a role in this future by helping in the definition, use, execution, and testing of new languages. Even empowering non-tech users to create their own language infrastructure. Maybe without them even realizing.
Integration Ignited Redefining Event-Driven Architecture at Wix - EventCentricNatan Silnitsky
At Wix, we revolutionized our platform by making integration events the backbone of our 4,000-microservice ecosystem. By abandoning traditional domain events for standardized Protobuf events through Kafka, we created a universal language powering our entire architecture.
We'll share how our "single-aggregate services" approach—where every CUD operation triggers semantic events—transformed scalability and extensibility, driving efficient event choreography, data lake ingestion, and search indexing.
We'll address our challenges: balancing consistency with modularity, managing event overhead, and solving consumer lag issues. Learn how event-based data prefetches dramatically improved performance while preserving the decoupling that makes our platform infinitely extensible.
Key Takeaways:
- How integration events enabled unprecedented scale and extensibility
- Practical strategies for event-based data prefetching that supercharge performance
- Solutions to common event-driven architecture challenges
- When to break conventional architectural rules for specific contexts
Have you upgraded your application from Qt 5 to Qt 6? If so, your QML modules might still be stuck in the old Qt 5 style—technically compatible, but far from optimal. Qt 6 introduces a modernized approach to QML modules that offers better integration with CMake, enhanced maintainability, and significant productivity gains.
In this webinar, we’ll walk you through the benefits of adopting Qt 6 style QML modules and show you how to make the transition. You'll learn how to leverage the new module system to reduce boilerplate, simplify builds, and modernize your application architecture. Whether you're planning a full migration or just exploring what's new, this session will help you get the most out of your move to Qt 6.
FME for Climate Data: Turning Big Data into Actionable InsightsSafe Software
Regional and local governments aim to provide essential services for stormwater management systems. However, rapid urbanization and the increasing impacts of climate change are putting growing pressure on these governments to identify stormwater needs and develop effective plans. To address these challenges, GHD developed an FME solution to process over 20 years of rainfall data from rain gauges and USGS radar datasets. This solution extracts, organizes, and analyzes Next Generation Weather Radar (NEXRAD) big data, validates it with other data sources, and produces Intensity Duration Frequency (IDF) curves and future climate projections tailored to local needs. This presentation will showcase how FME can be leveraged to manage big data and prioritize infrastructure investments.
Key AI Technologies Used by Indian Artificial Intelligence CompaniesMypcot Infotech
Indian tech firms are rapidly adopting advanced tools like machine learning, natural language processing, and computer vision to drive innovation. These key AI technologies enable smarter automation, data analysis, and decision-making. Leading developments are shaping the future of digital transformation among top artificial intelligence companies in India.
For more information please visit here https://www.mypcot.com/artificial-intelligence
Join the Denver Marketo User Group, Captello and Integrate as we dive into the best practices, tools, and strategies for maintaining robust, high-performing databases. From managing vendors and automating orchestrations to enriching data for better insights, this session will unpack the key elements that keep your data ecosystem running smoothly—and smartly.
We will hear from Steve Armenti, Twelfth, and Aaron Karpaty, Captello, and Frannie Danzinger, Integrate.
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...WSO2
Enterprises must deliver intelligent, cloud native applications quickly—without compromising governance or scalability. This session explores how an internal developer platform increases productivity via AI for code and accelerates AI-native app delivery via code for AI. Learn practical techniques for embedding AI in the software lifecycle, automating governance with AI agents, and applying a cell-based architecture for modularity and scalability. Real-world examples and proven patterns will illustrate how to simplify delivery, enhance developer productivity, and drive measurable outcomes.
Learn more: https://wso2.com/choreo
Revolutionize Your Insurance Workflow with Claims Management SoftwareInsurance Tech Services
Claims management software enhances efficiency, accuracy, and satisfaction by automating processes, reducing errors, and speeding up transparent claims handling—building trust and cutting costs. Explore More - https://www.damcogroup.com/insurance/claims-management-software
14 Years of Developing nCine - An Open Source 2D Game FrameworkAngelo Theodorou
A 14-year journey developing nCine, an open-source 2D game framework.
This talk covers its origins, the challenges of staying motivated over the long term, and the hurdles of open-sourcing a personal project while working in the game industry.
Along the way, it’s packed with juicy technical pills to whet the appetite of the most curious developers.
10. One Case Branching
Pascal Notation (if there are many statement):
if condition then
begin
statement 1;
statement 2;
end;
12. Example of One Case Branching (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
Algoritma Bilangan_Ganjil
{I.S: Diinputkan satu bilangan oleh user}
{F.S: Menampilkan statement apabila bilangannya ganjil}
Kamus:
bil:integer
Algoritma:
input(bil)
if bil mod 2 = 1 then
output(‘Bilangan ‘,bil,’ adalah bilangan ganjil’)
endif
13. Example of One Case Branching (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
program Bilangan_Ganjil;
uses crt;
var
bil:integer;
begin
write('Masukan sebuah bilangan bulat: ');
readln(bil);
if bil mod 2 = 1 then
writeln('Bilangan ',bil,' adalah bilangan ganjil');
writeln();
writeln('Ketik sembarang tombol untuk menutup...');
readkey();
end.
15. Two Cases Branching
Pascal Notation (if there’s only one statement):
if condition then
statement 1
else
statement 2;
16. Two Cases Branching
Pascal Notation (if there are many statement):
if condition then
begin
statement 1;
statement 2;
end
else
begin
statement 3;
statement 4;
end;
18. Example of Two Cases Branching (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Algoritma Bilangan_Genap_Ganjil
{I.S: Diinputkan satu bilangan oleh user}
{F.S: Menampilkan statement bilangan ganjil atau genap}
Kamus:
bil:integer
Algoritma:
input(bil)
if bil mod 2 = 1 then
output(‘Bilangan ‘,bil,’ adalah bilangan ganjil’)
else
output(‘Bilangan ‘,bil,’ adalah bilangan genap’)
endif
19. Example of Two Cases Branching (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
program Bilangan_Genap_ganjil;
uses crt;
var
bil:integer;
begin
write('Masukkan sebuah bilangan bulat: ');
readln(bil);
if bil mod 2 = 1 then
writeln('Bilangan ',bil,' adalah bilangan ganjil')
else
writeln('Bilangan ',bil,' adalah bilangan genap');
writeln();
writeln('Tekan sembarang tombol untuk menutup...');
readkey();
end.
20. Three/Many Cases Branching
Algorithm Notation:
if condition 1 then
statement 1
else
if condition 2 then
statement 2
else
if condition 3 then
statement 3
else
statement 4
endif
endif
endif
21. Three/Many Cases Branching
Pascal Notation (if there’s only one statement):
if condition 1 then
statement 1
else
if condition 2 then
statement 2
else
if condition 3 then
statement 3
else
statement 4;
22. Three/Many Cases Branching
Pascal Notation (if there are many statement):
if kondisi 1 then
begin
statement 1;
end
else
if kondisi 2 then
begin
statement 2;
end
else
if kondisi 3 then
begin
statement 3;
end
else
begin
statement 4;
end;
24. Example of Three/Many Cases Branching (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Algoritma Lampu_Lalu_Lintas
{I.S: Diinputkan satu warna lampu oleh user}
{F.S: Menampilkan statement sesuai warna lampu}
Kamus:
warna:string
Algoritma:
input(warna)
if warna = ‘MERAH’ then
output(‘Berhenti!’)
else
if warna = ‘KUNING’ then
output(‘Hati-Hati!’)
else
if warna = ‘HIJAU’ then
output(‘Jalan!’)
else
output(‘Warna salah!’)
endif
endif
endif
25. Example of Three/Many Cases Branching (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
program Lampu_Lalu_Lintas;
uses crt;
var
warna:string;
begin
write('Masukkan sembarang warna: ');
readln(warna);
warna:=upcase(warna); {membuat uppercase}
if warna='MERAH' then
writeln('Berhenti!')
else
if warna='KUNING' then
writeln('Hati-Hati!')
else
if warna='HIJAU' then
writeln('Jalan!')
else
writeln('Warna salah!');
writeln();
writeln('Tekan sembarang tombol untuk menutup...');
readkey();
end.
26. Many Conditions Branching
• There are several cases which was requested more
than one conditions.
• Problem solving:
Use AND : if all condition must be fulfilled
Use OR : if only one condition must be fulfilled.
28. Example of Many Conditions Branching (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Algoritma Huruf_Konsonan
{I.S: Diinputkan satu huruf oleh user}
{F.S: Menampilkan pesan huruf konsonan jika konsonan}
Kamus:
k:char
Algoritma:
input(k)
if (k≠’a’)and(k≠’i’)and(k≠’u’)and(k≠’e’)and(k≠’o’) then
output(‘Huruf ‘,k,’ adalah huruf konsonan’)
else
output(‘Huruf ‘,k,’ adalah huruf vokal’)
endif
29. Example of Many Conditions Branching (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
program Huruf_Konsonan;
uses crt;
var
k:char;
begin
write('Masukkan satu huruf: ');
readln(k);
k:=lowercase(k);
if (k<>'a')and(k<>'i')and(k<>'u')and(k<>'e')and(k<>'o') then
writeln('Huruf ',k,' adalah huruf konsonan')
else
writeln('Huruf ',k,' adalah huruf vokal');
writeln();
writeln('Tekan sembarang tombol untuk menutup...');
readkey();
end.
31. Case Structure
• Expression could be arithmetics or boolean.
• Expression was produce a constant.
• Value must be ordinal type (char, boolean, and
integer)
• Statement in otherwise will be executed if the other
value aren’t fulfilled.
32. Case Structure
Algorithm Notation:
case ekspresi
nilai 1 : statement 1
nilai 2 : statement 2
nilai 3 : statement 3
.
.
.
nilai n : statement n
otherwise : statement x
endcase
33. Case Structure
Pascal Notation:
case ekspresi of
nilai 1 : statement 1;
nilai 2 : statement 2;
nilai 3 : statement 3;
.
.
.
nilai n : statement n;
else statement x;
end;
35. Example of Case Structure (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Algoritma Ukuran_Baju
{I.S: Diinputkan satu huruf untuk ukuran baju oleh user}
{F.S: Menampilkan arti ukuran baju}
Kamus:
size:char
Algoritma:
input(size)
case size
‘S’:output(‘Kecil’);
‘M’:output(‘Sedang’);
‘L’:output(‘Besar’);
otherwise : output(‘Ukuran salah!’)
endcase
36. Example of Case Structure (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
program Ukuran_Baju;
uses crt;
var
size:char;
begin
write('Masukkan ukuran baju [S/M/L]: ');
readln(size);
size:=upcase(size);
case size of
'S':writeln('Kecil');
'M':writeln('Sedang');
'L':writeln('Besar');
else writeln('Ukuran salah!');
end;
writeln();
writeln('Tekan sembarang tombol untuk menutup...');
readkey();
end.