SCU SEEDs Workshop Angela Musurlian Lecturer Department of - - PowerPoint PPT Presentation

scu seeds workshop
SMART_READER_LITE
LIVE PREVIEW

SCU SEEDs Workshop Angela Musurlian Lecturer Department of - - PowerPoint PPT Presentation

SCU SEEDs Workshop Angela Musurlian Lecturer Department of Computer Engineering Santa Clara University amusurlian@scu.edu 1 This Talk Part I Computing Part II Computing at SCU Part III Todays activity PART I


slide-1
SLIDE 1

SCU SEEDs Workshop

Angela Musurlian

Lecturer Department of Computer Engineering Santa Clara University

1

amusurlian@scu.edu

slide-2
SLIDE 2

This Talk

  • Part I — Computing
  • Part II — Computing at SCU
  • Part III —Today’s activity
slide-3
SLIDE 3

PART I — COMPUTING

slide-4
SLIDE 4

What is Computing?

  • Analysis, design and development of

computer systems

  • It is not just about programming
  • It teaches you how to think more

methodically and how to solve problems more effectively

slide-5
SLIDE 5

Computing is everywhere!

slide-6
SLIDE 6

What is Computing?

  • Computing includes a variety of fields:

– Mathematics – Computer science – Computer engineering – Information science – Electrical engineering

slide-7
SLIDE 7

What is Computing?

  • What is a computer professional?

– Will I have to grow fuzzy hair?

  • What does s/he do?

– Will I have to sit in front of a computer all day?

  • What kind of people will I work with?

– Will I have to become a geek nerd?

slide-8
SLIDE 8

What is Computing?

  • FUN, COOL, and EXCITING

– Cutting edge projects – Exciting and talented people – All over the world, in every sector – Significant impact on society and our planet

slide-9
SLIDE 9

Why Study Computing?

  • Intellectually interesting

– Logical reasoning and mathematical thinking – Possible workings of the human mind

slide-10
SLIDE 10

Why Study Computing?

  • Computing supports and links to most other

areas of study

  • Computing and neuroscientists – the brain
  • Computing and Biologists – Genome
  • Computing and Meteorologists – weather prediction

– Future scientists require basic knowledge of Computing

slide-11
SLIDE 11

Why Study Computing?

  • Computing teaches problem solving
  • Decomposition, abstraction, modular design
  • Analysis and design are carefully reviewed
  • Always new methods being investigated
slide-12
SLIDE 12

Why Study Computing?

  • Computing builds teamwork and leadership

skills

– Plan, organize, control, lead complex projects – Learn to deal with mix of talents – Estimate and deal with risk

slide-13
SLIDE 13

Why Study Computing?

  • Computing develops life-long learning

skills … “Change is the only constant”

– Promotes learning to learn “if GM had kept up with the technology like the computer industry has, we would all be driving $25.00 cars that got 1,000 miles to the gallon” – Bill Gates – Exponential growth makes many predictions look foolish

slide-14
SLIDE 14
  • “I think there is a world market for maybe five

computers” -- Thomas J. Watson, founder and Chairman of IBM, 1943.

  • “Computers in the future may weigh no more

than 1.5 tons” -- Popular Science, 1949.

  • “640K ought to be enough for anybody” -- Bill

Gates, 1981.

False Predictions

slide-15
SLIDE 15

Future Applications

Transforming the nation’s defense Self-driving car Medical Imaging Internet of Things Personalized Healthcare

slide-16
SLIDE 16
  • Comp. Science & Engineering
  • Computer science

– Often more mathematical – Computability theory – Algorithmic complexity

  • Computer engineering

– Often more hardware-oriented – Image and signal processing – Computer graphics

slide-17
SLIDE 17

Career Opportunities

  • System architect
  • Network engineer
  • Computer architect
  • Software engineer
  • Security specialist
  • Game designer
  • Test engineer
  • Entrepreneur, musician, athlete, and more
slide-18
SLIDE 18

Degree Production vs. Job Openings

160,000 140,000 120,000 100,000 80,000 60,000 40,000 20,000 Engineering Physical Sciences Biological Sciences Computing Ph.D. Master’s Bachelor’s Projected job openings Adapted from a presentation by John Sargent, Senior Policy Analyst, Department of Commerce, at the CRA Computing Research Summit, http://www.cra.org/govaffairs/content.php?cid=22. Sources:

slide-19
SLIDE 19

Be Creative!

  • Computing is the only tech field in which you

can create a product from scratch and commercialize it independently

  • Computing is the only tech field in which you

can easily come up with your own personal solutions.

slide-20
SLIDE 20

PART II — COMPUTING AT SCU

slide-21
SLIDE 21

Computing Degrees at SCU

  • Undergraduate degrees

– Computer science and engineering (CSE) – Web design and engineering (WDE) – Mathematics and computer science

  • Graduate degrees

– Computer science and engineering – Software engineering

  • 5-year Master’s program
slide-22
SLIDE 22

Undergraduate CSE

  • Combination of computer science and

computer engineering

  • Focuses on theoretical and practical aspects of

computing

  • Design and construction of both hardware and

software systems

– Computer networks, operating systems, algorithms, compilers, software engineering, embedded programming, Web programming, robotics, 3D animation

slide-23
SLIDE 23

Undergraduate WDE

  • New major started in 2009

– One of the first such programs in the country

  • Combines computing with other disciplines:

– Graphic arts – Communication – Sociology

  • What will these specialized graduates do?

