Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-01-2007, 11:44 AM   #1
Beta Member
 
Join Date: Mar 2007
Posts: 1
Lightbulb Objective C

Can anyone help me to comeplete this assignment in objective C, please.

Trip Class
Create a class that satisfies the following requirements:

Each trip has a destination (e.g. "London") a distance travelled (number of kilometres, e.g. 34.56), and a date (e.g. "28/02/2007").
Create a GNUmakefile that compiles your class and the accompanying test code into a command line tool that performs all the tests and prints a test report.

Logbook Class
Create a logbook class that contains a list of trips as well as a starting point for the first trip (e.g. "Nathan"). Operations should include adding a trip, calculating the total distance traveled, returning the longest and shortest trip, and calculating the average trip distance.

Create a GNUmakefile that compiles your classes and the accompanying test code into a command line tool that performs all the tests and prints a test report.

Commit everything to the repository and tag it as "milestone2".

Graphical User Interface (GUI)
Create a GUI that shows (and allows changing) the trip starting point, a list of trips, the total distance travelled, the longest and shortest trip, as well as the average trip distance. Also create a way of adding a trip, e.g. by having a field for the trip name, date, and distance, and an Add button that would then add that trip.

Create a User documentation that explains how to use your GUI.
Commit everything to the repository and tag it as "milestone3".

Thanks!
__________________

hclam88 is offline   Reply With Quote
Old 04-01-2007, 12:39 PM   #2
Fully Optimized
 
UK31337's Avatar
 
Join Date: Feb 2005
Posts: 2,776
Default Re: Objective C

Objective C? What are you talking about, you want to use object orientation in C? If that's what you're getting at, you're wanting C++ - using C for that purpose is just abuse of the language and totally incorrect.
UK31337 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:21 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0