Student submission examples

Slides:



Advertisements
Similar presentations
Dr. Yang, Qingxiong (with slides borrowed from Dr. Yuen, Joe) LT4: Control Flow - Loop CS2311 Computer Programming.
Advertisements

Computer Science 1620 Loops.
CSE1301 Computer Programming Lecture 4: C Primitives I.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
Writing and Testing Programs Drivers and Stubs Supplement to text.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 10/11/06CS150 Introduction to Computer Science 1 do/while and Nested Loops.
Computer Science 1620 Accumulators. Recall the solution to our financial program: #include using namespace std; int main() { double balance = ;
CS150 Introduction to Computer Science 1
Computer Science 1620 Multi-Dimensional Arrays. we used arrays to store a set of data of the same type e.g. store the assignment grades for a particular.
Copyright 2006 by Pearson Education 1 reading: 4.1 Cumulative sum.
If You Missed Last Week Go to Click on Syllabus, review lecture 01 notes, course schedule Contact your TA ( on website) Schedule.
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 3 - Functions Outline 3.12Recursion 3.13Example Using Recursion: The Fibonacci Series 3.14Recursion.
Computer Science 1620 Programming & Problem Solving.
1 10/9/06CS150 Introduction to Computer Science 1 for Loops.
1 CS150 Introduction to Computer Science 1 Exponents & Output page & Section 3.8.
1 9/26/07CS150 Introduction to Computer Science 1 Exponents & Output page & Section 3.8.
What is the out put #include using namespace std; void main() { int i; for(i=1;i
Computer Science 1620 Lifetime & Scope. Variable Lifetime a variable's lifetime is finite Variable creation: memory is allocated to the variable occurs.
Programming is instructing a computer to perform a task for you with the help of a programming language.
ECE 264 Object-Oriented Software Development Instructor: Dr. Honggang Wang Fall 2012 Lecture 4: Continuing with C++ I/O Basics.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Valentin Razmov, CSE403, Sp'05 CSE403 Section 1: The Fate of Software Projects Learning = Practice + Feedback Desirable Qualities in Teammates Team-Building.
First steps Jordi Cortadella Department of Computer Science.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 7 Clicker Questions September 22, 2009.
1 09/20/04CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
GAME102 - INTRO WHILE LOOPS G. MacKay. Fundamental Control Structures  STRAIGHT LINE  CONDITIONAL  LOOPS.
CS101 Computer Programming I Chapter 4 Extra Examples.
Input a number #include using namespace std; int main() { int num; cout num; return 0; }
Overview Go over parts of quiz? Another iteration structure for loop.
Introduction to Loops Iteration Repetition Counting Loops Also known as.
1 09/27/04CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
1 10/3/05CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
11/10/2016CS150 Introduction to Computer Science 1 Last Time  We covered “for” loops.
Think First, Code Second Understand the problem Work out step by step procedure for solving the problem (algorithm) top down design and stepwise refinement.
Chapter five exercises. a. false; b. true; c. false; d. true; e. true; f. true; g. true; h. false.
The Ohio State University
Introduction to Computer Programming
CMPT 201.
Classroom Interaction via Tablet PCs and Student Submissions
C++ Programming: CS150 For.
Documentation Need to have documentation in all programs
Controlling execution - iteration
Chapter 2 Assignment and Interactive Input
CSC113: Computer Programming (Theory = 03, Lab = 01)
CSC113: Computer Programming (Theory = 03, Lab = 01)
Pointers Psst… over there.
Chapter 4 Loops Case Studies
Pointers Psst… over there.
Introduction to C++ Programming
Screen output // Definition and use of variables
CS150 Introduction to Computer Science 1
TIPS: How to Be Successful
Counting Loops.
Coding Concepts (Basics)
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
Lab 1 Introduction to C++.
CS150 Introduction to Computer Science 1
CS150 Introduction to Computer Science 1
Computing Fundamentals
CS150 Introduction to Computer Science 1
CS150 Introduction to Computer Science 1
Let’s all Repeat Together
CS150 Introduction to Computer Science 1
Let’s all Repeat Together
C. M. Overstreet Old Dominion University Spring 2006
Fundamental Programming
CS 101 First Exam Review.
Functions Imran Rashid CTO at ManiWeber Technologies.
C. M. Overstreet Old Dominion University Fall 2007
Presentation transcript:

