C++ .Net Simple Class Project
$30-100 USD
货到付款
General Class Guidelines:
1 - Classes will all be declared in 1 file. .cpp
2 - No Manifests or macros will be used
3 - No inlines will be used
4 - Static variables are not permitted within member functions
5 - Consistent nomenclature is encouraged
6 - No Library Functions
BOAT YARD PROJECT: first cut
Class Semantics:
1. Attributes:
A) Length - measured in meters and tenths. Tolerances - max 10.0, min 3.0, unknown: 0, incorrect: -1.
B) Beam - measured in meters and tenths. Tolerances - max 3.0, min 1.0, unknown: 0, incorrect: -1.
C) Draft - measured in meters and tenths. Tolerances - max 2.0, min .25, unknown: 0, incorrect: -1.
D) Name - Maximum 20 bytes, truncate if excessive; all alphas must be CAPS; unknown "NONAME".
E) Material - 1: wood, 2: fiberglass, 3: steel/aluminum, 4: other; unknown: 0, incorrect: -1.
F) Manufacture - 1: custom, 2: production, 3: modified production, unknown: 0, incorrect: -1.
* This attribute may only be altered if unknown or incorrect; also may be altered if it has a value of 2 and is changing to 3. *
G) Owner ID - 6 digit number - maybe a long integer; unknown or unspecified = -1.
2. Methoods:
A) Accessors and Mutators for all attributes per the above specs. Length, Beam and Draft - allow accessors and mutators in feet and tenths.
B) Default Constructor: All attributes set to unknown.
C) Initialise Constructor: All attributes.
------
BOAT YARD PROJECT: second cut
Classes:
Boat
- Add Boolean: Commercial
- Class will be abstract
DERIVE 2 SUBCLASSES FROM IT:
1 - Sailboat:
Inherits Boat: Plus
Attributes:
Rig - integer: 1 - sloop, 2 - ketch/yawl (default)
Hull - integer: 1 - monohull, 2 - cat/tri maran (default monohull)
2 - PowerBoat:
Inherits Boat: Plus
Attributes:
HP (horsepower) - integer. Maximum 400, min 0.
Fuel - integer: 1 - gasoline, 2 - diesel, 3 - other (default gas)
Maintain base class semantics for invaid/unknown in derived classes.
** Both subclasses will have a method called CalcFee: **
This will be based upon the following:
Sailboat Fee will be LOA * 50
Powerboat Fee will be LOA * 50 PLUS
100 if HP <= 150
150 if HP between 151 and 300
200 if greater than 300
A 7.5 surcharge is added if the boat is commercial
项目ID: #22072
关于项目
授予:
有16名威客正在参与此工作的竞标,均价$60/小时
I can provide this to you on the same day that you accept the project. I helped developed some of the original C++ compiler tools, so my experience goes back a long long way... I am also very familiar with C++ .NET, so 更多