# 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.

2 Pages

### HW #4

Course: COMPUTER CS 230, Spring 2012
School: Capitol College
Rating:

Word Count: 209

#### Document Preview

Carothers David CS 230 10/9/07 Exercises Homework #4 1. What are the three main components of the STL? a. Containers b. Iterators c. Algorithms 2. What is the difference between an STL container and an STL iterator? a. While both are class templates, containers are used to manage objects of a given type, where as iterators are used to step through the elements of a container. 4. Write a statement that declares...

Register Now

#### Unformatted Document Excerpt

Coursehero >> Maryland >> Capitol College >> COMPUTER CS 230

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.
Carothers David CS 230 10/9/07 Exercises Homework #4 1. What are the three main components of the STL? a. Containers b. Iterators c. Algorithms 2. What is the difference between an STL container and an STL iterator? a. While both are class templates, containers are used to manage objects of a given type, where as iterators are used to step through the elements of a container. 4. Write a statement that declares and stores the elements of the following array in to a vector object. Char vowls[5] = {`a','e','i','o','u'}; a. vector<char> charVowls[5] = {`a','e','i','o','u'}; 8. What is the output of the following program segment? (Assume the screen is an ostream iterator initialized to the standard device output to out put elements of the type int.) a. int list[5] = {2,4,6,8,10}; vector<int> vecList(5);//declares vecList copy(list, list + 5, vecList.begin());//(copy from(start), copy from (end), copy to(destination)) copy(vecList.begin(), vecList.end(), screen); cout << endl; OUTPUT: 246810 10. What is the output of the following program segment? (Assume the screen is an ostream iterator initialized to the standard output device to out put elements of the type int.) a. Int list[5] = {2,4,6,8,10}; Vector<int> vecList(7); Copy(list, list + 5, vecList.begin()); Veclist.push_back(12); Copy(vecList.begin(), vecList.end(), screen); Cout << endl; OUTPUT: 2,4,6,8,10,12
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:

