Attachment 'SAM OS V (5.4).py'
Download 1 print "WELCOME TO SAM OS V.2 ;)"
2 print"============================================================="
3 print "by CH TECH"
4 print " "
5
6
7
8
9 sentinel=0
10
11 while sentinel!= 11235813:
12 sentinel=input ('THE PEN IS MIGHTIER THAN THE SWORD')
13 if sentinel!=11235813:
14
15 print'ACCESS DENIED'
16
17
18
19
20
21 print "S.A.M. DATABASE ACCESSED"
22
23 print"----------------------------------------------------------"
24
25 print"WELCOME TO CLAYTON HENDERSON'S PERSONAL OPERATING SYSTEM"
26
27 print"---------------------------------------------------------"
28
29 print"HOW MAY I BE OF SERVICE ?"
30 print"======================================================================="
31
32 a=input("PLEASE ENTER THE CODE OF YOUR CHOICE, TYPE 1 FOR DIVISION PROBLEMS "
33 "2 FOR MULTIPLUCATION,"
34 "3 FOR MORE OR LESS,"
35 "4 FOR GUESSING GAME "
36 "5 FOR FAMILY INFO,"
37 "6 FOR AREA,"
38 "7 FOR VOLUME,"
39 "8 FOR EXPONENTS,"
40 "9 FOR AREA OF A TRIANGLE,"
41 "14 FOR ALGEBRA,"
42 " 15 FOR FIBBOACCI,"
43 " 16 FOR FILE DATABASE,"
44 " 17 FOR ADDRESS BOOK,"
45 " TYPE exit TO END THE PROGRAM")
46 print"========================================================================"
47 if a==1:
48 a=input("ENTER DIVISIOR")
49 b=input("ENTER DIVIDEND")
50 print b/a
51
52
53 if a==2:
54 a=input("ENTER A NUMBER")
55 b=input("ENTER A NUMBER")
56 print a*b
57
58 if a==3:
59 X=input ('enter a num')
60 if X<50:
61 print' number is less than 50'
62
63 if X>50:
64 print 'number is greater than 50'
65
66 if X==50:
67 print'The number is equal to 50'
68
69 if a==4:
70 import random
71
72 num=random.randint(1,50)
73
74 counter=15
75 print"you have 16 guesses. My number is between 1 and 50"
76 guess=input("guess a number:")
77
78 while guess!=num and counter>0:
79 if guess >num:
80 print"guess is too hi"
81 if guess<num:
82 print "you guessed too low"
83 guess=input("try again:")
84 counter=counter-1
85
86 if guess!=num:
87 print"you loose my number was"+str (num)
88
89 if guess==num:
90 print'YOU WIN'
91
92 if a==5:
93 sentinel=0
94 while sentinel!= 2157:
95 sentinel=input("ENTER FAMILY PASSWORD")
96 if sentinel!=2157:
97 print "FAMILY DATABASE RESTRICTED TO YOU"
98 if sentinel==2157:
99 print"WELCOME"
100
101
102 print "DATABASE ACCESSED. ENTER FILE NAME."
103
104 family=["camille","nate","clayton","annette", "david"]
105
106 intel=[" is 8, 4th grade, plays soccer,"," is 11, 6th grade obsessive, gym & soccer", "RESTRICTED"," is approx 47,works @ grapevine designs"," is approx 43,works at Providence Med Center"]
107
108 name=raw_input("enter a file name for family intel:")
109 x=0
110 while name!=family [x]:
111 x=x+1
112
113
114
115 print name+intel [x]
116
117
118
119 if a==6:
120 print"AREA"
121
122
123 A=input("enter the length")
124 C=input("enter the with")
125
126
127 print A*C
128
129
130 raw_input()
131
132
133
134
135 if a==7:
136 print"VOLUME"
137
138
139 A=input("enter the length")
140 C=input("enter the with")
141 B=input("enter height")
142
143 print A*B*C
144
145
146
147 raw_input()
148
149
150
151 if a==8:
152 print"EXPONENTS"
153 A=input("base")
154 B=input("power")
155
156 print A**B
157
158
159
160
161
162
163
164
165
166
167
168 if a==00:
169 print"PLAN MODE STARTED"
170 print"--------------------------------------------------"
171 V1=raw_input("PLEASE ENTER THE FIRST VARIABLE IN PLAN")
172 V2=raw_input("PLEASE ENTER THE SECOND VARIABLE IN PLAN")
173 obj=raw_input("ENTER THE OBJECTIVE")
174 obs=raw_input("ARE THERE ANY OBSTICLES")
175 action=raw_input("ENTER SELECTED PLAN OF ACTION")
176
177 print "THE VARIABLES ARE " +V1 + V2
178 print "THE OBJECTIVE IS " +obj
179 print" THE OBSTICLE IS " +obs
180 print "OUR SELECTED PLAN OF ACTION IS " +action
181 if a==14:
182 print"====================================================="
183 print "ALGEBRA SOLVER BETA PROGRAM"
184 print"---------------------------------------------------"
185 V1=input("()")
186 V2=input("Exponents num**num")
187 V3=input("multiply x*x")
188 V4=input("division x/x")
189 V5=input("addition x+x")
190 V6=input("subtract x-x")
191
192 choice1=input("YOUR CHOICES ARE...1:MULTIPLY, 2 ADD, 3 SUB, 4 DIVIDE")
193 choice2=input("YOUR CHOICES ARE...1:MULTIPLY, 2 ADD, 3 SUB, 4 DIVIDE")
194 choice3=input("YOUR CHOICES ARE...1:MULTIPLY, 2 ADD, 3 SUB, 4 DIVIDE")
195
196
197
198
199
200
201
202 if choice1==1:
203 print V1*V2
204 if choice1==2:
205 print V1+V2
206 if choice1==3:
207 print V1-V2
208 if choice1==4:
209 print V1/V2
210
211
212 if choice2==1:
213 print V3*V34
214 if choice2==2:
215 print V3+V4
216 if choice2==3:
217 print V3-V4
218 if choice2==4:
219 print V3/V4
220
221
222 if choice3==1:
223 print V5*V6
224 if choice3==2:
225 print V5+V6
226 if choice3==3:
227 print V5-V6
228 if choice3==4:
229 print V5/V6
230
231
232
233
234
235 if a==9:
236 a=input("height")
237 b=input("base")
238 print a*(b*.5)
239
240 if a==15:
241 a=0
242 b=1
243 c=0
244 d=0
245 e=input("enter a number")
246
247 while d<e:
248 print a+b
249 c=a
250 a=b
251 b=c+b
252
253 d+=1
254
255 raw_input()
256
257
258
259
260
261 if a ==16:
262 print "FILE DATABASE SUBSYSTEM"
263
264
265 Word=["Clayton", "SAM","Computer", "Program","Internet","Door Code", "Apple Computers",]
266
267 Define=[" -Clayton wrote this program "," -SAM is a personal OS", "-a machine that works with a user interface","-An environment in which a computer completes a task", "-is a network of servers that a user may connect to","3502","-A computer company which makes and designs powerful processors and hardware"]
268 iWord=raw_input("ENTER KEYWORD:")
269 x=0
270 while iWord!=Word [x]:
271 x=x+1
272
273
274 print"================================================"
275 print iWord+Define [x]
276 print"================================================"
277
278
279 if a==17:
280 print"================================================="
281 print"ADDRESS BOOK"
282 print"=================================================="
283
284 Name=["Andy","Robbie","Jackson"]
285 Phone=["962-1568","962-5710","268-3787"]
286 a=input("ENTER NAME")
287
288
289 b=0
290 while a!=Name [b]:
291 b=b+1
292
293 print"==================================================="
294 print a+Phone[b]
295 print"==================================================="
296
297
298 raw_input("PROGRAM HAS CEASED, RESTART TO CONTINUE THANK YOU FOR USING SAM OS V")
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.