Noob here :( related to robot final code

I am a newbie :frowning: in the programming thing. I have got separate code files for my robot i.e for distance sensor,for motor shield and for bluetooth slave . They are working when i tested separately . My problem is for final thing i have to write one sketch for everyone . Any help will be appreciated . I am sorry if my question is stupid. :confused:

To get help, you must show us your complete sketch. Attach your code using the </> icon on the left side of the posting menu.