1. The agenda covers warm up activities, presentations on loops in C programming, videos on real-world applications, a game to simulate loops, practical work creating a small program in pairs using CodeBlocks, online self-learning on C programming, and a question and answer session.
2. Students will break into small groups to create a C program related to their capstone project, then discuss using loops in different programs for homework by creating an Office Mix video.
3. Resources include a video explaining for, while, and do-while loops and related links for further reading.
Why we do monitoring Wrong #osmc editionMichael Medin
A few examples of why the current Nagios(TM) based monitoring solutions are no longer good enough! Why we need a fundamental shift in monitoring and move away from the yes-no mentality of the Nagios(TM) clone decade...
Microbenchmarks are like a microscope. Magnification is high, but what the heck are you looking at? Like "truths, half-truths, and statistics", microbenchmarks can be very misleading. In this presentation, learn how to tell when a benchmark lies, recognize what a benchmark can really tell you and understand how some popular benchmarks are flawed.
This course provides a strong background about JAVA programming language in the field of computing. The course begins with an introductory overview of the Computer and programs, with distinguishes the terms API, IDE and JDK, and gives a comprehensive knowledge about Java development kits and Java integrative development environments like eclipse and NetBeans. Furthermore, the course prepares student to write, compile, run and develop Java applications which are used to find out the solution for several real life problems, in conjunction with using GUI to obtain input, process and display outputs like message dialog boxes, input dialog boxes, confirmation dialog and so on.
JAVA is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.
The aim of this course is to explore Java programming fundamentals related to write, compile, run and develop Java applications that are used to discover the solution for several real life problems.
The official learning outcome for this course is: Upon successful completion of the course the students:
• Must know the basic concepts related JAVA programming language.
• Must know how to write, compile, run and develop java applications.
A combination of lectures and practical sessions will be used in this course in order to achieve the aim of the course.
By MSc. Karwan Mustafa Kareem
Why we do monitoring Wrong #osmc editionMichael Medin
A few examples of why the current Nagios(TM) based monitoring solutions are no longer good enough! Why we need a fundamental shift in monitoring and move away from the yes-no mentality of the Nagios(TM) clone decade...
Microbenchmarks are like a microscope. Magnification is high, but what the heck are you looking at? Like "truths, half-truths, and statistics", microbenchmarks can be very misleading. In this presentation, learn how to tell when a benchmark lies, recognize what a benchmark can really tell you and understand how some popular benchmarks are flawed.
This course provides a strong background about JAVA programming language in the field of computing. The course begins with an introductory overview of the Computer and programs, with distinguishes the terms API, IDE and JDK, and gives a comprehensive knowledge about Java development kits and Java integrative development environments like eclipse and NetBeans. Furthermore, the course prepares student to write, compile, run and develop Java applications which are used to find out the solution for several real life problems, in conjunction with using GUI to obtain input, process and display outputs like message dialog boxes, input dialog boxes, confirmation dialog and so on.
JAVA is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.
The aim of this course is to explore Java programming fundamentals related to write, compile, run and develop Java applications that are used to discover the solution for several real life problems.
The official learning outcome for this course is: Upon successful completion of the course the students:
• Must know the basic concepts related JAVA programming language.
• Must know how to write, compile, run and develop java applications.
A combination of lectures and practical sessions will be used in this course in order to achieve the aim of the course.
By MSc. Karwan Mustafa Kareem
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.
In this lecture we will discuss about another flow control method – Loop control.
A loop control is used to execute a set of commands repeatedly
The set of commands is called the body of the loop
MATLAB has two loop control techniques
Counted loops - executes commands a specified number of times
Conditional loops - executes commands as long as a specified expression is true
In this chapter we will examine the loop programming constructs through which we can execute a code snippet repeatedly. We will discuss how to implement conditional repetitions (while and do-while loops) and how to work with for-loops. We will give examples of different possibilities to define loops, how to construct them and some of their key usages. Finally, we will discuss the foreach-loop construct and how we can use multiple loops placed inside each other (nested loops).
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.
In this lecture we will discuss about another flow control method – Loop control.
A loop control is used to execute a set of commands repeatedly
The set of commands is called the body of the loop
MATLAB has two loop control techniques
Counted loops - executes commands a specified number of times
Conditional loops - executes commands as long as a specified expression is true
In this chapter we will examine the loop programming constructs through which we can execute a code snippet repeatedly. We will discuss how to implement conditional repetitions (while and do-while loops) and how to work with for-loops. We will give examples of different possibilities to define loops, how to construct them and some of their key usages. Finally, we will discuss the foreach-loop construct and how we can use multiple loops placed inside each other (nested loops).
Programming intro variables constants - arithmetic and assignment operators
part 1 Python basics
https://youtu.be/ouTXjzL2qHc
part 2 Python Data Types , Variables and arithmetic Expressions
https://youtu.be/r6bxIqkSJ8w
part 3 Python Data Types
https://youtu.be/au_xwGULCQE
part 4 Python Variables
https://youtu.be/J_aUFaOGHWc
Part 5 Python Variables in Solutions of Quadratic equation
https://youtu.be/2Hn2qtz0Y5c
part 6 Python meaning of computer Language
https://youtu.be/0bDlELqfa9A
part 7 Python using NumPy to solve a system of linear scalar equations in matrix for Kirchhoff
https://youtu.be/gF2zueHAcy4
Part 8 Python integrating Quadratic equation
https://youtu.be/Gla2DZropIc
part 9 Python integrating and or differentiating polynomial functions in math
https://youtu.be/KGKF2mHnDOA
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
1. Agenda
1- Warm up Listen to this video about motivating
programmers 5 min
2- ppt teacher demonstrate about loops 20 min
3- Video about how we can use c programming in rea
life projects , automation and solving problems 3 min
4-Students play or act a game about simulating loops
10 min
5- practical work using lap tops through code blocks i
implement a small program work in pairs 10 min
6- use netacade.com to self learn C and get certificate
from CISCO 5 min
7- Questions and answers 20 min
8-Refelection 5 min
9- Home work
2. LO CS.2.02 - Design
programs involving
decision structures
and loops.
Lesson plan
3. Warm Up
Listen to this video
motivating programmers
Open Code blocks or
www.Jdoodle.com on
line
4. Essential Question
1- why we use computers ?
2- what are the tasks , jobs
which can be computerized ?
3- what are Repetitions or loops
4- Distinguish between
while and do while and for
loop
8. 8
Repetition Statements
• Repetition statements allow us to
execute a statement or a block of
statements multiple times
• Like conditional statements, they are
controlled by boolean expressions
• C has three kinds of repetition
statements:
while
Do while
for
9. Types of Loops
• Pretest - a logical condition is checked
before each repetition to determine if
the loop should terminate
–while loop
–for loop
• Posttest - a logical condition is
checked after each repetition for
termination
–do-while loop
10. PreTest vs. PostTest Loops
Pretest Loop
Condition
Action or
Actions
true
f alse
Posttest Loop
Condition
Action or
Actions
true
f alse
11. 11
The while Statement
• A while statement has the following syntax:
• 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
while ( condition )
statement;
12. Logic of a while Loop
statement
true false
condition
evaluated
5
13. 13
The while Statement
• An example of a while statement:
• 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
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
14. Trace while Loop
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
Initialize count
animation
7
15. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
(count < 2) is true
animation
8
16. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
Print Welcome to Java
animation
9
17. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
Increase count by 1
count is 1 now
animation
10
18. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
(count < 2) is still true since count
is 1
animation
11
19. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
Print Welcome to C programming
animation
12
20. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
Increase count by 1
count is 2 now
animation
13
21. Trace while Loop, cont.
int count = 0;
while (count < 2)
{
printf("Welcome to C programming!");
count++;
}
(count < 2) is false since count is 2
now
animation
14
22. Trace while Loop
int count = 0;
while (count < 2)
{
System.out.println("Welcome to Java!");
count++;
}
The loop exits. Execute the next
statement after the loop.
animation
15
23. Posttest Loop: Do-While
Syntax:
do {
statement(s)
} while (condition);
Corresponds to:
statement
if (!condition) DONE
statement
if (!condition) DONE
...
condition
statement(s)
true
f alse
24. Using the Do-While
do {
printf(“Enter id# and salary: “);
scanf(“%d %f”,&id,&salary);
printf(“You entered id#%1d and salary
$%.2f, Is this correct? (Y/N) “
,id,salary);
scanf(“ %c”,&ans);
} while (!((ans == ‘Y’) || (ans == ‘y’)));
• Loop always executes at least once
25. While vs Do-While
• Differences
–where condition tested:
• while (first) - may execute 0 times
• do-while (last) - must execute at least one
time
• Similarities
–one statement executed
–initialization before loop
–update during loop
26. Pretest Loop: For
• Initialization included in loop header
• Update included in loop header
• Header also includes update
• Syntax:
for ( init ; condition ; update )
statement;
• Generally for loops expected to
execute fixed number of times
(counter-controlled)
27. For Loop
• Syntax:
for ( init ;
condition ;
update )
statement;
• Init: assignments to
counter variables
• Update: changes to
counter variables
Condition
Statement
true
f alse
Init
Update
28. For Example
• Printing vertical line
of stars:
for (counter = 0;
counter < 5;
counter++)
printf(“*n”);
counter < 5
printf ("*n");
true
f alse
counter = 0;
counter++;
29. For Example - Sum of 1 to N
printf(“Number to sum to: “);
scanf(“%d”,&N);
total = 0;
for (I = 1; I <= N; I++)
total += I;
/* total is now 1 + 2 + … + N */
30. Are we ready to code it?
http://www.stemassiut.info prepared By Mr. Osama Ghandour
30
33. For Example - Max of N Scores
printf(“Number of students: “);
scanf(“%d”,&NumStudents);
for (I = 0; I < NumStudents; I++) {
printf(“Enter student score %d: “);
scanf(“%d”,&score);
if (score > max)
max = score;
}
/* max is highest score entered */
34. Listen to this video
about programming
Arduino
Off line
On line
35. Directions of Counting
for (I = 10; I >= 1; I--)
printf(“%d…n”,I);
printf(“0 BLASTOFF!n”);
printf(“Enter start, end, inc values: “);
scanf(“%d%d%d”,&lstart,&lend,&linc);
for (I = lstart;
((linc < 0) && (I < lend)) ||
((linc > 0) && (I > lend));
I += linc)
printf(“%dn”,I);
36. practical work using lap
tops through code blocks
in implement a C small
program work in pairs 20
min
40. Reflection
• What is your goal to accomplish in
next week End Using loops in C
programming Language ?
41.
42. students create in small
groups a c program
related to their capstone
project .
Home work
+ =
C program
Arduino
Arduino hardware
controller
components of irradiation
system
43. Home Work
Discuss how to use
Loops in coding
different programs
in a video by using
office mix. 43
44. Resources
• watch a video that explain different ways
for loops and read in the following links :
https://www.youtube.com/watch?v=Rtww8
3GH0BU
44