The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
SOLVE THE FOLLOWING QUESTIONS:
PART 1)
Write a C++ function having two value parameters X and N with result type float to find the sum of series given below:
1+X1/2!+X2/3!+………+XN/(N+1)!
PART 2)
What will be the output of the following program:
#include
#include
#include
#include
void ChangeString(char Text[], int &Counter)
{
char *Ptr=Text;
int Length=strlen(Text);
for(;Counter{
*(Ptr+Counter)=toupper(*(Ptr+Counter));
}
}
void main()
{
clrscr()'
int Position=0;
char Messages[]="Pointer Fun";
ChangeString(Message,Position);
cout}
PART 3)
Find the output of the following program:
#include
#include
#include
void Convert(char Str[], int Len)
{
for(int Count=0; Count{
if(isupper(Str[count]))
Str[Count]=tolower(Str[Count]);
else if(islower(Str[Count]))
Str[Count]=toupper(Str[Count]);
else if(isdigit(Str[Count]))
Str[Count]=Str[Count]+1;
else Str[Count]='*';
}
}
void main()
{
Char Text[]="CBSE Exam 2005";
int Size=strlen(Text);
Convert(Text,Size);
for(int C=0,R=size-1;C
char Temp=Text[C];
Text[C]=Text[R];
Text[R]=Temp;
}
cout}
PART 4)
Write a C++ function having two value parameters U and n with result type float to find the sum of series given below: 1-U+U2/2!-U3/3!+U4/4!..........(+/-)Un/n!
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll