for second program.....i ws not able to understand clearly what u want.......wat i understood is tht u want to convert all letters to uppercase
the program is below-
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
void main()
{
clrscr();
int l;
char arr[50];
cout<<"\nEnter a line of text:";
cin.getline(arr,50);
l=strlen(arr);
for(int i=0;i<l;i++)
{
if(islower(arr[i]))
{
arr[i]=toupper(arr[i]);
}
}
cout<<"\nThe converted array is:\n";
for(i=0;i<l;i++)
{
cout<<arr[i];
}
getch();
}
pls rate if useful.......