Hey C++programmers out there i know this will take up some time but if you are willing to give me the codes to the following qns i would really appreciate it 
A1.
(a) Write a program which accepts an integer from the keyboard and
prints out the corresponding number of the character "*". For
example, if the integer 5 is entered, five "*" will be printed out
by making a call to a function printstars().
Program outline:
main()
{
int num;
cout << Enter a number : ;
cin >> num;
printstars(num);
}
( B) Using the printstars() function created above, design a program
to draw a right angled triangle using "stars". The adjacent sides
of the triangle have the same number of stars as entered on the
keyboard. For example, if the number entered is 5, the following
is displayed:
*
***
****
*****
--------------------------------------------------------------------------------
A2. Write a program that will analyse, for your class, the grades
obtained by all the students for Structured Programming. The
program will prompt the user to enter the grade for each
student. Valid grades are A, B, and C. The program calculates and
displays the total number of As, Bs and Cs. The user should be
able to enter the grades in uppercase or lowercase. You may
assume there are only 10 students in your class.
Your program must be modular. Write a function to read and
total the grades and another to print the results .
A skeleton of the program is given below:
char grade; //-- global variables
int totalA, totalB, totalC;
main()
{ ReadandTotalGrades();
DisplayTotals();
}
---------------------------------------------------------------------------
A3.
(a) Write a program, which prompts the user to enter three integer
numbers. It then finds and displays the smallest of the three
numbers.
Program outline:
main()
{
int num1, num2, num3, smallest;
cout << Enter the first number : ;
cin >> num1;
cout << Enter the second number : ;
cin >> num2;
cout << Enter the third number : ;
cin >> num3;
smallest = findSmallest(num1, num2, num3);
cout << The smallest number is : << smallest;
}
( B) Design two more functions, on lines similar to the function
findSmallest(), one to find the largest and another to find the
average of the three numbers.
The function prototypes are as follows:
int findLargest(int, int, int);
double findAverage(int, int, int);
-----------------------------------------
**Its about "Function"
Hopefully someone good will help this out :B
A1.
(a) Write a program which accepts an integer from the keyboard and
prints out the corresponding number of the character "*". For
example, if the integer 5 is entered, five "*" will be printed out
by making a call to a function printstars().
Program outline:
main()
{
int num;
cout << Enter a number : ;
cin >> num;
printstars(num);
}
( B) Using the printstars() function created above, design a program
to draw a right angled triangle using "stars". The adjacent sides
of the triangle have the same number of stars as entered on the
keyboard. For example, if the number entered is 5, the following
is displayed:
*
***
****
*****
--------------------------------------------------------------------------------
A2. Write a program that will analyse, for your class, the grades
obtained by all the students for Structured Programming. The
program will prompt the user to enter the grade for each
student. Valid grades are A, B, and C. The program calculates and
displays the total number of As, Bs and Cs. The user should be
able to enter the grades in uppercase or lowercase. You may
assume there are only 10 students in your class.
Your program must be modular. Write a function to read and
total the grades and another to print the results .
A skeleton of the program is given below:
char grade; //-- global variables
int totalA, totalB, totalC;
main()
{ ReadandTotalGrades();
DisplayTotals();
}
---------------------------------------------------------------------------
A3.
(a) Write a program, which prompts the user to enter three integer
numbers. It then finds and displays the smallest of the three
numbers.
Program outline:
main()
{
int num1, num2, num3, smallest;
cout << Enter the first number : ;
cin >> num1;
cout << Enter the second number : ;
cin >> num2;
cout << Enter the third number : ;
cin >> num3;
smallest = findSmallest(num1, num2, num3);
cout << The smallest number is : << smallest;
}
( B) Design two more functions, on lines similar to the function
findSmallest(), one to find the largest and another to find the
average of the three numbers.
The function prototypes are as follows:
int findLargest(int, int, int);
double findAverage(int, int, int);
-----------------------------------------
**Its about "Function"
Hopefully someone good will help this out :B