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.
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.
A ticket at a ticket selling booth at a fair is priced at Rs.2.50/-. The booth keeps track of the total number of people who have visited the booth, the number of people who have actually purchased a ticket and the total amount of money collected. Design a class called Ticbooth which includes the following Members:
Class name Ticbooth
no_people number of people who have visited the booth.
amount total amount of money collected.
void initial() To assign initial values to data members.
Increment total number of people only visiting the booth and not purchasing a ticket.
Increment total number of people purchasing a ticket and the amount collected when a ticket is sold.
To display the total number of people visiting the booth (the total number of people purchasing the ticket as well as those not purchasing a ticket).
To display the total number of tickets sold and the amount collected.
Specify the class Ticbooth giving details of the functions void initial(), void sold(), void notsold(), void disp_totals() and void disp_ticket(). The main function needs to be written.
Please solve this program
Class MyArray contains any array of n integer (n <= 100) that are already arranged in ascending order. The subscripts of the array elements vary from 0 to n-1. Some of the member functions of MyArray are given below:
Class name MyArray
- an array of a integers.
- size of the array.
MyArray() constructor to initialize n = nm and the
void readArray() array arr reads n integers that are arranged
in ascending order.
void displayArray() displays n number of integers from array arr.
int binarySearch(int value) searches for the value in the array using the binary search technique. It returns the subscript of the array element if the value is found, otherwise it returns -999.
(a) Specify the class MyArray giving the details of the void displayArray() and int binarySearch(int value) only. You may assume that the other functions/methods are written for you. You do need to write the main function.
Hello you crazy people!
So what's up? (don't reply "sky" or I'll personally come to thrash you xD)
You know, life has strange ways. I just woke up from a power nap(Don't judge: I DO power naps xD), and my mind was like," Hey idiot! Remember a place which brought you face to face with your crazier side?" And I was instantly reminded of this helluva place, where I made friends...nah! Who am I kidding? You're not my friends.....
You guys are family.
Okay. Emotions aside (phew!), I was so lost in my life till now, that I had (almost) forgotten about this place. And you might think I knew that yesterday was results day, but honestly, I didn't.
It was to my great amazement that I saw people posting their percentage on qa. I didn't get to know about the results, 'cause I had been away from Internet for a while, and woke so late today, that I didn't read that thing called the newspaper. So you can imagine my excitement when I got to know about this.
To each and everyone who passed, great!
To everyone who scored above 70%, great!
To everyone who scored above 80%, great!
To everyone who scored above 90%, great!
To everyone who scored above 100%, okay. Now THAT is not great, 'cause you don't deserve that kind of a score if you don't know percentages are never more than 100 xD.
Seriously, it might sound offensive to some, but I don't want to speak anything but truth. Its GREAT and WONDERFUL that some of you guys got soooooo many marks, but let's face it: It really doesn't matter.
I've spent one whole year with that Marksheet, and frankly speaking, I've had a better relationship with my tablecloth: at least people see it when they come to my room! That marksheet brought home only few opportunistic guests to my home, the day after the results, and forced me to run to the shop to buy snacks for them. All work, and no play!
Then, it brought me a teeny-tiny bit of pseudo-respect from some godforsaken people, and that's it. Since then, it's lying in a file, with some other useless certificates: surrounded, yet secluded.
To say it in the language of Ross(from FRIENDS) : We are on a break!!
My motive here, though, is not to take anything away from your success. You deserve all tha accolades you will get. But I want you guys to learn something more from this. I want you to have a greater sense of achievement: This was probably the first public exam that you RIPPED apart!!!!!
And even if you didn't live up to your expectations, I want you to feel proud: proud that you made through one of the toughest boards.
And even if you scored high, I want you to remain modest: modest because this is the first, and not the last of all the many challenges you'll face.
To put it in perspective: You have your 12th boards (if you are not pursuing Medical/Engineering, 'cause the latter should really not give a rat's sh*t about boards, and focus on better exams), your Competitive exams, and more importantly: Life.
Life is the biggest challenge you'll face, but also the easiest if you have the right attitude. You'll land in situations which will test you better than just cramming some random king's birthdate. They will test your soul.
And I want to clarify: I'm not being pessimistic. I am being realistic. I am one of those, who wouldn't wonder whether the glass is half empty or half full. I would just pick it up and drink.
And that's the best thing to do! Don't thing life is good or life is bad: Just embrace it for what it is!
Okay. Enough preaching like a yogi, let's come to business. I think many of you must be confused about the future. If you are, then let me in on the confusion, because hey! I was too in a place like you!
So, keep celebrating no matter what the result was. Make it a point to party HARDER than the dumb city(shitty) topper who is still crying about that one mark. Live life KING size, even if you think you are the rat troubling the king. xD
And a very important query in public interest: Yashaswini, what was your English score????
Count your blessings guys!
P.S. : A cool quote which I feel fits somehow:
"Life is short: Smile while you still have teeth :)"
the website usually goes off due to traffic on result declaration day , when everyone rush
for the result , so their any alternative to tackle this like any other website ,
(cant be patient enough to wait for the traffic jam to be cleared sooo)
I'm so proud to see all of your results! I scored a 96.6 and I am pretty happy about it.
I scored less marks in English (89) .
On the other hand I got 99 in Hindi, 100 in C.A. which is good for me.
the surprise was Science and H.C.G. (97 and 98 respectively) which was totally unexpected because I was weak in those subjects. Thanks to this community for helping me get such amazing marks and the only way I can repay Res is by helping the next Batch coming along. Will you help me?
Anyways I'm really happy for all of you and wish you success for your future endeavors.
All The Best in Life.
GUYS WHO ALL ARE TENSED FOR THEIR ICSE RESULTS ONE THING I HAVE TO SAY
DONT BE SCARED IF U THINK U HAVE NOT DONE WELL IN UR BOARDS THEN TAKE STRESS BUT THE PEOPLE WHO HAVE BEEN WORKING REALLY HARD AND FOUND THEIR PAPERS REALLY GOOD SHOULD NOT WORRY
TELL ME ONE THING IF U GET 75% OR U R GETTING 90% JUST BE HAPPY WITH WHAT U GET
DONT THINK OVER IT
GUYS IF U TAKE TENSION NOW WHAT WILL BE UR TENSION WHEN U GO INTO UR COLLEGE OR WHEN U R DOING UR GRADUATION
GUYS DONT THINK ABOUT
EVERYONE COMES OUT WITH FLYING COLOURS
YES I AGREE THERE IS A MOMENT OF ANXIETY AND NERVOUSNESS DONT THINK MUCH JUST THINK THESE ARE UR SCHOOL EXAMS AND THOSE RESULTS HAVE COME
JUST THE DIFFERENCE IS THAT PAPERS IN ICSE R A BIT EASIER
AND JUST CALM DOWN U ALL I GUARANTY U 101% EVERYONE IS GONNA GET ABOUT 70 SO TAKE IT A CHIL PIL GUYS THIS IS JUST ONE STAGE OF UR LIFE
Hello, guys!! I thought of posting something here.How are you all doing?? I know that for many of you guys the post board enjoyment as intended, couldn't get executed,right?? At one point in the holidays, I was so much bored that I was thinking that school's better than this. duhh... So, finally the day is gonna come when we'll be able to have a look at the outcome of our hardwork. I know you all will kill it!! If anyone of you guys is too anxious about the results,you don't need to be anymore!! You know why?? This was just a lil' freakin' battle of your life, winning or losing which won't make you king/queen of the whole empire. 10th mark sheets are mainly used for just verifying the individual's date of birth, marks don't matter that much. But if you've won this battle, don't get overconfident, the bigger battle's awaiting(12th and life ahead). Even if you've lost it, remember the bigger battle's awaiting(12th and life ahead). But don't let go of this opportunity of class 12th, it matters much more than class 10th marks. Start toiling from today, prepare for the battle, practice sword-fighting, defending yourself(from silly mistakes), assemble an army of skilled soldiers(army of good words for good score in English),make provisions for water and food before the actual battle starts(assemble
pens,pencil,eraser,etc in your pencil box for the exams but not right now!!) So guys, this huge spherical ball where you reside, is filled with kingdoms to be conquered, just your performance at the battlefield will matter. If you start early, you will master the art of battling and you'll be standing tall one day, as the king/queen of a huge empire. Decide which kingdom you're most familiar with, which you can easily enter into and conquer(which career option is your stronghold, which you can opt and make a good career in). If you won't prepare for any battle, your ancestors'(or parents) wealth will gradually get exhausted and you'll be left with nothing and by that time, you'll get too old for winning any battle easily and you'll cry over split milk. This is the age of struggle, which when wasted, is gone forever. You all are young warriors, in the best form and shape for fighting even the toughest battle!! So, my motive behind this post was to encourage tensed people here and to make all my resmates realize the importance of this (1/frequency,its easy), life will lay several opportunities in front of you but remember, whatever happens, happens for good, even if you fail, there are tonnes of kingdoms(may be bigger and better) in front of you, waiting to be conquered by someone like you(YES, you,the one reading this!!)Failure is not the opposite of but a part of success.So, I'll stop this philosophical drama, now, I'm sure you guys will rock!!That's all. I won't write ATB(except here), coz what has happened is history now and I've seen too many ATB's(sorry, one more time) here already. Ba-bye!!
Hey, guys!! I'm missing you all a lot!! So lively were those days when we used to ask and answer all types of questions!! Such a beautiful place this was when you all were here!! Now, this place has turned from a fertile patch of land to a barren one!! Like a flooded river to a dried one!! Why this dreariness?? You all have got internet connecion, right?? You all have got a phone, laptop or something like that right?? The respaper admins haven't blocked yall,right?? You can access respaper like fb, whatsapp, insta or twitter, right?? All of us are posting messages like 'miss you all', 'miss this place',bla bla bla. You all are acting like you can't access respaper. Who's barred you from doing that?? You people are behaving like a prisoner, who has the key of his cell's lock and is in an unguarded, unlocked police station, from where, he can easily escape and wants to escape but is just sitting inside, yearning to go outside.What an irony!!! Make this place lively, it has given us what we couldn't have got easily from any other source for free. It has given us friends from all over the country, it has enabled us to clear our doubts whenever we had any. Aren't you all indebted to such a site?? Rather several of you might be engaged in other social sites, which gave you friends,which might have distracted many of you, which are not at all comparable to this site, which gave us all knowledge,practice papers for free, which usually people buy from booksellers, spending money. So, guys, I'm requesting you all to not to post such emotional talks. Instead of making whatsapp groups, we could've made groups here. This site provides everything. Salute to the makers of respaper.
Hey, guys!! Let's decide a particular time of the day when we all are free and can chat. We can share jokes on this page and have fun. I think 12 noon will be apt. So everyone, if you guys are free, we will meet at 12. If anyone wants the time to be changed, we'll decide a new time. I don't like such a place to be deserted,where new posts were arriving every 2 minutes or so,earlier and now, not even after 2 days!!
Hi guys! I know you won't recognise me,I was here during our board exams,going through your answers & clearing all my doubts.You guys really helped me a lot by clearing all my doubts without showing any ego of yourself.All of you guys are really invaluable gems whose price cannot be estimated with any instrument.I thought to wish all you guys 'ALL THE BEST' for your results.Special thanks to 'Saksham' bhaiya for his motivational speeches,they really worked as a stress buster for me.May We all come out with flying colours on 14th May.So,once again 'ALL THE BEST' from your not so worthy friend 'monstercat'.
This is Prateek Gurjar here,today I am not gonna answer or question anything here but I am here today to say something to you all guys:
First of all as we are Indians and foremost I am from U.P so I start this thanks message by first saying this to God.It was only possible because of you God that I met such wonderful people.
Now coming to people,
As my habit of respect,I am gonna say thanks first to my seniors on Res:
Note:Add ‘didi’ and ‘bhaiya’ behind the names:P
1]Ishi-My IPL mate. xD
2]Sonal-My subects selector and suggestions giver. xD
3]Nikitha-My English tutor. xD
6]Garima-The Avengers lover. xD
7]Anshika-Creativity overloaded. xD
8]Abhi-Mere developer bhaiya. xD
9]Abhinav-Apse toh silly se silly doubt bhi pucha. xD
10]Eash-The Engineering encyclopedia. xD
11]Shaksham-Csk will win, so don’t worry. xD
12]Rogue Knight-Ab toh naam bta do mere philosopher bhaiya. xD
13]Arjun-That ABCD race. xD
14]Sam-That wasn’t a good fun but still. xD
15]Safi-Aapse toh milunga Agra. xD
Ishi,Eash,Abhi,Abhinav Aap sabke Engineering wali conversation sunke maza aajata. xD
Rogue KnightExamples dena toh koi aapse sekhe. xD
Now coming to my classmates on Res:
1]Rahul-Dost kum bhai zyada, aur haan milenge jaldi hi. xD
2]Devanshu-Arre tumhe kaise bhul sakte mere allrounder bhai. xD
3]Jatin-Tum toh Honey singh ho bhai, Vol.2 kaisa hai. xD
4]Kulwant-Punjabi munda. xD
5]Himanshu-Arre apne Mr.Rajput. xD
6]Taha-Memes se maze aaya bhai. xD
7]Yashaswini-The best writer. xD
8]Avani-The Marvel lover. xD
9]Anjali-The dark lover. xD
12]Yashasvi-Yoga guru. xD
13]Anoushka-Maths lover & Delhite. xD
14]Aditi-Enjoy your trip to Ramashewaram. xD
15]Utkarsh-Tu toh jaan h bhai apni. xD
16]Deepal-Wo computer m poschar wala question aaya. xD
17]Aayush-Your responses were great. xD
18]Doraemon-I don’t know your name bhai,but discussion b/w us was great. xD
19]Aryan-Good & postive responses. xD
20] Leander Vikram,Mustafa & Pranav too. xD
Now coming to juniors,
Though there is only one till now on Res but still:
1]Vindhya-Study hard and score good. xD
In the last I wanna thanks Google and Res makers.Thanks to google because one day I was searching previous year papers on google and I came across Res, so installed it.Res makers for making such a great app.
I wish you all success in every ventures in your life, may you all become Engineers/Doctors or whatever you aspire.God bless you and your near ones.May you be always happy.All the best for your results.
I will be on Res,won’t quit it because you guys are awesome,I am really blessed to have you because its a great feeling for me to talk to you guys from different states with different ideas.
For any suggestions/help or anything, please feel free to ask and please avoid grammatical mistakes keeping in mind that I’m from U.P. xD
This one too-
The rate at which solar energy is received by every square metre of area directly facing the sun is 1400 W. A rectangular solar heater of side 2m by 2.5m working at 50% efficiency utilizes this energy to heat water filled completely in a cubical containers of side 1 m. What is the time required (in seconds) to raise the temperature of water by 1 degree Celsius. The heat capacity of the container assumed to be negligible and assume the sun to be directly overhead on the container.
Can anyone please help me with this-
A rocket starts from rest in upward direction with vertical acceleration of 50 m/s^2. If a stone departs from rocket at t=3sec. What is the velocity with which it hits the ground?
Heyy! I made a tribute to Avicii! Hope you like it. Please do like and subscribe. https://youtu.be/YH9HxdS-LEM
Had nothing to do after boards xD Hope you support me :v Plus i'll release my own music too. XD
Anyone going to IIT kalrashukla coaching for Jee preparation?..........and do you think it is any good in leaving your hometown and going to Kota for preparing for Jee?
Which do you think is better: Fiitjee or Akash or kalrashukla?
PS:we don't have resonance or Allen institute in our city..:)
Hey people. Are there any Percy Jackson fans here? If so, here's a little treat for you: It's a song written and sung by Paola Bennet. Back when the PJO fan community was actually active, this song was pretty famous. Now, not so much. Anyway, here it is:
It's a song based on Nico DiAngelo's life. He was one of the most beautiful characters, wasn't he? (:( And yet, his life can best be described as a bittersweet one.