Write a C++ programme to calculate area of a circle, a rectangle or a triangle depending
upon a user’s choice.
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
Please help for this.
OpenStudy (ajprincess):
u mean using object orientation?
OpenStudy (ajprincess):
or jst using mulitple functions? @Skumar730
OpenStudy (ajprincess):
Please answer. I am trying to help you.
OpenStudy (anonymous):
use any method
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (ajprincess):
k then.
OpenStudy (ajprincess):
do u know switch case?
OpenStudy (anonymous):
No i'm from mechanical background.
OpenStudy (anonymous):
So i have no idea about this.
OpenStudy (ajprincess):
switch case in C++ allows u to switch between choices.
The syntax or the form to use switch case is
switch(choice)
{
case 1: statement;
break;
case 2: statement;
break;
case 3: statement;
break;
default : statement;
}
does that make a little sense?
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
OpenStudy (anonymous):
OpenStudy (anonymous):
i attachemy assigment if any one can help me in solving this.
OpenStudy (anonymous):
LOL can we use pseudo code?
OpenStudy (anonymous):
yes
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (ajprincess):
OpenStudy (anonymous):
this is such a trivial program but keeping that aside,why ask some thing like this in a physics group?
OpenStudy (anonymous):
i didn't understand wht u want u say @ quarkine
OpenStudy (anonymous):
if i need to post it in Physics group ? @ Quarkine
OpenStudy (anonymous):
i am saying you should better find a C.S group and ask it there..that is why we have different groups for different subjects..