# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

79 Pages

### Homework2

Course: CS 201, Fall 2008
School: Iona
Rating:

Word Count: 197

#### Document Preview

Computer CS201 Science I Homework 2 Due: 9/30, 12noon This homework corresponds to materials up to Primitive Data. Answer each of the following questions clearly. For every program, include your algorithm in the write-up, use meaningful variable names and comment your code well for readability. Email your report to ctsai@iona.edu with the subject line &quot;Homework2 submission&quot;. 1. (20 points) Based...

Register Now

#### Unformatted Document Excerpt

Coursehero >> New York >> Iona >> CS 201

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.
Computer CS201 Science I Homework 2 Due: 9/30, 12noon This homework corresponds to materials up to Primitive Data. Answer each of the following questions clearly. For every program, include your algorithm in the write-up, use meaningful variable names and comment your code well for readability. Email your report to ctsai@iona.edu with the subject line "Homework2 submission". 1. (20 points) Based on the algorithm presented in class for conversion of numbers from decimal (base 10) to binary (base 2), do the following: Convert 110102 to decimal. Convert 100010 to binary. Convert 2B4D16 to decimal. Convert 100010 to hexadecimal Present the algorithm in pseudocode trace and the code with the number 49110 for conversion to binary and hexadecimal. 2. (20 points) To represent negative numbers using the notation of two'scomplement, invert all the bits and add one to the result. For example, negating 1111, we get 0000 + 1 = 1. Therefore, 1111 represents -1. An N-bit two's-complement numeral system can represent every integer in the range -2N -1 to +2N -1 - 1....

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:

