Download Matrix of Systems System Architecture

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Matrix of Systems
System Architecture
Industry
Simple System
Aero
Model balsa glider with propeller
Electrical
Civil
Simple crystal radio
http://www.techlib.com/electronics/c
rystal.html
Prime number search code (see
pseudocode below)
Telescope
(simple refraction)
Room 26-152
Judicial
Jury in US court
Naval
Canoe (simply fiberglass canoe)
http://www.clippercanoes.com/
Software
Optical
Matrix of Systems
System Architecture
/* Comment – Pseudocode Function to test if a number is a prime number */
/* Comment – The number to test is the variable TestPrime */
/* Comment – The function returns a True or a False */
Function IsPrime(TestPrime)
Initialize variable IsPrime = False
Initialize variable TestNum = 0
Initialize variable TestLimit =0
/* Comment - Eliminate even numbers /
If TestPrime Mod 2 = 0 Then
IsPrime = False
Exit Function
End If
/* Comment - Loop through ODD numbers starting with 3 */
Assign TestNum = 3
Assign TestLimit = TestPrime
Do While TestLimit > TestNum
If TestPrime Mod TestNum = 0 Then
IsPrime = False
Exit Function
End If
TestLimit = TestPrime \ TestNum
/* Comment - we only bother to check odd numbers */
TestNum = TestNum + 2
Loop
Matrix of Systems
System Architecture
/* Comment - If we made it through the loop, the number is a prime. */
IsPrime = True
End Function
Related documents