Dave

Dave Kovic runs a temporary employment agency in Georgetown, Washington, D.C., and has a side job impersonating President Bill Mitchell. He is requested by Secret Service agent Duane Stevensen to make an appearance as the President at a hotel. Dave assumes it is a matter of security, but it is really to cover up Mitchell's extramarital affair with a White House staffer.
Mitchell suffers a severe stroke during the rendezvous, leaving him in a coma. White House Chief of Staff Bob Alexander and Communications Director Alan Reed convince Dave to continue impersonating the President. They tell him that Vice President Gary Nance is mentally unbalanced, but the truth is that Bob does not want Nance in power because his honesty would get in the way of Bob's lies and corruption. Only Bob, Alan, the Secret Service, and the medical staff know of the switch. First Lady Ellen Mitchell leads a separate life, rarely seeing the President.
The public is notified that Mitchell has had a "minor circulatory problem of the head." With Dave established as President, Bob and Alan send Nance on a 12-nation goodwill tour of Africa and implicate him in a savings and loan fraud. Once Nance is forced to resign, Bob plans for Dave to nominate him as Vice President, whereupon Mitchell will have a more serious stroke and Bob will ascend to the Presidency.
Dave's enthusiasm revives Mitchell's popularity. He visits a homeless shelter with Ellen, who does not understand why he has taken a sudden interest. Bob forges Mitchell's veto of a funding bill that includes the shelter. Mitchell wanted to veto the bill because of budget issues, while Bob does it out of spite. When Dave is confronted about the veto by Ellen, he confronts Bob, who offhandedly tells him that if he can cut $650 million from the federal budget he can keep the shelter. Dave has his accountant friend Murray Blum help him rewrite the budget so that the project may be reinstated. To make sure that Bob doesn't stop him, Dave does it publicly in front of the press.
Suspecting that he is not really her husband, Ellen tricks Dave into revealing the truth. Dave and Duane show her Bill on life support in the White House basement. She and Dave decide to leave the White House. However, after a night out, they realize all the good they could still do and decide to return.
Dave blackmails Bob into resigning by threatening to go public with the switch, then announces a plan to find a job for every American who wants work. Nance returns from Africa and confronts Dave about the savings and loan scandal, insisting they both know there is no merit to the allegations. Dave talks to Alan, who reveals the whole plan was Bob's idea. Meanwhile, Bob reveals Mitchell's involvement in the savings and loan scandal while pushing his own candidacy for the presidency. Realizing that he can't go into hiding, Dave decides to take responsibility for Mitchell's actions.
The scandal will make the jobs program difficult to pass, but Nance tells Dave that it is a wonderful idea. Dave tells Ellen that Nance is a good man and he would make a great president. Realizing what is planned, Ellen tells him that she does not want to lose him. The next day in a joint session of Congress, Dave admits to Mitchell's role in the scandal, but introduces evidence proving Bob was the mastermind and Nance is innocent. Bob realizes that Alan has betrayed him. Dave fakes a stroke and makes a switch with the real Mitchell in an ambulance en route to the hospital. Nance becomes Acting President under the terms of the 25th Amendment and is sworn in as President five months later when Mitchell passes away. Bob and eight other members of the Mitchell Administration are indicted and arrested on 34 charges of law violations and obstruction of justice two days after Dave's jobs initiative passes.
Dave decides to run for city council and Ellen comes to the office to volunteer. As they embrace, Duane stands guard outside the office door.

Question: Who was the mastermind of the scandal?
Answer: Bob