Objective C

hclam88

Beta member
Messages
1
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!
 
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.
 
Back
Top Bottom