Stuyvesant Computer Programming Club
Project 1
Home
Lessons
Topics Covered
Club Policies
Links
Contact Information
Downloads

Project 1

To recieve credit for the club, you MUST COMPLETE this project. Because, it is the first project, it will not be very hard.
 
Your assignment will be to write a program that averages three numbers. For example, the program will ask:
Please enter three numbers:
and you enter three numbers, such as 3, 5, and 2. The program will then say something like
The average is 3.33333
 
This project is due at last club meeting. You may submit it during any of the club meetings (before or during the last meeting of this term). You may print it out or handwrite it. It doesn't really matter. But, if you have to make sure that the program works. For example, if I input a 2, 3, 4 it should not say that the average is 7 or something like that. It should say that the average is 3.
You may also email it to me (preferred) at psistorm15@yahoo.com and if you email it to me, DO NOT use attachments. just copy and paste your code. And also include your name somewhere in the email.
Remember, to get credit this term, you must have attended 50% of the meetings AND have completed this project.
 
And one more word of advice:

double a;
a = 14/3;
cout<<a;

will output 4. On the other hand,

double a;
a = (double)14/3;
cout<<a;

will output 4.6667 (the right answer)

Enter supporting content here