Ask a Question | Answer a Question! |
Submitting your question...
ResFinder - Thousands of Practice Papers
Class ChaArray contains an array of n characters (n<=100). You may assume that the array contains only the letters of the English alphabet. Some of the members functions/methods of ChaArray are given below.
Class name: ChaArray.
Data members/instance variables:
Char ch[] an array of characters
int size the size of array of characters.
Members functions/methods:
ChaArray() constructor to assign to initialize instance variables to null.
ChaArray(char c[]) constructor to assign characters array c to the instance variable.
void displayArray() to display the list of n characters.
void move() to move all the upper case letter to the right side of the array and the lower case letters to the left side of array without using any standard sorting technique
e.g. input : t D f s X v d
output: t d f s v X D
Specify the class ChaArray giving the details of the two constructors and the functions void displayArray() and void move() only. You need to write the main function. |
|
asked by Anugrahkapoor24 (anugrahkapoor24) 5 years ago |
0 |
Other Questions on This Topic
I miss the old res papers and the friends you could make here. |
|
asked by Joseph Chennattu (joseph444) 35 days ago |
2 |
What is the difference between steam turbines and gas turbines? |
|
asked by Yogesh (yogesh) 52 days ago |
1 |
+ 5 more questions by yogesh
who is jessica's father in merchant of venice? |
|
asked by Yogesh (yogesh) 82 days ago |
1 |
What is "how are you" in French? |
|
asked by Yogesh (yogesh) 82 days ago |
1 |
What is the boiling point of water at 2 bar? |
|
asked by Yogesh (yogesh) 210 days ago |
1 |
The organ of Corti is present on the
a. Basilar membrane of the median canal
b. Tectorial membrane of the median canal
c. Tectorial membrane of the vestibular canal
d. Basilar membrane of the tympanal canal |
|
asked by Yogesh (yogesh) 1 year ago |
2 |
Who was the president of USA during WWII? |
|
asked by Yogesh (yogesh) 1 year ago |
1 |
I've got an endsem exam in an hour but all I am doing is reading old threads on res. 🥲 |
|
asked by Nisarg Bhavsar (nisarg71) 65 days ago |
3 |
Hlooo..itzz been longgg...ICSE 2018 batch anybody?? |
|
asked by Snigdha (silver2002) 116 days ago |
3 |
tips and tricks to answer dialogue in french |
|
asked by french123 226 days ago |
0 |
physics icse prelim |
|
asked by Bananachips (bananachips) 1 year ago |
0 |
who was daughter of shylock |
|
asked by Ansh Anand (teleansh) 1 year ago |
3 |
what is Lenz law |
|
asked by Nidhi Mohunta (samairamohunta) 1 year ago |
1 |
A body of mass 0.2 kg falls from a height of 10 m to a height of 6 m above the ground. Find the loss in potential energy taking place in the body. Let g = 10 m/s². |
|
asked by ICSE (icse) 1 year ago |
1 |
|