1 Page

Lab_10_Problems

Course: CPRE 185, Fall 2009
School: Iowa State
Rating:
 
 
 
 
 

Word Count: 266

Document Preview

Boolean Problems logic program to review lab 9 o Write a program that will use logical operations to model the following truth table. A B C O 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 Play with structures: o Create a structure with three characters and three integers. o Use the sizeof() function to determine the size of the structure. o Experiment with the order of the characters and the...

Register Now

Unformatted Document Excerpt

Coursehero >> Iowa >> Iowa State >> CPRE 185

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Boolean Problems logic program to review lab 9 o Write a program that will use logical operations to model the following truth table. A B C O 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 Play with structures: o Create a structure with three characters and three integers. o Use the sizeof() function to determine the size of the structure. o Experiment with the order of the characters and the integers in the structure. Give one example for ordering the variables such that the structure has the smallest possible size. Give one example for ordering the variables such that the structure has the largest possible size. Form a hypothesis of why this is the case. Using the card structure and your prelab program (or the lab example 3 program) In o main: ask the user to pick two cards between 0 and DECKSIZE-1 o Write a compare function that takes two cards and tells you which one is bigger: Declare the function like this int compareTo(card a, card b){ ...} Output 1 when card a is greater than card b 0 when both cards are worth the same (e.g., 9 of clubs and 9 of clubs) -1 when card a is less than card b o In main: print the cards and output the result of the comparison o e.g., 2 of h...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Berkeley - ASTRO - 00177408
-55.955000 -42.915000 148.22206 47.985281 -42.915000 -34.765000 203.50748 60.794655 -34.765000 -20.095000 138.50015 45.039814 -20.095000 -7.0550000 159.26452
Berkeley - ASTRO - 00177408
-55.955000 -42.915000 148.22206 47.985281 -42.915000 -34.765000 203.50748 60.794655 -34.765000 -20.095000 138.50015 45.039814 -20.095000 -7.0550000 159.26452
Berkeley - ASTRO - 00177408
# Time [days] Mag Magerr Band Uplim Ref 0.00120 19.5 -0.2 V yes GCN4516 0.00138 18 -0.2 V yes GCN4509 0.00377 20.4 -0.2 B yes GCN4516 0.0
Berkeley - ASTRO - 00177408
360.288 -0.2 0 no GCN4510 1139.62 19.1 0.5 Rc no 1735.78 18.1 0.2 none yes 2039.9 19.2 0.4 Rc no 2879.71 19.1 0
Berkeley - ASTRO - 00177408
360.288 5.139853e+03 0.000000e+00 no GCN4510 1139.62 9.793788e-05 4.510206e-05 Rc no 1735.78 2.460088e-04 4.531650e-05 none yes 2039.9 8.932041e-05 3.290686e-05
Berkeley - ASTRO - 00177408
1735.78 2.460088e-04 4.531650e-05 none yes 2879.71 9.793788e-05 1.804082e-05 Rc yes 42120 3.555910e-04 6.550228e-05 R yes 48960.3 1.073868e-05 1.978137e-06
Berkeley - ASTRO - 00177408
11.410000 34.230003 4.8801518 0.15476824 25.162871 34.230003 55.420002 -7.1583672 3.4018788 327.59974 55.420002 84.760002 15.829904 -2.3030588 299.73961
Berkeley - ASTRO - 00177408
11.4100 34.2300 -0.697075 0.799869 34.2300 55.4200 6.68627 1.05591 55.4200 84.7600 -3.93089 0.648640 84.7600 141.810 9.20444 1.45795 141.810 146.700 27.497
Berkeley - ASTRO - 00177408
chi^2/nu= 277.78127 / 193The fit is rejectable at 99.993871 % Confidence -42.9150 -34.7650 201.17938 -34.7650 -20.0950 219.12440 -20.0950 -7.05500 233.67896 -7.05500 -3.7950
Berkeley - ASTRO - 00177408
<html><head><title>Your NED Search Results</title></head><body background="/pics/NEDbgHelp.gif" bgcolor="#FFFFFF"><center><font size=6 color="#CC3333"><b>N</b></font><font size=4 color="#000000"><b>ASA/IPAC</b></font> <font size=6 color="#CC
Berkeley - ASTRO - 00177408
120.556 121.049 45.8159 10.81121.049 121.336 39.0268 12.7458121.336 121.994 48.5438 9.27936121.994 122.412 49.6199 11.6955122.412 122.716 73.6888 17.0173122.716 123.857 46.1726 6.85523123.857 123.997 80.005 26.129123.997 124.293 42.361 13.6598
Berkeley - ASTRO - 00177408
Source Contamination: 5.26E-08 +/- 1.5E-08 cts/s
Berkeley - ASTRO - 00177408
#ra dec hmag dhmag053.962761 17.109814 13.829 0.025053.944143 17.116085 16.804 0.137053.989731 17.119774 16.009 0.077053.955925 17.112076 13.050 0.024054.056998 17.110207 12.890 0.025054.025218 17.114105 15.171 0.044054.046284 17.102865
Berkeley - ASTRO - 00177408
;instrument XRT;exposure 64937.415;xunit kev;bintype counts 0.0000000 0.0049999999 13.416170 1.00000 0.0049999999 0.0099999998 13.464069 1.00000 0.0099999998 0.015000000 13.511968 1.0
Berkeley - ASTRO - 00177408
;instrument XRT;exposure 269.05439;xunit kev;bintype counts 0.0000000 0.0049999999 14.516683 1.00000 0.0049999999 0.0099999998 14.568504 1.00000 0.0099999998 0.015000000 14.620325 1.0
Berkeley - ASTRO - 00177408
#ra dec rmag drmag54.22221817.13006516.2050.00553.98003217.11030819.2820.07054.22023517.10499716.2420.00554.26303917.10549519.6410.09854.28926317.10327016.6720.00754.28071717.10326216.8100.00853.83690717.09809516.8320.008
Berkeley - ASTRO - 00177408
chi^2/nu= 90.229770 / 328.000The fit is rejectable at 2.1718713e-40 % Confidence#index t1 t2 fade_index delta_mag_pk hindex dhindex rate1 drate1 rate2 drate2 logr dlogr 0 0.1206 0.2380 -3.01 0.0 0.17 0.08 1.15E+0
Berkeley - ASTRO - 00177408
# t1 t2 hardness error 0.12055600 0.12133600 -0.14044738 0.19090244 0.12133600 0.12199400 0.082234260 0.19072434 0.12199400 0.12271600 0.26708790 0.15921771 0.12271600 0.12385700
Berkeley - ASTRO - 00177408
output00177408000_999/sw00177408000xpcw2po_cl.evtoutput00177408001_999/sw00177408001xpcw2po_cl.evtoutput00177408002_999/sw00177408002xpcw2po_cl.evtoutput00177408003_999/sw00177408003xpcw2po_cl.evtoutput00177408004_999/sw00177408004xpcw2po_cl.evt
Berkeley - ASTRO - 00177408
# t1 t2 dt rad_min rad_max cts err scl bg bg_rat wt 0.120556 0.120813 0.000257 0. 16. 10.60 3.52 0.867841 5.000000 0.279570 1 0.120813 0.121049 0.000237 0. 16. 9.00
Berkeley - ASTRO - 00177408
tmin 2.0695142e-05tmin 0.00011504599
Berkeley - ASTRO - 00177408
tmin 32.099833tmin 181.93968 364.16423 2064.0582 0.20484306 0.033045668 5 2064.0582 46869.069 0.12453600 0.012811805 9tmax 46869.069
Berkeley - ASTRO - 00177408
# t1 t2 dt rad_min rad_max cts err scl bg bg_rat wt 0.120556 0.120813 0.000257 0. 16. 10.60 3.52 0.867841 5.000000 0.279570 1 0.120813 0.121049 0.000237 0. 16. 9.00
Berkeley - ASTRO - 00177408
# tmin tmax 0.254029 468.41556 [ksec];instrument XRT;exposure 60143.753;xunit kev;bintype counts0.000000 0.010000 0.000000 0.0000000.010000 0.020000 0.000000 0.0000000.020000 0.030000 0.000000 0.0000000.030000 0.040000 0.00000
Berkeley - ASTRO - 00177408
# tmin tmax 0.254029 468.41556 [ksec];instrument XRT;exposure 60143.753;xunit kev;bintype counts0.000000 0.010000 0.000000 0.0000000.010000 0.020000 0.000000 0.0000000.020000 0.030000 0.000000 0.0000000.030000 0.040000 0.00000
Berkeley - ASTRO - 00177408
# tmin tmax 0.12055600 5.38475 [ksec];instrument XRT;exposure 266.08283;xunit kev;bintype counts0.000000 0.010000 0.000000 0.0000000.010000 0.020000 0.000000 0.0000000.020000 0.030000 0.000000 0.0000000.030000 0.040000 0.00000
Berkeley - ASTRO - 00177408
# tmin tmax 0.12055600 5.38475 [ksec];instrument XRT;exposure 266.08283;xunit kev;bintype counts0.000000 0.010000 0.000000 0.0000000.010000 0.020000 0.000000 0.0000000.020000 0.030000 0.000000 0.0000000.030000 0.040000 0.00000
Berkeley - ASTRO - 00177408
Wavdetect Sources with S/N>3: # ra dec err ["] signif counts steady? -log10(Prob_steady) 054.03492117.3458570.16673.8725.0 0-323.0 154.10150117.3244240.51014.141.8 1-0.7 254.01671417.2622120.65812.338.3 1-0.1 354.155
Berkeley - ASTRO - 00177408
output00177408000_999/sw00177408000xwtw2po_cl.evtoutput00177408001_999/sw00177408001xwtw2po_cl.evtoutput00177408002_999/sw00177408002xwtw2po_cl.evtoutput00177408003_999/sw00177408003xwtw2po_cl.evtoutput00177408004_999/sw00177408004xwtw2po_cl.evt
Berkeley - ASTRO - 00177408
SIMPLE = T / file does conform to FITS standardBITPIX = 8 / number of bits per data pixelNAXIS = 0 / number of data axesEXTEND = T / FITS dataset may contain extensio
Berkeley - ASTRO - 00177408
# Ep dEp lprob lEiso dlEiso67.040 0.054 3.49e-05 121.421 0.07467.097 0.061 3.07e-04 121.521 0.08467.163 0.070 5.88e-04 121.521 0.08467.238 0.081 8.49e-04 121.521 0.08467.325 0.092 1.10e-03 121.521 0.08467.423 0.106 1.29e-03 121.521 0.08467.537
Berkeley - ASTRO - 00177408
# Ep lEiso37.400 121.94840.123 121.88245.004 121.87446.499 121.58146.920 121.42847.877 121.33148.473 121.58348.868 121.63749.323 121.34449.341 121.34849.662 121.44650.219 121.40150.425 121.54350.808 121.47751.066 121.54551.173 121.583
Berkeley - ASTRO - 00177408
# Ep dEp lprob lNiso dlNiso67.040 0.054 3.49e-05 137.769 0.38167.097 0.061 3.06e-04 137.769 0.38067.163 0.070 5.87e-04 137.769 0.38067.238 0.081 8.65e-04 137.769 0.38067.325 0.092 1.10e-03 137.769 0.38067.423 0.106 1.29e-03 137.769 0.38067.537
Berkeley - ASTRO - 00177408
# Ep lNiso37.362 137.60340.096 137.25245.016 138.22146.520 138.10846.941 137.70147.899 137.88448.495 138.38548.881 138.62249.337 137.33249.355 137.35049.676 137.78350.234 137.58650.440 138.20350.817 137.91451.076 137.64251.182 137.219
Berkeley - ASTRO - 00177408
# x=Log_e(Beaming Fraction) y=Log_e(Egam/10^52 erg) z=Log_e(Tjet/days)# mean(x)= -4.6913 xdown= -5.0763 xup= -4.3622# mean(y)= -2.8349 ydown= -3.4214 yup= -2.2964# mean(z)= 1.8541 zdown= 1.3195 zup= 2.2750-5.9761 -3.7625 0.1152-5.8878 -3.7402
Berkeley - ASTRO - 00177408
Ep=55.60 Chi/nu= 51.27/57 (0.899)
Berkeley - ASTRO - 00177408
#file=swb15-350lc.txt dt=1.0 tstart=-10.095 tstop=113.025#t90 dt90 t50 dt50 rt90 drt90 rt50 drt50 rt45 drt45 tav dtav tmax dtmax trise dtrise tfall dtfall cts cts_err pk_rate dpk_rate band 109.000 1.932 86.000 2.765 58.000
Berkeley - ASTRO - 00177408
# S/N T1 T2 T90 T50# Estimated T100 Interval: -13.065 150.555 T90= 136.350 30.5 80.085 107.625 23.220 8.910 17.0 -7.395 19.335 23.490 9.180 5.5 124.095 150.555
Berkeley - ASTRO - 00177408
;instrument XRT;exposure 61149.182;xunit kev;bintype counts 0.0000000 0.0049999999 13.666843 1.00000 0.0049999999 0.0099999998 13.715614 1.00000 0.0099999998 0.015000000 13.764385 1.0
Berkeley - ASTRO - 00177408
# tmin tmax 10.0000 468.416 [ksec];instrument XRT;exposure 56383.773;xunit kev;bintype counts0.000000 0.010000 0.000000 0.0000000.010000 0.020000 0.000000 0.0000000.020000 0.030000 0.000000 0.0000000.030000 0.040000 0.000000 0
Berkeley - ASTRO - 00177408
# tmin tmax 10.0000 468.416 [ksec];instrument XRT;exposure 56383.773;xunit kev;bintype counts0.000000 0.010000 0.000000 0.0000000.010000 0.020000 0.000000 0.0000000.020000 0.030000 0.000000 0.0000000.030000 0.040000 0.000000 0
Berkeley - TMP - 00177408
Power-Law Model FitNorm@15keV 1.1934e-02 (1.0364e-02 1.3625e-02)alpha -1.7375 (-1.8620 -1.6154)Energy Fluence (15-350 keV) 2.5948e-06 (2.4156e-06 2.7852e-06) erg cm^-2Eiso (1-10^4 keV, host-frame) 1.6697e+53 (1.5405e+53 1.8461e+53) ergChi/nu=
Iowa State - DATA - 1336
Palmer Constitution 2008PreambleWe, the members of Palmer House do establish and adopt this constitution in order to form an efficient house, ensure equal representation of each resident, and secure an environment that stimulates intellectual, soci
Drexel - MK - 489
11 July 2007By: Lucian Dorneanu, Science EditorNanomachines Powered by BacteriaMicroscopic organisms can move tiny structures when stimulated with UV lightA new discovery in the field of nanotechnology could produce the smallest "engines" in th
Rose-Hulman - ME - 422
FORMULA SHEET For 1-D heat transfer problems, the general weak form is dT dT Ak dx = dx dx T AgdxFor a 2-node conduction element, when the area, conductivity, density, and internal heat generation are constant we have K= kA Le 1 -1 -1 1 2 1 1 2 1 1
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: syllabus.dvi %Pages: 4 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMTI10 CMMI8 CMBX10 %EndComments %DVIPSWebPage: (www.radicaleye.com) %
Maryland - ENEE - 646
ENEE 646: Digital Computer DesignFall 2004 Handout #1Course Information and PolicyRoom:CHE 2108 TTh 2:00p.m. - 3:15p.m. http:/www.ece.umd.edu/class/enee646 Donald Yeung 1327 A. V. Williams (301) 405-3649 yeung@eng.umd.edu http:/www.ece.umd.edu
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: ps1.dvi %Pages: 3 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMBX10 CMSY10 CMTI10 CMTT10 %EndComments %DVIPSWebPage: (www.radicaleye.com
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: p3.dvi %Pages: 10 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMTT10 CMSY10 CMMI10 CMBX10 CMTI10 %EndComments %DVIPSWebPage: (www.radical
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: ps2.dvi %Pages: 3 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMR8 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dv
Maryland - ENEE - 646
ENEE 646: Digital Computer DesignFall 2004 Handout #11Problem Set # 2Due: October 12Pipelining and ILPProblem 1Consider the following 6-stage pipline:F D X1 X2 M WInstruction fetch Instruction decode, register read First cycle of ALU, b
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: review.dvi %Pages: 4 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMTI10 CMTT10 CMBX10 CMSY10 %EndComments %DVIPSWebPage: (www.radicaleye.
Maryland - ENEE - 646
ENEE 646: Digital Computer DesignFall 2004 Handout #13Midterm Review 1 Time and LocationThe midterm will be given during normal class hours, 2:00p.m.-3:15p.m., on Thursday October 14th, in the normal meeting place, CHE 2108.2FormatThe midt
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: p4.dvi %Pages: 10 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMTT10 CMTI10 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSComman
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: midterm-sol.dvi %Pages: 5 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMBX10 CMMI10 CMMI8 CMSY10 CMSY8 %EndComments %DVIPSWebPage: (www.r
Maryland - ENEE - 646
ENEE 646: Digital Computer DesignFall 2004 Handout #17Midterm Solutions11.1Early Branch Resolution(10 points):(see Figures 1, 2, 3, and 4 for pipeline diagrams).1.2(10 points):The forwarding path from register G can be removed. Since
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: ps3.dvi %Pages: 4 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 CMTT10 CMSY10 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSComman
Maryland - ENEE - 646
ENEE 646: Digital Computer DesignFall 2004 Handout #20Problem Set # 3Due: November 23Complex Pipelining and CachingProblem 1H&P 3.10Problem 2In this problem, we will look at how a common vector loop runs on two processors, one that imple
Maryland - ENEE - 646
#%-12345X@PJL JOB @PJL ENTER LANGUAGE=POSTSCRIPT %!PS-Adobe-3.0 %Title: Microsoft PowerPoint - prefetch %Creator: PScript5.dll Version 5.2 %CreationDate: 11/11/2004 16:16:56 %For: Owner %BoundingBox: (atend) %Pages: (atend) %Orientation: Landscape %P
Maryland - ENEE - 646
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: ps4.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMBX12 CMR10 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips p
Maryland - ENEE - 646
ENEE 646: Digital Computer DesignFall 2004 Handout #24Problem Set # 4Due: Dec 9Memory Performance Optimizations and Virtual MemoryProblem 1H&P 5.8Problem 2H&P 5.17Problem 3H&P 5.181