Difference between revisions of "BTP200 Assignments 20141"

From CDOT Wiki
Jump to: navigation, search
(Assignment 1 Q & A)
(Assignment 1 Q & A)
Line 2: Line 2:
  
 
=== Assignment 1 Q & A ===
 
=== Assignment 1 Q & A ===
 +
1) Program Summary
  
1) Program Summary
+
main () {
   
+
use EAN module by calling
      main () {
+
1.isValid
        use EAN module by calling
+
2.isRegistered
          1.isValid
 
          2.isRegistered
 
  
        }
+
}
  
      a. EAN module
+
a. EAN module
          1. Use "isValid" function to validate EAN input
+
1. Use "isValid" function to validate EAN input
          2. Use "Prefix" module to validate EAN and if validation passed, copy each element to valubles
+
2. Use "Prefix" module to validate EAN and if validation passed, copy each element to valubles
  
      b. Prefix module
+
b. Prefix module
          1. Use "load" function to load prefix database
+
1. Use "load" function to load prefix database
          2. Use "isRegistered" function to validate area
+
2. Use "isRegistered" function to validate area
          3. Use "minNoDigits" function to define publisher code
+
3. Use "minNoDigits" function to define publisher code
          4. Use "is registered" function (* Different parameter) to validate publisher
+
4. Use "is registered" function (* Different parameter) to validate publisher</nowiki>
  
 
=== Assignment 2 Q & A ===
 
=== Assignment 2 Q & A ===

Revision as of 17:20, 23 January 2014


OOP244 | FAQ | Workshops | Assignments | Useful Links

Assignment 1 Q & A

1) Program Summary

main () { use EAN module by calling 1.isValid 2.isRegistered

}

a. EAN module 1. Use "isValid" function to validate EAN input 2. Use "Prefix" module to validate EAN and if validation passed, copy each element to valubles

b. Prefix module 1. Use "load" function to load prefix database 2. Use "isRegistered" function to validate area 3. Use "minNoDigits" function to define publisher code 4. Use "is registered" function (* Different parameter) to validate publisher</nowiki>

Assignment 2 Q & A

Assignment 3 Q & A

Assignment 4 Q & A