**RE-POST**We manufacture boxes using a machine that make the size of each box based on an a--p random generator. The 2 dimensions of the base of the first box are a and a^2, and second box has dimensions a^3 and a^4, etc. with everything done mod p. We are concerned about whether we can "nest" a lot of boxes so that storage won't be a problem. A sequence of boxes can be nested provided that each successive box can be oriented so that its two dimensions are less than or equal to the two dimensions of its predecessor. So a box of size 2x9 can be nested in a box of size 9x4, but cannot be nested in a box of size 8x7. Create a class Nester that contains a method (function) maxNest that is given a,p and n indicating n/2 boxes that will be manufactured and that returns the largest number of boxes that can be nested in one stack. DEFINITION: Class: Nester Method Signature(function): int maxNest (int a, int p, int n); Your method may assume the following as preconditions: -a and p are between 1 and 2,000,000,000 inclusive and a*p<=2,000,000,000 (so no overflow will occur) -n is an even integer between 1 and 2,000,000,000 inclusive. Here's a test program: int main(){ cout<<" a p n: "; int a,p,n; cin>>a>>p>>n; Nester nester; cout<<"longest nesting is " <

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. I will be asking you why you did what you did, because I need to understand your logic. So either during or after you're done coding, you will need to explain me your algorithm. If you have further questions, pls email me. I need to have this program done by July 16. But I will need you to send me your pseudocode or algorithm on July 13 the latest. Thanks :)

## Platform

Windows 2000, Microsoft Visual C++ 6.0

## Deadline information

Don't bid if you're not serious. Previous coder for this project dissappeared on me. So don't waste my time if you're not going to be cooperative.

Kemahiran: Pengaturcaraan C, Kejuruteraan, MySQL, PHP, Kejuruteraan Perisian, Ujian Perisian

Lihat lagi: what's an algorithm, what is the definition of algorithm, what is a programming algorithm, what is an algorithm in programming, what is an algorithm, what is a method in programming, what is algorithm in programming, what is a class in programming, what is a algorithm in programming, test email generator, test code generator, stack programming, programming what is a class, programming test questions, programming latest, programming definition, programming class definition, programming algorithm questions, mod programming, mod algorithm

Tentang Majikan:
( 4 ulasan ) United States

ID Projek: #2859000