Presentation is loading. Please wait.

Presentation is loading. Please wait.

Student submission examples

Similar presentations


Presentation on theme: "Student submission examples"— Presentation transcript:

1 Student submission examples
CSE 590 ET Student submission examples

2 Kelvin Sung

3 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.

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

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

6 Valentin Razmov

7 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%

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

9 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.

10 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

11 Becky Bates

12 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

13 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; }

14 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;

15 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.

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

17 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

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

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

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

21 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

22 Ken Yasuhara

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

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

25 Craig Prince

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

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

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


Download ppt "Student submission examples"

Similar presentations


Ads by Google