Student submission examples CSE 590 ET Student submission examples

Kelvin Sung

Scene Nodes Transform Operator A Primitive List A SceneNode List Translation/Scale/Rotate A Primitive List A List of primitives A SceneNode List A List of SceneNodes Concatenation of Transform operators Scene Node P List SN-List Transform Op.

For example … 45o 3 1 SN R(45o) 2 SN Ty(2) SN S(2) 0.5

What does these do? SN Ty(-2) R(-45) -2 R(45o)

Valentin Razmov

The Fate of Software Projects in Industry: Question Under some reasonable definition of a “project” (you make it up), what would you guess is the percentage of software projects that fail (i.e., that don’t accomplish their goals)? Choose the nearest approximation: 0-20% 20-40% 30-60% 60-80% 80-100%

The Fate of Software Projects in Industry: Answer Historically, 85% of software projects fail. Here is how the software engineering class voted:

Chief Reasons for Software Project Failures: Question What might be the main reasons behind such a large percentage of software project failures? State one reason that you think is prevalent.

Chief Reasons for Software Project Failures: Answers Most students pointed out valid reasons. What seasoned professionals say is that the majority of software projects fail not because of technical deficiencies or problems but because of underestimating or sometimes even completely ignoring the human aspect, including: the relationship with the customer regular and explicit communication between all stakeholders – managers, developers, testers, marketing, sales, customers

Becky Bates

Hunt for Errors Fix as many errors as possible in the code on the next slide. C++ code (so answers provided) Level: Finding semi-colons, declaring variables, formatting cout, using comments

Hunt for Errors: Find and Correct #include <iostream> #include <cmath> int main() { int num1; float fnum(4.576); sum=num1*fnum; cout << The correct answer is << sum << \n; return 0; }

Hunt for Errors: Solution //Output of values so that they are understandable cout << "Input values " << num1 << " and " << fnum << "were added together.\n"; cout << "The correct answer is " << sum << "\n"; return 0; } /* The goal of this program is to add a floating point number to an integer and store it as a floating point number. */ #include <iostream> #include <cmath> using namespace std; int main() { //Declaration of three variables used int num1; float fnum(4.576), sum; //Initialization of uninitialized values num1=23; //Calculation sum=num1+fnum;

Working with Loops Given the following code, write the output of the code and count the number of iterations. Examples include input inside and outside the loops. One loop is infinite. The iterator of a for loop also changes inside the loop.

Loop 1 count=1; MAX=15; while (count<MAX) { cout << count; }

Loop 1: Answer count=1; MAX=15; while (count<MAX) { cout << count << endl; count+=4; } cout << count; Output: 1 5 9 13 17 Iterations: 4

Loop 2 sum=0; n=20; while (n>0) { sum+=n; } cout << sum;

Loop 2: Answer sum=0; n=20; while (n>0) { sum+=n; } cout << sum; Output: (no output) Iterations: Infinite

Loop 3 sum=0; for (iterate=1; iterate<=10; iterate++) { sum+=iterate; iterate++; cout << iterate << endl; } cout << sum;

Loop 3: Answer sum=0; for (iterate=1; iterate<=10; iterate++) { sum+=iterate; iterate++; cout << iterate; } cout << sum; Output: 2 4 6 8 10 25 Iterations: 5

Ken Yasuhara

Just what is CS anyway? Write down up to five adjectives that you think describe computer science:

Linked List vs. Array List one advantage and one disadvantage for each: advantage disadvantage linked list array

Craig Prince

Affine Transformations Rotation (Rot[<deg. CW>]) Reflection (Rx, Ry)

Affine Transformations (Cont.) Translation ( Trans[x,y] ) Multiple Transformations Transformations can be concatenated ( * ) Operations Performed from Left-to-Right

Exercise Perform the following Affine Transformation: Rx * Trans[0,2] * Rot[45]