Friday, January 9, 2009

More Console Apps

Your goal today is write a console application that computes the perimeter length and area of regular polygons. Here's the pseudocode:
  • iostream, cmath, namespace std
  • Declare variables
  • Start loop
  • Prompt user for how many sides for the polygon
  • Prompt user for length per side
  • Calculate perimeter
  • Calculate area using equation (on chalkboard)
  • Output perimeter & area
  • Prompt user to do more polygons
Upload your program when you're done...


.

No comments: