Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

#1
September 2nd, 2012, 06:19 PM
 ForTomorrow
Registered User

Join Date: Sep 2012
Posts: 1
Time spent in forums: 3 m 33 sec
Reputation Power: 0
An algorithm for an IPO chart

Hi everyone,

I am new to the forum. I would like to know if someone can offer me some assistance. I am currently taking a beginners programming class and I want to know if someone can help me to write an algorithm for an IPO chart.

I am supposed to write an algorithm for a program that calculates and displays the volume of a rectangular box. Can someone help?

Thanks.

#2
September 2nd, 2012, 07:22 PM
 b49P23TIvg
Contributing User

Join Date: Aug 2011
Posts: 3,458
Time spent in forums: 1 Month 2 Weeks 4 Days 6 h 26 m 43 sec
Reputation Power: 403
Here is an example program for the geometrical problem. I don't know anything about money so I can't help you with the IPO chart.
Code:
```
#include<stdio.h>
#include<math.h>

int c;
puts("       -------");
puts("    --/       \\--");
puts("   /             \\");
puts("  /               \\");
puts("  |               |");
puts("  \\               /");
puts("   \\             /");
puts("    --\\       /--");
puts("       -------");
puts("");
printf("Volume is %g cubic lengths\n",volume);
puts("Use the arrow keys or mouse to rotate the sphere about any axis.");
puts("Press enter to terminate.");
while ((EOF != (c = getchar())) && ('\n' != c))
;
}

#define TAU (2*M_PI)  /* http://www.youtube.com/watch?v=jG7vhMMXagQ */

/* Skip the triple integral and use the formula */
}

int main() {
char buffer[30];
fgets(buffer,26,stdin);
return 0;
}```
__________________
[code]Code tags[/code] are essential for python code!

 Viewing: Dev Shed Forums > Programming Languages > C Programming > An algorithm for an IPO chart