Background
My professor assigned me a project as part of a course. The project is part of another student's thesis and has several flaws. I explained the problems of the project to my professor. However, the professor seems to believe that I just don't understand the project and don't know how to code.
The professor now sent the other student on a work trip for seven or eight months, starting in 10 days.
In the meantime, the professor asked me to fix the project and produce the results.
Unfortunately, the project is so flawed that I can't produce results with it. I believe that it's the other student's responsibility to fix the project. S/he also knows the project and it's issues much better than I do.
The professor still doesn't consider my concerns and just pushes me to finish the project. He wants to grade the course based on a publishable paper from this flawed project. (My other classmates already have required information to design a controller, and assigning this flawed project and grading like this is not fair.) Meanwhile, the professor does not even want to talk about a topic for my own thesis. I feel taken advantage of and don't know what to do.
Questions
What can I do to convince the professor that I should no longer waste time on another student's broken project but rather start my own? Would it be okay to refuse to work on this project?