We will use ft mi and mthe function should return -1 if d1


Question: Prepare a function comp(D1,u1,D2,u2) where u1,u2 are distance units. d1 and d2 are distance numbers .

We will use 'ft' 'mi' and 'm'.The function should return -1 if D1 in u1 is a smaller distance than D2 in U2; it should return 0 if they are equal distances. Should also return 1 otherwise.

Need a little help trying to find out this one. Just need to get me started, thanks

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: We will use ft mi and mthe function should return -1 if d1
Reference No:- TGS0953361

Expected delivery within 24 Hours