3

Vector of Characters (Id-1498)

Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018] Design a class charVector that has a character vector as datamember. Provide member functions in the class to createVector, duplicateVector, duplicateRevVector and print. Functions shall be defined as follows: initializeVector – read a string and create a vector of characters duplicateVector – Add the content of the vector […]

Continue
5

Chess, Carrom and Scrabble Players (Id-1145)

Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018] Each student in a class of ‘n’ plays at least one indoor game chess, carrom and scrabble. Given three list of names of students who play chess, scrabble and carrom, develop an algorithm and write a C++ code to find the students who can (i) Play chess and […]

Continue
1

Sort Data in File (Id-1532)

Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018] Given a file with a set of numbers in a file, write a C++ program to sort the numbers and print them. Please Comment Working if the code worked to you If you have other working codes please comment the codes enclosing with <pre> and </pre> 🙂 Example: <pre> Your […]

Continue
1

Count Words in Tweets (Id-1531)

Bonus Practice Sheet Winter 2018 [17-Mar-2018 to 7-Apr-2018] Given a word ‘w’and a set of tweets in a file named as tweets.txt, write a C++ program to count the number of words in the file. Assume that the program need not bother about case of the words as the input takes care of the same. Input […]

Continue

This site uses cookies and by using the site you are consenting to this.