CSI 250 Midterm, Spring 2010

American University of Science and Technology · Computer Programming II · 4 pages · Mr. Elie Nasr

All CSI 250 files
CSI 250 Midterm, Spring 2010, page 1

Stuck on a question? A tutor can walk you through it.

CSI 250 Midterm, Spring 2010, page 2 CSI 250 Midterm, Spring 2010, page 3 CSI 250 Midterm, Spring 2010, page 4

More CSI 250 files

Show the text of this exam
write the Interface, implementation and driver Tor the following: (59 paints) Create a Time Class. Each object of this class will represent « specific: Cree 8 Ti cay. toring the boule, altes, und seconds es lopes und day ai char*. Include appropriate constractor(s), destructor, access methods advance(int h, int mm, inf 2) to advance the current (set and‘or get), a method time of an existing object, a method neseli()'lo reset the current time of an existing object to 1:00:00 AM, a prim() function that prints the day and-time, and a function getcount() that returns the number of objects created. Create a non-member function called fillarray() that fills up the array with the corresponding number of objects. Create a non-member function called sortarraray() that sorts the array of objects by name of the day. You must perform the following tasks in the driver: Create a dynamic array of n objects and call it schedule, n must be input I- form the keyboard. pe a ai cer Oe, 2. Call the function fillarray() 4- Print array objects 5. Create automatic object with (“wed",10, 10, 10) as initial values and i (public first or private first) but ©)in any order and multiple times, if they have multiple times, but all specifiers of the same mariet tr or sik tus mabe ‘vaulethas is ocean caer. Automobile hymudal. JAgHOT: statements are then allowed in the main function of your