– Improve Web infrastructure – Develop interactive, multimedia content – Analyze the huge amount of information on the Web (Big data) – Understand the societal impact of the Web

slide-24
SLIDE 24

Coursework

Computer Science and Engineering Web Design and Engineering

Humanities and Social Sciences 25% Math and Sciences 25% Electives 9% Computer Science and Engineering 37% Electrical Engineering 4% Humanities and Social Sciences 26% Math and Sciences 12% Electives 14% Computer Science and Engineering 32% Studio Art, Communication, and Sociology 16%

slide-25
SLIDE 25

Where Will You Work?

  • Recent graduates went to work for:

– Cisco, Apple, Microsoft, IBM, Google, Facebook, Groupon, Amazon, Anritsu, F5 Networks – Starting salary range: $70K–$100K

  • Recent graduates also continued their

education:

– Ph.D program at Berkeley, UCSD, etc. – M.S. programs at SCU, CMU, Stanford, etc.

slide-26
SLIDE 26

PART III — TODAY’S ACTIVITY PROGRAMMING IN PHP

slide-27
SLIDE 27

What Is a Program?

  • Program

– A set of instructions that tells the computer what to do. – Used to solve a specific problem.

  • Algorithm

– A particular sequence of operations. – Written using a computer language (such as Java, C, C++, Python, orPHP) to create a program.

slide-28
SLIDE 28

What is PHP?

  • PHP is an acronym for "Hypertext Preprocessor"
  • PHP is a widely-used, free, open source

scripting language

  • PHP is a server scripting language, and a

powerful tool for making dynamic and interactive Web pages.

  • PHP scripts are executed on the server
  • PHP is free to download and use

Source: http://w3schools.com/php

slide-29
SLIDE 29

PHP

  • PHP is an amazing and popular language!
  • It is powerful enough to be at the core of the

biggest blogging system on the web (WordPress)!

  • It is deep enough to run the largest social

network (Facebook)!

  • It is also easy enough to be a beginner's first

server side language!

29

Source: http://w3schools.com/php

slide-30
SLIDE 30

What is a PHP File?

  • PHP files can contain text, HTML, CSS,

JavaScript, and PHP code

  • PHP code are executed on the server, and the

result is returned to the browser as plain HTML

  • PHP files have extension ".php"

30

Source: http://w3schools.com/php

slide-31
SLIDE 31

Basic PHP Syntax

  • A PHP script starts with <?php and ends

with ?>

  • Example:

<?php / / PHP code goes here ?>

31

Source: http://w3schools.com/php

slide-32
SLIDE 32

Basic PHP Syntax

  • A PHP file normally contains HTML tags, and some PHP

scripting code.

  • Example:

<html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; ?> </body> </html>

32

Source: http://w3schools.com/php

slide-33
SLIDE 33

Programming

General goal of a program Receive an input à Produce an output Fundamental Components

  • Variables and constants
  • Statements
slide-34
SLIDE 34

Statements

  • Specifies an action to be performed.
  • Each statement is ended with a semicolon.
  • Words are usually separated by a single space.
  • There should not be a space within a word.
  • Examples:

echo "Hello World!"; $x = 5 + 15; echo $x; $color = "red"; echo "My car is " . $color . "<br>";

34

slide-35
SLIDE 35

Programming

Variables

  • Have a unique name
  • Receive initial values
  • Change values as the code executes
  • Holds final values

Basic Statements, end with a semicolon

  • Assignments
  • Calls
slide-36
SLIDE 36

Programming

Flow Statements

  • Sequence

– Statements happen in the order defined by the program

  • Condition

– Depending on a condition, define the next step

  • Counting loop

– Repeat a set of statements a number of times

  • Conditional loop

– Repeat a set of statements while a condition is true

slide-37
SLIDE 37

PHP

Variables

  • Names start with a $ sign followed by an

alphanumeric character or an underscore Assignments $x = 1; $x = $y + $z; $x = $x + 1; echo $x;

slide-38
SLIDE 38

PHP

Condition if (condition) { statements } else { statements } Condition ==, >, <, >=, <=, !=

slide-39
SLIDE 39

PHP

Condition, example if ($x == 0) { $x++; } else { $x--; }

slide-40
SLIDE 40

PHP

Repetition while (condition) { statements } Condition ==, >, <, >=, <=, !=

slide-41
SLIDE 41

PHP

Repetition, example $x = 1; while ($x <= 5) { echo $x; $x++; }

slide-42
SLIDE 42

Project

<html> <body style = 'color:red ; background-color:blue'> <?php $name = ”Angela"; $i = 1; while ($i <= 5) { echo "<big>"; echo $name; echo "<br>"; $i++; } ?> </body> </html>

slide-43
SLIDE 43

Project

Use phpfiddle.org Get the code from www.cse.scu.edu/~amusurlian/big

slide-44
SLIDE 44

Project

Tasks

  • Change the name and colors
  • Change the loop to have the first name have a

different color echo "<p style='color:red'>";

  • Change the loop to use two colors

– First half/Second Half – Even/odd if ($i % 2 == 0) even else

  • dd
  • Add another loop to write smaller and smaller
slide-45
SLIDE 45

Summary

  • Part I — Computing
  • Part II — Computing at SCU
  • Part III — Today’s activity
  • Computing fields are a lot of fun!
slide-46
SLIDE 46

Thanks!

46

amusurlian@scu.edu