I showed you the wiki page, right? So basically, there's about 6 groups, each with one aspect of pre-calculus. Like trig, geometry(mine), algebra, logic, things like that. Kay? So we first have to explain what our project is about, give examples, show formulas used for that specific topic, and then make worksheets, and do a presentation. Now, the presentation, is something you could do however you like. Power point, movie, whatever. I'm doing mine based on programming, mk? Tty in a bit on MSN. :P
Project question.
it is easier to make functions so you can add more calculations later on
is this function used to calculate the surface of a triangle, square or 5-sided thing?
if it is it isnt working i think
Code:
#include <iostream>
#include <math.h>
#define pi 3.141592654
using namespace std;
void firstfunction ();
int main()
{
char choice;
do{
cout << "which function do you like to use?!?" <<endl
<<"1. firstfunction"<<endl
<< "q. to quit" <<endl << "enter your choice:";
cin >> choice;
cout << endl;
switch(choice)
{
case '1':
{
firstfunction();
}
break;
}
}while (choice != 'q');
cin.get();
cin.get();
return 0;
}
void firstfunction ()
{
double area;
double S;
double N;
cout << "What is the number of sides?";
cin >> S;
cout << "What is the length of sides?";
cin >> N;
area = ( (S*S) * N )/( 4 * tan(pi/N) ) ;
cout << "Area = " << area << " ~!" << endl<<endl;
}
if it is it isnt working i think
This thread is closed for replies.

