I'm having trouble with a part of my homework assignment...
I'm not asking for the answer, i just need some pointers! I'm not even sure where to start! (is the answer in the form of a pointer, array, structure, ???) Ive been trying for the past 10hrs straight with hardly anyluck and would love a sample or two, before i start crying
Question:
As facility engineer at a construction site for a new theater, you have been asked by the project architect to determine how many seats need to be ordered in order to fill the theater. The architect wants the seating arrangement to fanout from the stage such that the row of seats nearest the stage has 14 seats with each succeeding row towards the back of the theater has 2 more seats per row than the previous row. When completed, the theater will have a total number of (36) rows.
1-Devise a algorithm which expresses the solution to this problem.
2-Write and run a short C++ program which uses the algorithm to display a tabular listing of the row and the number of seats in that row. Finally, output the total number of seats needed.
Thanks for your time,
Steve