Register | Sing In

New posts

Stacks in C programming Linked Lists in C programming File Input/Output in C programming Check prime numbers in C Programming C Programming Enumeration C Programming Union

Archives

2013-10 2013-09 2013-08

لو سمحتوا حل هالسؤال

April 1, 2016 Posted by: Rana Views: 187

 

 

OBJECTIVE
The assignment focuses on constructing an ArrayList described in your text book..   
DESCRIPTION
Implement the array based List given in the class and add the following member functions to the class:

Note: the list should be of type character. 

(4 pt) replaceChar(char c1, char c2), replaces all occurrences of c1 by c2 in the list.  List1 before call [A][C][V][C][F][R][C][B][C][]  list1.replaceAll(‘C’, ‘A’) will result in List1 After call  [A][A][V][A][F][R][A][B][A][] 

(3 pt) countChar(char), counts how many times a specific character found in the list.  

(3 pt) printEvens, prints only the characters in even locations.   

GRADE SHEET

 Take care of documentation

oAll function definitions have comments before them

o Meaningful variable names 

o Any syntax error, Grade = 0.

o  TEST CODE (-10 pts if not exist)
int main() 

{  cout<<"Write your main() function to test ALL functions. "     <<"We will run The program using YOUR AND OUR main() function."<<endl; 

return 0; }

Best Answer

No answer

Online Chat

LiveZilla Live Help

Popular posts

Function strtok in C programming Check prime numbers in C Programming C Programming Union Linked Lists in C programming File Input/Output in C programming C Programming Enumeration

RSS-subscribe

New materials

Subscribe