Find Jobs
Hire Freelancers

Nester

$30-5000 USD

종료됨
게시됨 거의 22년 전

$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년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
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
6월 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)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.