Difference between revisions of "BTP200 Assignments 20141"

From CDOT Wiki
Jump to: navigation, search
(Assignment 1 Q & A)
(Assignment 1 Q & A)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
=== Assignment 1 Q & A ===
 
=== Assignment 1 Q & A ===
  
----
 
  
== 1) Program Summary ==
+
<u>'''1) Program Summary'''</u><br><br>
 
+
'''In main'''''
'''In main<br>'''
+
: 1.Use EAN module by calling<br>
use EAN module by calling<br>
+
:: a.isValid<br>
1.isValid<br>
+
:: b.isRegistered<br>
2.isRegistered<br>
+
<br>
<br><br>
 
 
'''a. EAN module<br>'''
 
'''a. EAN module<br>'''
1. Use "isValid" function to validate EAN input<br>
+
: 1. Use "isValid" function to validate EAN input<br>
2. Use "Prefix" module to validate EAN and if validation passed, copy each element to valubles<br>
+
: 2. Use "isRegistered" function to<br>
 +
:: a. Validate elements in EAN by using "Prefix" module<br>
 +
:: b. If "Prefix" module return true, copy element data to valuables in main<br>
 
<br>
 
<br>
 
'''b. Prefix module<br>'''
 
'''b. Prefix module<br>'''
1. Use "load" function to load prefix database<br>
+
: 1. Use "load" function to load prefix database<br>
2. Use "isRegistered" function to validate area<br>
+
: 2. Use "isRegistered" function to validate area<br>
3. Use "minNoDigits" function to define publisher code<br>
+
: 3. Use "minNoDigits" function to define publisher code<br>
4. Use "is registered" function (* Different parameter) to validate publisher<br>
+
: 4. Use "isRegistered" function (*Different parameter) to validate publisher<br>
  
 
=== Assignment 2 Q & A ===
 
=== Assignment 2 Q & A ===

Latest revision as of 17:34, 23 January 2014


OOP244 | FAQ | Workshops | Assignments | Useful Links

Assignment 1 Q & A

1) Program Summary

In main

1.Use EAN module by calling
a.isValid
b.isRegistered


a. EAN module

1. Use "isValid" function to validate EAN input
2. Use "isRegistered" function to
a. Validate elements in EAN by using "Prefix" module
b. If "Prefix" module return true, copy element data to valuables in main


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 "isRegistered" function (*Different parameter) to validate publisher

Assignment 2 Q & A

Assignment 3 Q & A

Assignment 4 Q & A