9
08/25/22 1 R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class CISC 130: Today’s Class Assignments 7 and 8 Assignments 7 and 8 Exam Exam History Paper Assignment History Paper Assignment

1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Embed Size (px)

DESCRIPTION

Exam Problem 1 X=2X=2 Y=4Y=4 Y=22Y=22 a[2]=2a[2]=2 Y=18Y=18 Y=0Y=0 a[2] = 4 = a[0]a[2] = 4 = a[0] 1/28/2016 3R. Smith - University of St Thomas - Minnesota

Citation preview

Page 1: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

05/03/23 1R. Smith - University of St Thomas - Minnesota

CISC 130: Today’s ClassCISC 130: Today’s Class• Assignments 7 and 8Assignments 7 and 8• ExamExam• History Paper AssignmentHistory Paper Assignment

Page 2: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Assignments 7 and 8Assignments 7 and 8• Most people got it – check plusMost people got it – check plus• Some got checksSome got checks

– Usually for problems with comments, formattingUsually for problems with comments, formatting– A few minor computational errorsA few minor computational errors

• Some check minusesSome check minuses– Omitting required functionsOmitting required functions– Failing to actually USE the array length in the functionsFailing to actually USE the array length in the functions

05/03/23 2R. Smith - University of St Thomas - Minnesota

Page 3: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Exam Problem 1Exam Problem 1• X=2X=2• Y=4Y=4• Y=22Y=22• a[2]=2a[2]=2• Y=18Y=18• Y=0Y=0• a[2] = 4 = a[0]a[2] = 4 = a[0]

05/03/23 3R. Smith - University of St Thomas - Minnesota

Page 4: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Problems 2 – 5 Problems 2 – 5 • 2 –> sum(vec) ./ length(vec)2 –> sum(vec) ./ length(vec)• 3 -> Double result; integer argument3 -> Double result; integer argument

– 2 variables: 1 int, 1 double2 variables: 1 int, 1 double– A for loop to collect the sumA for loop to collect the sum– Divide to calculate averageDivide to calculate average

• 4 -> sum((0:N) .^ 2)4 -> sum((0:N) .^ 2)– No “dot” for multiply, it’s a “*”No “dot” for multiply, it’s a “*”

• 5 -> Int argument for “N”, int result5 -> Int argument for “N”, int result– 2 INT variables, a for loop to collect the sum of products2 INT variables, a for loop to collect the sum of products

05/03/23 4R. Smith - University of St Thomas - Minnesota

Page 5: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Problems 6 – 9Problems 6 – 9• 6 -> 18 <= Age & Age <= 216 -> 18 <= Age & Age <= 21

– no ≤ in Matlabno ≤ in Matlab

• 7 -> 10 <= X & X <= 207 -> 10 <= X & X <= 20

• 8 -> argument integer x; no special return8 -> argument integer x; no special return– If (10 <= x && x <= 20) If (10 <= x && x <= 20) – no ≤ in Cno ≤ in C

• 9 – Be sure to ‘cast’ the divide somehow9 – Be sure to ‘cast’ the divide somehow– Use ‘getint() as requested; don’t just do it all with doublesUse ‘getint() as requested; don’t just do it all with doubles

05/03/23 5R. Smith - University of St Thomas - Minnesota

Page 6: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

The History Paper AssignmentThe History Paper Assignment• A “short research paper”A “short research paper”

– I’m expecting about 2 pages (1 is too short, 3 may be too long)I’m expecting about 2 pages (1 is too short, 3 may be too long)– Do RESEARCH. In other words, LOOK FOR INFORMATIONDo RESEARCH. In other words, LOOK FOR INFORMATION

• You will report on a dispute in computer You will report on a dispute in computer historyhistory– The field is new enough that people don’t agree on what The field is new enough that people don’t agree on what

happened, who was first, or what people did.happened, who was first, or what people did.– Find a dispute, document both sides of it, and write it upFind a dispute, document both sides of it, and write it up

• A good grade = doing the assignmentA good grade = doing the assignment

05/03/23 6R. Smith - University of St Thomas - Minnesota

Page 7: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Paper OutlinePaper Outline• OutlineOutline

– IntroductionIntroduction– Describe the concept or technology in dispute and how it Describe the concept or technology in dispute and how it

relates to today's computingrelates to today's computing– Explain one side of the dispute: give the background story - Explain one side of the dispute: give the background story -

who did what and when, and how it relates to today's who did what and when, and how it relates to today's computerscomputers

– Explain the other side of the dispute: again, give the Explain the other side of the dispute: again, give the background story.background story.

– Based on your sources, draw a conclusion as to which one Based on your sources, draw a conclusion as to which one may be correct. Explain why you think that one is correct.may be correct. Explain why you think that one is correct.

• You MUST include a list of sources. You MUST include a list of sources. – Wikipedia is NOT an acceptable source!Wikipedia is NOT an acceptable source!

05/03/23 7R. Smith - University of St Thomas - Minnesota

Page 8: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

Now, the movieNow, the movie• Pay attention – it’s less reading you’ll have to Pay attention – it’s less reading you’ll have to

do for the paper.do for the paper.• The MovieThe Movie

– It’s from 1995 – so it misses some modern thingsIt’s from 1995 – so it misses some modern things

05/03/23 8R. Smith - University of St Thomas - Minnesota

Page 9: 1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory

05/03/23 9R. Smith - University of St Thomas - Minnesota

Creative Commons LicenseCreative Commons License

This work is licensed under the Creative This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United Commons Attribution-Share Alike 3.0 United

States License. To view a copy of this license, States License. To view a copy of this license, visit http://creativecommons.org/licenses/by-visit http://creativecommons.org/licenses/by-

sa/3.0/us/ or send a letter to Creative sa/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Commons, 171 Second Street, Suite 300, San

Francisco, California, 94105, USA.Francisco, California, 94105, USA.