Iona - CS - 201
CS201 Computer Science I Homework 3 Due: 10/14, 11:59pmThis homework corresponds to materials up to looping. Answer each of the following questions clearly. For every program, include your algorithm in the write-up, use meaningful variable names and
Iona - CS - 201
CS201 Computer Science I Date: 9/8 Goal: To exercise the concept of presenting an algorithm in pseudocode. Problem: Print a right-angle triangle Description: Write an algorithm in pseudocode which prints a right-angle triangle using &quot;*&quot; in pseudocode
Iona - CS - 201
CS201 Computer Science I Date: 11/10 Goal: To exercise the idea of conditional statement and procedural programming Problem: Computing the area Description: Write a program which computes the area of a shape by asking the user for two points and the
SDSMT - IE - 215
1.SymCorp was established in January 20xx and has been in operation for one year. Assume assets, liabilities, and owner equity were zero when the company was launched one year ago. Construct a balance sheet for SymCorp from the following transactio
Santa Clara - COEN - 120
The RACE 2001-2002 project team drew the initial Figure 1-1. Therefore, much of the schematic is still the same. You can find the original drawing in the RACE 2002 senior thesis, Figure 4-8. Please reference RACE 2002 senior thesis for a complete des
Iona - CS - 311
CS311 Computer Organization and Programming Sample Final ExamProblem 1 Answer briefly each of the following questions:_ _ _ _ _a) Is the expression F(w, x, y, z) = xy + xz + yz + xyz in Sum-of-Minterms Canonical Form? Why or why not? If not,rewr
Santa Clara - COEN - 120
Input Login to RACE Interfac e Equipment Power ON/OF F Adjust Trancei ver Frequen cies Adjust Packet Modem Request Data LoginOutput Entry to SystemConstraints Login Dependent Upon Scheduled Time Response Time of Equipment EquipmentExpected Resp
Iona - CS - 301
CS301 Data Structures &amp; AlgorithmsProject #3: Simulating a Cellular Automaton (Due: 10/19/04) In the 1940s, J. Von Neumann introduced a restricted model of parallel computing called a cellular automaton (CA), which is essentially an n-dimensional ar
Santa Clara - COEN - 120
Rose-Hulman - CH - 211
Review: Handout for the Chapter 1 Review (Answer key) 10 21 all section except for the writing section 10 23 writing section (10 min) 1. (12)Same format as the quizzes Both reading and writing 2. Listening (7) Weather forecasts *Review: -Weath
Santa Clara - COEN - 120
RACE 2003-2004USE CASECarleton Cheng Peter SalasPACKAGESRACE 2002-2003 USE CASE DIAGRAMS:RACERACE_SchedulerCreate Ac c ountLoginChange Us er InfoView Res erv ations Change Res erv ation R es erv eSet R es erv ationFull AccessRAC
Santa Clara - COEN - 120
RACE Design Team 2003-2004Peter Salas COEN Major Carleton Cheng COEN MajorIntroductionR emote A ccessible C ontrol E nvironmentIntroductionWhat is RACE? A way to communicate with satellites through a remote ground station using HAM radio si
Santa Clara - COEN - 120
RACE IV: 2003-2004 PROBLEM STATEMENTTeam Members: Peter Salas Computer Engineering Major Carleton Cheng Computer Engineering MajorPROBLEM STATEMENT: RACE IntroductionCurrently, the RACE project is progressing into a more fully developed Remote
Santa Clara - COEN - 120
RACE IV: 2003-2004 PROBLEM STATEMENTTeam Members: Peter Salas Computer Engineering Major Carleton Cheng Computer Engineering MajorPROBLEM STATEMENT: RACE IntroductionCurrently, the RACE project is progressing into a more fully developed Remote
U. Houston - CUIN - 3111
Insert Name of School HereFIELD TRIP PERMISSION FORMYour child's class will be attending a field trip to: Date: Cost: Time: Transportation: Location: Notes: Please return this permission slip by: I give permission for my child, __, in room
U. Houston - CUIN - 3111
GOVERNMENTS:limited vs. unlimitedI. UnlimitedA. Characteristics 1. Power in hands of individualsUnlimited (cont'd)B. Types 1. dictatorship a dictator is an individual who .Unlimited (cont'd)C. Examples 1. An example of a dictator is Adolf
U. Houston - CUIN - 3112
*Unit Plan Template Unit AuthorFirst and Last NameUnit Overview CurriculumFraming QuestionsDavid CampbellEssential QuestionWhat is history? How do we separate fact from fiction? Who decides what is important? How can modern technology help
U. Houston - CUIN - 3113
CUIN 3113Online Orientation WorksheetInstructions: Please answer the following questions (you may use Microsoft Word to fill in the information) and submit it to the assignment system by midnight, January 31. Name: David Campbell Email Address: d
U. Houston - CUIN - 3112
*UnitPlanTemplateUnitAuthorFirstandLastNameUnitOverview CurriculumFramingQuestionsDavidCampbellEssentialQuestion UnitQuestionsWhatishistory? Howdoweseparatefactfromfiction? Whodecideswhatisimportant? Whataresomewaysthatprogressismeasured? H
Central Washington University - CS - 101
Alice Barr Realty We get your price and we sell it quickly! Address City Selling Agent Asking Price Selling Price of Asking isting DateSale Date % L 8687 Kenwood Road Hernandez 725000 645250 Miami 39173 39187 7 Kingston Sunrise Carey Court 500000 465
U. Houston - CUIN - 3111
Description of SkillsIn this product, I utilized a linear powerpoint presentation to present a lesson. The information was displayed for the students in outline form. The colored backgrounds are more pleasing visually than an old dusty chalkboard. I
U. Houston - CUIN - 3111
A field trip to the Zoo!Field Trip Details What to bringLocation The Houston Zoo Date November 14, 2003 Time Please have your child at his or her classroom no later than 8:30 A.M. Transportation School bus Cost \$10.00 per student to cover tour cos
U. Houston - CUIN - 3111
U. Houston - CUIN - 3111
SeeSight is the most complex sense. The average person blinks every 2-10 seconds.HearEars help to maintain balance. Dolphins hear 14 times better than humans. (the best of all mammals)TasteThere are four basic tastes: sweet, salty, bitter, and
U. Houston - CUIN - 3111
ReflectionIn this course, I have learned to utilize various programs that I had no previous experience with- such as Inspiration and Adobe Photoshop. In addition, I have learned to utilize programs such as Powerpoint in more creative ways than I had
U. Houston - CUIN - 3113
Monday Topic: Grade: Subject: Rationale: Comprehension 4th grade ReadingNovember3, 2008 By learning prefixes students will be able to expand their vocabulary. By expanding their vocabulary they will increase their listening and speaking compre
U. Houston - CUIN - 3113
Tristan Herrington 456-89-2604 HISD Children's Literature Lesson Plan Rationale: No two human beings are alike. All humans have individual physical characteristics. I chose the book The Colors of Us because it focuses on the differences of skin color
Albion College - PPT - 121
Welcome to Chemistry 121Syllabus http:/www.albion.edu/chemistry/abeilstein/121What is chemistry all about? Observe changes (macroscopic properties) Color, taste, wavelength emitted/absorbed, change in temperature, change in physical state U
LSU - APPL - 003
Policy Statement Number: PS-56 Title/Topic: Campus FM Radio Station Effective Date: 02/06/2006 Revision Number: PS0056.R01CAMPUS FM RADIO STATIONPURPOSE To establish policies and operating procedures necessary to carry out the University's obligat
East Los Angeles College - PH - 123
To be submitted in the seminar of week 3Take home mock exam for PH123 Elements of Scientific MethodAnswer ONE question within one hour (circa 40 min if you take Philosophical Arguments): 1. Can repeated observations confirm scientific theories? Wh
Wells - CS - 325
Part of web.config, pulls in multiple configuration files, each with their own separate configurations: &lt;enterpriselibrary.configurationSettings xmlns:xsd=&quot;http:/www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http:/www.w3.org/2001/XMLSchema-instance&quot; applicat
Wells - CS - 325
CS 325 Quiz 9, 4/20/091.Describe 4 of the following. a. seek time: time it takes to reposition the disk arm over the correct track. b. rotational latency: time it takes for the sector to be accessed to appear under the head. c. block: a contiguous
SUNY Albany - JR - 688735
James H. Ruppert299 West Lido Promenade Lindenhurst, NY 11757 Phone 631-553-8099 E-mail jr688735@Albany.edu Website www.albany.edu/~jr688735EducationColorado State University, Fort Collins, CO M.S., Atmospheric Science (mesoscale meteorology; de
Albion College - CH - 301
Thermodynamic quantities for various processes:Type of ProcessGeneral EquationwqUHTIrreversible expan/comp against constant (ext.) pressure -Isothermal Irreversible expan/comp against constant (ext.) pressure - Adiabatic Reversible expa
Laurentian - MGT - 3806
SMALL BUSINESS MANAGEMENTChapter 1 The Role of Small Business and Entrepreneurship in Canada CHAPTER OBJECTIVES1. Discuss the evidence of the level of interest &amp; activity in the small business sector. 2. Review common methods of definin
LSU - HPC - 20090413
Intermediate MATLABZhiyu Zhao (sylvia@cs.uno.edu) The LONI Institute &amp; Department of Computer Science College of Sciences University of New Orleans 04/14/2009OutlineIntroduction Getting StartedLaunching MATLAB on a LONI Cluster The MATLAB UIs Ge
Maine - BEH - 450
Anthropological Perspective Infertility is a common disorder that has been documented as far back as the Biblical records of Abraham and Sarah. Prayer is considered the only solution to a childless couple and the will of the Lord is regarded as final
NJ City - PDFS - 0809
NATIONAL ALUMNI PRESIDENTS SINCE 1950YEARS 1950 - 1952 1952 - 1954 1954 - 1955 1955 - 1956 1956 - 1958 1958 - 1961 1961 - 1963 1963 - 1965 1965 - 1967 1967 - 1969 1969 - 1972 1972 - 1974 1974 - 1976 1976 - 1978 1978 - 1980 1980 - 1981 1981 - 1982 1
Allan Hancock College - PAGE - 143166
Miscellaneous Publication 29/2005 ISSN 1447-4980 May 2005PASTORAL STOCK WATER WORKBOOKPastoral Stock Water WorkbookThis project has been supported byThe Department of Agriculture, WACover photograph: Troy Sinclair Cataloguing-in-publication
U. Houston - CUIN - 3113
LilyDinhChau14602MissionHills Houston,TX77083 Contactnumber:(832)2770266 Email:MsLilyChau@yahoo.com Objective: Currentlyseekingalongtermteachingpositioninscienceforsecondaryschools toenablekidstheknowledgeandskillstosucceedinlife. CertificationExams
U. Houston - CUIN - 3113
Technology Scavenger HuntOne of the first things you will want to do when you get to your campus, whether as a student teacher or first year teacher, is conduct a Technology Scavenger Hunt. During the hunt you will want to identify technology tools
U. Houston - CUIN - 3111
U. Houston - CUIN - 3111
L I L Y
U. Houston - CUIN - 3111
So.You DON'T think that SEA SERPENTS Could possibly be real. No slinky and slimy sea creatures With scales of green and teal No sharptoothed, Horned and Bearded Monsters Swim beneath the Seas of Blue Well, don't look now, Scientific Genius.`Cause
U. Houston - CUIN - 3111
Winter SolsticePoint on the ecliptic where the Sun is at its southernmost point below the celestial equator, occurring on or near December 21AstrologyPseudoscience that purports to use the positions of the planets, sun, and moon to predict dail
U. Houston - CUIN - 3111
U. Houston - CUIN - 3111
NonLinearPresentationNoemiPineda Cuin3111Tuesday8:30am October31,2002Le Play C Tim With Be ts ircle e arsQue stionWhattypesofanimalsare represented?BearsPigsQue stionWhichbookwasused?Despierta,Osogris!Mr.BearQue stionWhatlanguage
SUNY Albany - CSI - 500
CSI 400/500 Operating Systems Spring 2009Lecture#20Security Measures Wednesday,April29thUnits of Protection Memory I/Odevices Programs DataLevels of Protection None Isolation Nosharingofprocessesorresources Shareallornothing Publicorp
Simons Rock - CMPT - 250
ALUOp ALU control block ALUOp0 ALUOp1F3 F2 F (50) F1Operation2 Operation1 Operation0 OperationF0
U. Houston - CUIN - 3111
Simons Rock - CH - 250
Data Register # Registers Register # Register # DataPCAddressInstructionALUAddress Data memoryInstruction memory
Simons Rock - CH - 250
State elementCombinational logic
Simons Rock - CH - 250
Simons Rock - CH - 250
S.F. State - MATH - 800
MATH 800 FOUNDATIONS OF MATHEMATICS OUTLINE 44 1. 2.JT SMITH SPRING 20083.I'll hold office hours as scheduled, through 21 May. I presented some material from the unit, Gdel's and Tarski's Theorems on Incompleteness and Undefinability. a. Its pa
Simons Rock - CH - 250