Capitol College - COMPUTER - CS 230
David Carothers CS 230 10/16/07 Homework # 5 Excercises 2. What is the output of the following code? a. cout&lt;list-&gt; info; b. cout&lt;A-&gt;info; c. cout&lt;B-&gt;link-&gt;info; d. cout&lt;list-&gt;link-&gt;link-&gt;info; 5. Add the function splitAt to split a linked list at a node
Capitol College - COMPUTER - CS 230
David Carothers CS 230 10/24/07 Homework # 6 Excercises 2. What is a base case? The case in which the solution is given directly. 3. What is a recursive case? The case in which the base class is derived from. Also known as the general case. 7. Consider th
Capitol College - COMPUTER - CS 230
David Carothers CS 230 11/7/07 Homework # 7 Excercises 5. Write the equivalent infix expressions for the following postfix expressions. a. a b * c + a*b+c b. a b + c d - * (a+b)*(c-d) c. a b c- d * (a-b) c) * d 8. Write the definition of the function temp
Capitol College - COMPUTER - CS 230
David Carothers CS 230 11/7/07 Homework # 8 Excercises
Capitol College - COMPUTER - cs 418
CS-418 Homework 1 - Key Professor: Van Horn Pp. 26-27 1.1 What are the two main purposes of an operating system? o efficient use of resources o protection o ease of use 1.3 What is the main advantage of multiprogramming? o more efficient use of CPU keeps
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 2 Chapters 3 &amp; 4 Pp. 147 - 149 o 5.1 Provide two examples of multithreading that improve performance over a single-threaded process. o 5.3 What are two differences between user-level threads and kernel
Capitol College - COMPUTER - cs 418
Professor: Van HornCS-418 Homework 3 1. What are the four requirements for deadlock? 2. Explain why the graph on Slide 11 in the Chapter PowerPoint file represents a deadlock.3. Explain why the graph on Slide 12 is not a deadlock even though there is a
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 4 1. Given the following memory configuration (with shaded areas assigned to running processes) 100 KB 500 KB 200 KB 300KB 600 KB Assume that arriving processes (in order) are 212KB, 417KB, 112KB, and
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 5: Virtual Memory Page Replacement Simulation Assignment: Write a simulation of a virtual memory manager that can manage frames using a FIFO, Optimal, or LRU algorithm. Your simulator will read a file
Capitol College - COMPUTER - cs 418
Professor: Van Horn CS-418 Operating Systems Homework # 6 Disk I/O Scheduler Simulation Assignment: Write a simulation of disk scheduler that can service disk I/O requests using FIFO, SSTF, and Scan algorithms. Your simulator will read a file named &quot;IOReq
Capitol College - COMPUTER - cs 418
CS-418 Operating Systems Professor: Van Horn Homework 4 Write a Simulator (in C+ or Java) that implements the Banker's Algorithm The Banker will read two files, resources.txt and processes.txt. (Note: be sure to use these exact filenames and assume that t
Capitol College - COMPUTER - cs 418
CS-410 Operating Systems Security Professor: J. Anderson Homework 3 Date due: Monday, September 20 Write a Round Robin Scheduler Using either C+ or Java, write a Round Robin scheduler. The scheduler will read a process ID and CPU time for 10 processes fro
Capitol College - HUMANITIES - HU 331
Chapter 1: Two Dimensional Art 1. Which of the following is a painting medium that is transparent and must be worked wet? a. Oil b. Watercolor c. Gouache d. Tempera 2. Oils, perhaps the most popular of the painting media, were developed near the end of wh
Capitol College - HUMANITIES - HU 331
Chapter 2: Sculpture 1. All sculpture is three-dimensional. a. True b. False 2. Freestanding sculptural works are called which of the following? a. Linear b. Sculptural c. Full round d. Relief 3. Sculpture designed to be seen from one side only is called
Capitol College - HUMANITIES - HU 331
Chapter 3: Architecture 1. Which of the following is not a structural system? a. Post-and-lintel b. Cantilever c. Arch d. Suspension Which of the following is a structural system that consists of horizontal beams and vertical supports? a. Post-and-lintel
Capitol College - HUMANITIES - HU 331
Chapter 4: Music and Opera 1. Which of the following would be defined as a polyphonic composition based on one main theme or subject? a. Sonata b. Concerto c. Fugue d. Cantata 2. Which of the following would be defined as a composition for solo instrument
Capitol College - HUMANITIES - HU 331
Chapter 5: Theatre 1. In the theatre, types of plays such as tragedies and comedies, are called which of the following? a. Conventions b. Genres c. Dynamics d. None of the above The characteristics of tragedy have not changed from the 5th century B.C.E. t
Capitol College - HUMANITIES - HU 331
Chapter 6: Cinema 1. Which of the following is the basic picture unit of a film? a. Reel b. Shot c. Frame d. Cut Of the following, which type of film attempts to record actuality using primarily a sociological or journalistic approach? a. Absolute film b.
Capitol College - HUMANITIES - HU 331
Chapter 7: Dance 1. Dance appears to have sprung from which of the following human needs? a. Religious needs b. Psychological needs c. Aesthetic needs d. None of the above A body of group dances performed to traditional music is called which of the follow
Capitol College - HUMANITIES - HU 331
Chapter 8: Literature 1. A novel whose subject matter comprises the adventures of a rogue is called which of the following? a. Manners b. Gothic c. Historical d. Picaresque A novel whose subject matter comprises finely detailed observations of the customs
Capitol College - HUMANITIES - HU 331
Chapter 9: Ancient Approaches 1. The earliest known sculpture dates from the period of approximately what date? a. b. c. d. 2. 50,000 B.C.E. 45,000 B.C.E. 40,000 B.C.E. 30,000 B.C.E.Venus figures have been found in which of the following locations? a. b.
Capitol College - HUMANITIES - HU 331
Chapter 10: Pre-Modern WorldCheck 1 &amp; 171. Fifth-century Athenian painting of the Classical style demonstrates which of the following? a. Naturalism b. Emotionalism c. Formal design d. 2. All of the aboveCPolyclitus's canon refers to what? a. A weapon
Capitol College - HUMANITIES - HU 331
Chapter 11 1. Which of the following represents a fundamental quality of Renaissance painting? a. Frenetic composition b. Deep space c. Open composition d. All of the above Masaccio's The Tribute Money puts each character in the archaic linear stance. a.
Capitol College - HUMANITIES - HU 331
Chapter 12: Age of Industry 1. In comparing the works of Hokusai and Hiroshige, both artists make use of deep space through linear perspective. a. True b. False The Kota tribe guardian figure exhibits which of the following characteristics? a. Anatomical
Capitol College - HUMANITIES - HU 331
Chapter 13: Modern, Post-Modern, Pluralistic World 1. According to the text, the terms pluralism and ethnocentrism are synonymous. a. True b. False According to Paula Gunn Allen, most Native Americans suffer from &quot;land sickness.&quot; a. True b. False For the
Capitol College - HUMANITIES - HU 331
Sheet1B C B D A A B B C D D C A DRYPOINT B C &lt; CH1 B C D A A B A C B C D B A A B A C D B B C B A B &lt; CH2 D A C B C B A C B C D A B C C C D C D A A B A B B C C C B C &lt; CH3 C B A B C C A C C A A D D D C B B B C B B C C C &lt; CH4 B B D C D B B D A B B B A A B
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM ISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Prin
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM ISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-sided
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM IISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Pri
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IFALL 2010EXAM IISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-side
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM ISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Pr
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM ISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-sid
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM IISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. P
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2011EXAM IISTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single double-si
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A - DIGITAL SYSTEMS IWinter 2012PRACTICE PROBLEMS - SET 11. 2.Draw the schematic for the function W X + YZ . Draw the schematic for the following functions using NAND
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWinter 2012SOLUTIONS OF PRACTICE PROBLEMS - SET 11. Draw the schematics of F = W X + YZ in terms of AND, OR, and inverter gates.W F XY Z 2. Draw t
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A - DIGITAL SYSTEMS IWinter 2012PRACTICE PROBLEMS - SET 21. Number Representation: Design a combinational circuit that converts a 4-bit one's complement number X to it
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWinter 2012SOLUTIONS OF PRACTICE PROBLEMS - SET 21. NUMBER REPRESENTATIONX3X2 00 0 0 0 0 X3X2 00 0 0 0 0X1X001 0 0 0 0 Y311 1 1 0 110 1 1 1 1X
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 1: INTRODUCTION TO THE ALTERA DESIGN SYSTEM This lab provides an introduction to the Altera Quartus II design software. You will use the Altera
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 2: INTRODUCTION TO LAB INSTRUMENTS Winter 2012The purpose of this lab is to introduce the basic lab instruments - digital oscilloscope, power
UC Davis - EEC - 180A
LAB INSTRUMENT REFERENCE EEC180A Purpose: This document provides an introduction to the lab instruments found in the EEC180A lab. These instruments include the HP 54600B oscilloscope, the HP 6205B dual power supply, the HP 6237B triple output power supply
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 3: COMBINATIONAL NETWORK DESIGN The purpose of this lab is to learn how to design a simple combinational logic network. Hardware Required: 1 74
UC Davis - EEC - 180A
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I Winter 2012LAB 4: COMBINATIONAL NETWORK USING MUXES AND CPLD In this lab, you will learn how to design and implement a combinational logic network
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 5: STATIC HAZARDS, LATCHES AND FLIP-FLOPS Winter 2012Objective The first topic in this lab is static hazards, which can cause a circuit to mal
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 6: COUNTER DESIGN Winter 2012Objective: Given a desired counting sequence, design and build the counter using flip-flops and gates. Derive the
UC Davis - EEC - 180A
ADDENDUM: INDIVIDUALIZED COUNT SEQUENCES
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS I LAB 7: DESIGN PROJECT: 15 Objective: In this lab, you will design a die game called 15. The object of the game is to score exactly 15 points in as
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer EngineeringEEC180ADIGITAL SYSTEMS I Laboratory Report Cover Sheet Name:Winter 2012Lab Number _ Title of Lab _ _Preparation Verification T A Signature _ Score _ Completion Verificat
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180A DIGITAL SYSTEMS Winter 2012Lab Report Requirements The lab reports are intended to serve two equally important purposes. First, they indicate your technical compreh
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A - DIGITAL SYSTEMS IWinter 2012PROBLEM SET 1-SOLUTION1. PROBLEM A.2 (PART F)Decimal 798 = Octal 14362. PROBLEM A.3 (PART E)Binary 1111 0011 = Hex F33. PROBLEM A.1
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWinter 2012PROBLEM SET 2-SOLUTION1. PROBLEM 2.17 (PART D)f X Y Z = X + Y X + Y + Z X + Y + Z f X Y Z = X + Y X + Y + ZZ X + Y X + Y + 0 X + Y X + Y
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWinter 2012PROBLEM SET 3-SOLUTION1. PROBLEM 3.6 (PART B)f A B C D = m 1 5 7 8 9 13 15 + d 4 12 14 Prime Implicant Chart1,5,9,13 (-01) 5,13 (-10-
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2012EXAM ISTUDENT INFORMATIONName ID NumberINSTRUCTIONSThe exam is closed book and notes. A single double-sided cheat sheet is allowed. Pr
UC Davis - EEC - 180A
UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF ELECTRICAL &amp; COMPUTER ENGINEERING EEC180A-DIGITAL SYSTEMS IWINTER 2012EXAM I - SOLUTIONSTUDENT INFORMATIONName ID Number Hussain Al-Asaad xxx-xx-xxxxINSTRUCTIONSThe exam is closed book and notes. A single
Northwood - ECON - 101
Cash Flow with Optional Line of CreditYou can customize this template by filling in a simple form, without editing a spreadsheet.This is a small and simplified working sample of the cash flow template. A customizable template is a flexible model that yo
University of Phoenix - ACC 225 - acc 225
Student Name: Chrissy J Weeks Class: ACC 225 Problem 07-05ACHOI ENTERPRISES Sales Journal Inv. No. 913 914 915 916 917 Trans. No. 3 4 5 6 7 A/R Debit Sales Credit 3,300 3,650 3,100 7,700 1,200 18,950 Cost of Goods Sold Debit Inventory Credit 1,500 2,850
University of Phoenix - ACC 225 - acc 225
Analysis of financial statement is a technique used to examine past performance of a company. It is carried out by professionals who study the accounts, calculate relevant ratios, make comments and present them to the management for decision making. At it
University of Phoenix - ACC 225 - acc 225
1.1.The following describe several different business organizations. Determine whether the description refers to a sole proprietorship, partnership, or corporation.(a) Ownership of Spirit Company is divided into 1,000 shares of stock.This company is kn
University of Phoenix - ACC 225 - acc 225
QS 2-3: Indicate whether a debit or credit decreases the normal balance of each of the following accounts:A. Office Supplies - Credit B. Repair Services Revenue - Debit C. Interest Payable - Debit D. Accounts Receivable - Credit E. Salaries Expense - Cre
University of Phoenix - ACC 225 - acc 225
Quick Study 3-1 a. UR b. PE c. AE d. AR e. PE Unearned revenue Prepaid expenses (Depreciation) Accrued expenses Accrued revenue Prepaid expensesQuick Study 3-9 Cash Accounting: Revenues (cash receipts). Expenses (cash payments: \$22,500 - \$2,250 + \$3,750)