This document provides an introduction to computer programming and programming languages. It discusses what programming is, the history and evolution of programming languages from machine languages to higher-level languages. It describes assembly languages, third-generation languages like Java and C++, fourth-generation languages, and debates the existence of fifth-generation languages. The document also discusses Java in more detail, including its history, editions, features, environment, and common misconceptions. It provides an example of a simple "Hello World" Java program.
An Overview of eZee Burrp! (Philus Limited)Atit Patumvan
1) Philus Limited produces restaurant management software called eZee BurrP! which provides a point of sale system, digital menus, and customer feedback system to help restaurants improve operations and customer experience.
2) The software allows restaurants to manage reservations, inventory, sales reporting, payroll and integrate with third parties. It also provides digital menus for customers to view and order from tablets.
3) The customer feedback system allows restaurants to collect surveys and reviews from customers through various methods to build customer loyalty and engagement. It also manages multi-location restaurant chains from one system.
The document discusses using Internet of Things (IoT) technology for smart agriculture. It provides an overview of IoT and how devices can communicate over a network without human interaction. It then discusses how microcontrollers like Arduino can be used to interface with sensors and actuators to monitor and control the physical environment for applications like smart farming. The document provides examples of using sensors to collect environmental data and controlling devices like motors and lights through a microcontroller.
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตAtit Patumvan
This document contains an example practice set on sets. It includes questions to determine if elements are members of sets, to find the power set, subset, union, intersection and complement of various sets. Sets are defined using notation such as intervals of integers and set builder notation. Students are asked to write out the elements of sets resulting from operations on the given sets.
Media literacy provides a framework for accessing, analyzing, evaluating, and creating various messages from print to video to the internet. It builds an understanding of media's role in society and teaches important inquiry and self-expression skills for citizens of a democracy. Social media literacy involves having the proficiency to communicate appropriately and responsibly on social networks, and to critically evaluate online conversations. It includes skills like impression management, monitoring one's online reputation, thinking critically about content, having responsible conversations, managing one's social media presence, and managing information and technology.
The document discusses performance measures for total quality management. It outlines several objectives of establishing performance measures such as establishing baselines, determining process improvements needed, and comparing goals to actual performance. Several criteria for effective performance measures are listed, including being simple, relevant to customers, and enabling improvement. Examples of performance measures are provided for strategies involving quality, cost, flexibility, reliability, and innovation. Methods for presenting performance measures like time series graphs and control charts are also mentioned.
This document discusses principles of customer-supplier relationships in total quality management, including partnering, sourcing, supplier selection, supplier rating, and relationship development. The key points are that customers and suppliers should have long-term commitments based on trust and shared visions, methods for evaluating quality and supplier performance are important, and close collaboration through inspection, training, and team approaches helps develop strong relationships.
The document discusses various methods for continuous process improvement, including Juran's Trilogy, the DPSA cycle, Kaizen, and Six Sigma. It describes Juran's Trilogy as a systematic approach involving quality planning, control, and improvement. The DPSA cycle is a method for testing changes through planning, doing, studying, and acting on the results. Kaizen focuses on small, incremental changes to minimize waste and promote continuous improvement. Six Sigma provides a scientific, data-driven approach to process improvement and achieving significant financial results.
This document provides an introduction to Java EE (J2EE) including:
- An overview of the Model View Controller (MVC) design pattern and its core elements.
- A definition of Java EE as an open, standard platform for developing and deploying n-tier, web-enabled enterprise applications.
- An explanation of what comprises Java EE including specifications, implementations, compatibility testing, and more.
This document discusses various aspects of employee involvement in total quality management, including motivation, surveys, empowerment, teams, suggestion systems, and performance appraisal. It describes how understanding employee motivations and establishing clear goals can increase motivation. It also outlines different types of teams, characteristics of successful teams, and the stages of team development. Suggestion systems and performance appraisal are discussed as well.
The document discusses key aspects of customer satisfaction and quality management. It defines internal and external customers and explains how customer perception is influenced by factors like performance, features, service, price and reputation. The document also outlines methods for obtaining customer feedback, using customer complaints to improve, and translating customer needs into requirements. Customer retention is identified as an important goal.
The document discusses key aspects of leadership for Total Quality Management. It defines characteristics of quality leaders as emphasizing customers, prevention, collaboration and coaching. It also outlines the 7 Habits of Highly Effective People and Deming's philosophy. The roles of TQM leaders are described as ensuring decisions align with quality statements and participating in quality celebrations. The quality council duties include developing quality policies and plans.
Write native iPhone applications using Eclipse CDTAtit Patumvan
Learn how to use the Eclipse C Development Toolkit (CDT) to program native applications for the Apple iPhone, using open source tools to enable iPhone OS development on any Eclipse-supported platform.
By PJ Cabrera ([email protected])
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic BindingAtit Patumvan
This document discusses three key concepts in object-oriented programming: polymorphism, dynamic typing, and dynamic binding. Polymorphism allows objects from different classes to define methods with the same name. Dynamic typing determines an object's class at runtime. Dynamic binding determines which actual method to invoke for an object at runtime.
1) The document discusses object-oriented programming concepts like inheritance, subclasses, and superclasses. It shows how a subclass inherits properties and methods from its superclass.
2) Key concepts covered include defining subclasses that inherit from a root superclass like NSObject, subclasses gaining access to superclass properties and methods, and extending functionality by adding new methods in subclasses.
3) The document provides code examples to demonstrate simple inheritance where a subclass inherits and can access the instance variables and methods of its superclass.
The document discusses using Internet of Things (IoT) technology for smart agriculture. It provides an overview of IoT and how devices can communicate over a network without human interaction. It then discusses how microcontrollers like Arduino can be used to interface with sensors and actuators to monitor and control the physical environment for applications like smart farming. The document provides examples of using sensors to collect environmental data and controlling devices like motors and lights through a microcontroller.
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตAtit Patumvan
This document contains an example practice set on sets. It includes questions to determine if elements are members of sets, to find the power set, subset, union, intersection and complement of various sets. Sets are defined using notation such as intervals of integers and set builder notation. Students are asked to write out the elements of sets resulting from operations on the given sets.
Media literacy provides a framework for accessing, analyzing, evaluating, and creating various messages from print to video to the internet. It builds an understanding of media's role in society and teaches important inquiry and self-expression skills for citizens of a democracy. Social media literacy involves having the proficiency to communicate appropriately and responsibly on social networks, and to critically evaluate online conversations. It includes skills like impression management, monitoring one's online reputation, thinking critically about content, having responsible conversations, managing one's social media presence, and managing information and technology.
The document discusses performance measures for total quality management. It outlines several objectives of establishing performance measures such as establishing baselines, determining process improvements needed, and comparing goals to actual performance. Several criteria for effective performance measures are listed, including being simple, relevant to customers, and enabling improvement. Examples of performance measures are provided for strategies involving quality, cost, flexibility, reliability, and innovation. Methods for presenting performance measures like time series graphs and control charts are also mentioned.
This document discusses principles of customer-supplier relationships in total quality management, including partnering, sourcing, supplier selection, supplier rating, and relationship development. The key points are that customers and suppliers should have long-term commitments based on trust and shared visions, methods for evaluating quality and supplier performance are important, and close collaboration through inspection, training, and team approaches helps develop strong relationships.
The document discusses various methods for continuous process improvement, including Juran's Trilogy, the DPSA cycle, Kaizen, and Six Sigma. It describes Juran's Trilogy as a systematic approach involving quality planning, control, and improvement. The DPSA cycle is a method for testing changes through planning, doing, studying, and acting on the results. Kaizen focuses on small, incremental changes to minimize waste and promote continuous improvement. Six Sigma provides a scientific, data-driven approach to process improvement and achieving significant financial results.
This document provides an introduction to Java EE (J2EE) including:
- An overview of the Model View Controller (MVC) design pattern and its core elements.
- A definition of Java EE as an open, standard platform for developing and deploying n-tier, web-enabled enterprise applications.
- An explanation of what comprises Java EE including specifications, implementations, compatibility testing, and more.
This document discusses various aspects of employee involvement in total quality management, including motivation, surveys, empowerment, teams, suggestion systems, and performance appraisal. It describes how understanding employee motivations and establishing clear goals can increase motivation. It also outlines different types of teams, characteristics of successful teams, and the stages of team development. Suggestion systems and performance appraisal are discussed as well.
The document discusses key aspects of customer satisfaction and quality management. It defines internal and external customers and explains how customer perception is influenced by factors like performance, features, service, price and reputation. The document also outlines methods for obtaining customer feedback, using customer complaints to improve, and translating customer needs into requirements. Customer retention is identified as an important goal.
The document discusses key aspects of leadership for Total Quality Management. It defines characteristics of quality leaders as emphasizing customers, prevention, collaboration and coaching. It also outlines the 7 Habits of Highly Effective People and Deming's philosophy. The roles of TQM leaders are described as ensuring decisions align with quality statements and participating in quality celebrations. The quality council duties include developing quality policies and plans.
Write native iPhone applications using Eclipse CDTAtit Patumvan
Learn how to use the Eclipse C Development Toolkit (CDT) to program native applications for the Apple iPhone, using open source tools to enable iPhone OS development on any Eclipse-supported platform.
By PJ Cabrera ([email protected])
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic BindingAtit Patumvan
This document discusses three key concepts in object-oriented programming: polymorphism, dynamic typing, and dynamic binding. Polymorphism allows objects from different classes to define methods with the same name. Dynamic typing determines an object's class at runtime. Dynamic binding determines which actual method to invoke for an object at runtime.
1) The document discusses object-oriented programming concepts like inheritance, subclasses, and superclasses. It shows how a subclass inherits properties and methods from its superclass.
2) Key concepts covered include defining subclasses that inherit from a root superclass like NSObject, subclasses gaining access to superclass properties and methods, and extending functionality by adding new methods in subclasses.
3) The document provides code examples to demonstrate simple inheritance where a subclass inherits and can access the instance variables and methods of its superclass.
1. Computer Programming
Chapter 4 : Loops
Atit Patumvan
Faculty of Management and Information Sciences
Naresuna University
2. 2
Statements and Execution Flow
• ประโยค (statement) คือหน่วยของภาษาที่ใช้กําหนด การทํางาน
ของโปรแกรม
• ประกอบขึ้นจากลําดับของประโยค
• ผลลัพธ์ของโปรแกรมขึ้นอยู่กับความหมายและลําดับของประโยค
• ประโยคเป็นสิ่งที่ไม่อาจกูกเปลี่ยนแปลง ไม่สามารถเก็บค่า ไม่
สามารถนํามาเปรียบเทียบ
• ประโยคอาจประกอบขึ้นจากคําสั่งหรือการประมวลผลหลายคําสั่ง
• ผู้เขียนโปรแกรมต้องทราบลําดับก่อนหลังในการทํางานของ
ประโยค
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
3. 3
While Statement
• ประโยค while ใช้ในการควบคุมประโยคให้ถูกซ้ําจนกว่าเงื่อนไข
บางอย่างเป็นเท็จจึงจะหยุดดําเนินการ
while ( <boolean_expression>)
<statements>;
[ ! boolean_expression ]
[ boolean_expression ]
statements
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
4. 4
Factorial Number Calculator
01: import java.util.Scanner;
02:
03: public class WhileDemo {
04:
05: public static void main(String[] args) {
06: Scanner in = new Scanner(System.in);
07: int n = in.nextInt();
08: int i = 1, f = 1;
09: while (i++ < n) {
10: f *= i;
11: }
12: System.out.println(n + "! = " + f);
13: }
14: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
5. 5
Do Statement
• ประโยค do ใช้ในการควบคุมประโยคให้ถูกซ้ําจนกว่าเงื่อนไขบาง
อย่างเป็นเท็จจึงจะหยุดดําเนินการ
• คล้ายคลึงกับ ประโยค while แตกต่างที่การตรวจสอบเงือนไขการ
หยุดจะประมวลผลหลังการดําเนินการ
do {
<statements>;
}while ( <boolean_expression>); statements
[ boolean_expression ] [ ! boolean_expression ]
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
6. 6
Factorial Number Calculator
01: import java.util.Scanner;
02:
03: public class DoDemo {
04:
05: public static void main(String[] args) {
06: Scanner in = new Scanner(System.in);
07: int n = in.nextInt();
08: int i = 1, f = 1;
09: do {
10: f *= i;
11: } while (i++ < n);
12: System.out.println(n + "! = " + f);
13: }
14: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
7. 7
For Statement
• ประโยค for ใช้ในการควบคุมประโยคให้ถูกซ้ําที่มีตัวแปรนับรอบ
เรียกว่า index
• เหมาะกับการทําซ้ําที่รู้ว่าจะต้องทํากี่ครั้ง
for(<initial_exp>; <condition_exp>; <update_exp>)
<statements>;
statements
[ ! condition_exp ]
[ condition_exp ]
statements statements
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
8. 8
Factorial Number Calculator
01: import java.util.Scanner;
02:
03: public class ForDemo {
04:
05: public static void main(String[] args) {
06: Scanner in = new Scanner(System.in);
07: int n = in.nextInt();
08: int i, f = 1;
09: for (i = 1; i <= n; i++) {
10: f *= i;
11: }
12: System.out.println(n + "! = " + f);
13: }
14: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
9. 9
Variable Accessibility in For Loop
01: public class ForScope {
02:
03: public static void main(String[] args) {
04: int i = 1;
05: for (int j = 0; j < 10; j++) {
06: // both i and j are accessible here
07: }
08: // only i is accessible here
09: }
10: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
10. 10
Out of Condition in For Loop
01: public class ForOutCondition {
02:
03: public static void main(String[] args) {
04: for (double j = 0.0; j != 1.0; j += 0.1) {
05: System.out.println(j);
06: }
07: System.out.println("Stop");
08: }
09: }
01: public class ForOutCondition1 {
02:
03: public static void main(String[] args) {
04: for (int j = 1; j == 10; j += 2) {
05: System.out.println(j);
06: }
07: System.out.println("Stop");
08: }
09: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
11. 11
Infinity Loop
01: public class ForInfinityLoop {
02:
03: public static void main(String[] args) {
04: for (;;) {
05: System.out.println("Hello");
06: }
07: System.out.println("Stop");
08: }
09: }
01: public class WhileInfinityLoop {
02:
03: public static void main(String[] args) {
04: while (true) {
05: System.out.println("Hello");
06: }
07: System.out.println("Stop");
08: }
09: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
12. 12
Break Statement
• ใช้ในการสิ้นสุดการทํางานในคําสั่ง switch while do และ for
01: public class BreakDemo {
02:
03: public static void main(String[] args) {
04: for (int i = 1; i < 200; i++) {
05: System.out.println(i);
06: if (i == 3) {
07: break;
08: }
09: }
10: }
11: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University
13. 13
Continue Statement
• ใช้ในการสิ้นสุดการทํางานของในคําสั่ง while do และ for และให้
กลับไปเริ่มวงรอบอีกครั้ง
01: public class ContinueDemo {
02:
03: public static void main(String[] args) {
04: for (int i = 1; i < 20; i++) {
05: if ((i%2)==0) {
06: continue;
07: }
08: System.out.println(i);
09: }
10: }
11: }
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University