CSI 250 Midterm, Fall 2010
American University of Science and Technology · Computer Programming II · 3 pages · Mr. Elie Nasr
More CSI 250 files
Show the text of this exam
SY caretatiy before start writing the code:
Fe He, arts etjors of thin class saprasnate 0 car of: 0 cnr deakes
dane ate the ear's name (string), car plate number (string),
(Date), car price (Moat), and s counter (ist) that is weed 10
(Gree ree pan member functions function calles array hat ncceys an sem
Objects of type car and fills it up with values form the keyboard, 2 fanction called
Serterray() that sorts the array of objects by car same, and 2 fonction called
that is wsed to print the list of alll cars.
should check for the validity of the car manufacturing date by
| Assume that the clas date bas already bees umplemented
teow Gey ext weer end 2 comet eeeat
3-Create an array of a objects, the number of objects must be input frum the Keyboued
a ran time Call the functions fillarray, sortarray(), and priatarray() respectively
4 Make ware that the dynamics objects, and dynamic arrays are released from the asm
after exiting the main) fencer
pation £2,115 points
wip 2s Ces Catiedg
*Fesrodet«) e Phenetunber with tec dsm members of type ober
PANEMARGST 4 and i ine: >), Then implement only the futleotan,
i. Overtoad
the impat, >>, operator w be able to enter the phone sumiber bn the form
(123) 456-7890
2 Overload the eutpet, <<, operator to be able to display the phone sumber in the
Stume format as that shown above
Question #3 (15 poists)
Whas are the operators that can not be overiosded”
4 “ pointer be used in nonmember functions? Why?