/*
Purpose of the program :
Section #1
Calculate an average of (1) first 3 digits, (2) middle 2 digits,
and (3) last 3 digits of your student ID. Display the calculated
average in integer. For example, if your student ID is 111-22-333, the
output should look like the following;
The average of 111, 22 and 333 is 155
Section #2
Calculate an average of (1) first 3 digits, (2) middle 2 digits,
and (3) last 3 digits of your student ID. Display the calculated
average with 5 digits after the decimal point. (Hint: Use commands
explained in Chapter 3.) For example, if your student ID is 111-22-333,
the output should look like the following;
The average of 111, 22 and 333 is 155.33333
*/
#include%26lt;iostream%26gt;
#include%26lt;iomanip%26gt;
using namespace std;
void main()
{
// You have to code the program yourself.
} // main
C++ program?
May be you can contact a C++ expert at websites like http://oktutorial.com/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment