c++ programming for simulation a robot clean rooms Roomba can only go left, righ
ID: 661393 • Letter: C
Question
c++ programming for simulation a robot clean rooms
Roomba can only go left, right, up, and down from its current location.
Keep the classes, members, and functionality specified in the design above.
Member variables in all classes must be private or protected for encapsulation rules. ?
requires:Your class definitions in a .h file and your implemented classes in .cpp files.
Your template class can have interface and implementation in a .hpp file. ?
You must also have your main function in a simulate_roomba.cpp file, separated from the class implementations.
Your program will take the name of a file, battery life, and starting position as command arguments with the -f (filename), -b (battery), -V (moves before viewing), -r (starting row -c (starting column) options a.out-f floorplan.txt -b 100 -r 0 -c 0 -v 1 Catch Exceptions with File l/O You will try to open the file for input, but if it is not present, then you must catch the exce and let the user know that he/she must supply a floor plan file in order to run the simulat The file with the floor plan doesn't contain dimensions. It only contains the cells of floor potential objects, indicated by 'f or 'd' for floor (or dirty floor) and 'o' for object. For exan f ffo f ffo o of f For this Assignment, your floor doesn't need to have objects, it can just be a dirty that needs to be cleaned! Use classes with a Template, "is a”, “Has a", and "Uses" relationship Here are the classes you need to have template class Room private: Floor f; T *obj; //obj could be a Roomba, Person, etc. public: //The functionality of a room is to view it, put /lobjects in it, take objects out of it, etc. void clean room) if (obj !=NULL) obj->clean floor (f)