

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Instructions and explanations for completing the first assignment in the csc 490 course offered by dr. Gary locklair in fall 2006. Students are required to read chapter 1 of an unspecified text, understand the wallpaper algorithm, and implement the algorithm using c++. The document also covers concepts such as abstraction, effective algorithms, and modulo operation.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!
5 September , Day 3 Written Assignment#0 due dates review – note thread online Systems Assignment #0 due [next time on Chemnitz Student Data] CSC490 is the most important class you have … Example, Chapter 1 Read the entire chapter straight through (ignoring things you don’t understand immediately) {an application of abstraction } Then, reread the chapter for cognition (comprehension) Refer to other resources (other texts, eg Great Ideas …) effective = computable in a reasonable time Page 7 Problem 1 – first part was straightforward
what is int function? truncate to integer value (6.75 becomes 6) if c is even, then “plot” ie location i,j is black if c is odd, then don’t “plot” ie location i,j is white OK, that’s algorithm How does it work? Read top of page 5 Now, for an implementation. See pages 6- Back to page 3 Good question … how do we determine if c is even or odd (3.1.4)? Look at implementation on page 7 What is modulo (ie the mod function)? note he didn’t define in text, but used it in program on page 7! use other resource to look up if you don’t know (eg, CS:AO defines modulo on page 514 of 9th^ ed.) Modulo is “remainder after division” 7/3 is 2 remainder 1, thus 7 mod 3 is 1 note that a test for an even number is X mod 2 = 0 You should implement the original algorithm and test it ie run it before modifying the algorithm to solve the problem Creating the original algorithm will solidify many concepts and answer many necessary questions Create code using C++