Find Jobs
Hire Freelancers

Nester

$30-5000 USD

Закрито
Опублікований almost 22 years ago

$30-5000 USD

Оплачується при отриманні
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 " <<[login to view URL](a,p,n)<<endl; return 0; } ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. This code should be written using Microsoft Visual C++ 6.0, so that when I compile it I won't get errors or warnings related to compiler differences. 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 11. But I will need you to send me your pseudocode or algorithm before that. Thanks :) ## Platform Windows 2000, Microsoft Visual C++ 6.0
ID проекту: 2855846

Про проект

5 пропозицій(-ї)
Дистанційний проект
Активність 22 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
5 фрілансерів(-и) готові виконати цю роботу у середньому за $39 USD
Аватарка користувача
See private message.
$66,30 USD за 14 дні(-в)
4,1 (49 відгуки(-ів))
6,3
6,3
Аватарка користувача
See private message.
$51 USD за 14 дні(-в)
5,0 (10 відгуки(-ів))
3,5
3,5
Аватарка користувача
See private message.
$42,50 USD за 14 дні(-в)
4,2 (7 відгуки(-ів))
3,5
3,5
Аватарка користувача
See private message.
$17 USD за 14 дні(-в)
5,0 (14 відгуки(-ів))
2,5
2,5
Аватарка користувача
See private message.
$17 USD за 14 дні(-в)
5,0 (3 відгуки(-ів))
0,8
0,8

Про клієнта

Прапор UNITED STATES
United States
5,0
4
На сайті з черв. 14, 2002

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.