Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Rewrite the following text expressed as an algorithm using pseudocode in terms o

ID: 3598781 • Letter: R

Question

Rewrite the following text expressed as an algorithm using pseudocode in terms of IF-THEN-ELSE statements

Whenever the Vice President and a majority of either the principal officers of the executive departments or of such other body as Congress may by law provide, transmit to the President protempore of the Senate and the Speaker of the House of Representatives their written declaration that the President is unable to discharge the powers and duties of his office, the Vice President shall immediately assume the powers and duties of the office as Acting President. Thereafter, when the President transmits to the President pro tempore of the Senate and the Speaker of the House of Representatives his written declaration that no inability exists, he shall resume the powers and duties of his office unless the Vice President and a majority of either the principal officers of the executive department or of such other body as Congress may by law provide, transmit within four days to the President pro tempore of the Senate and the Speaker of the House of Representatives their written declaration that the President is unable to discharge the powers and duties of his office. Thereupon Congress shall decide the issue, assembling within forty-eight hours for that purpose if not in session. If the Congress, within twenty-one days after receipt of the latter written declaration, or, if Congress is not in session, within twenty-one days after Congress is required to assemble, determines by two-thirds vote of both Houses that the President is unable to discharge the powers and duties of his office, the Vice President shall continue to discharge the same as Acting President; otherwise, the President shall resume the powers and duties of his office.

Explanation / Answer

Let VP be the Vice President, E be the the principal officers of the executive departments, C be the other body as Congress, P be the President, PS be the President protempore of the Senate, SH be the Speaker of the House of Representatives.

Input: All the members of both the houses and written declaration.

Output: Who will discharge the powers and duties of office, either President or Vice President.

Begin if ( (VP and E) or (VP and C) decides by majority rule that the President 'P' is unable to discharge the powers and duties of his office) then (VP and E) or (VP and C) transmit a written declaration that the President 'P' is unable to discharge the powers and duties of his office to the President pro tempore of the Senate 'PS' and the Speaker of the House of Representatives 'SH'. end if

\ On receiving the written declaration from VP and E or VP and C, P has the power to transmit a written response to PS and SH that he is completely abled to discharge his powers and duties of his office.

if (P transmits a written declaration to the PS and the SH that no inability exists and he should resume the powers and duties of his office)

\ res_time is the time period within which the VP and E or VP and C has to generate a response in reference to the written declaration made by the President 'P' to the President protempore of the Senate and the Speaker of the House of Representatives.

if ((there is no response made by VP and E or VP and C to the PS and the SH) OR (res_time>4 days)) then the President will resume the powers and duties of his office. else if( C is in the session)  then C is responsible to elect either P or VP as the official authority to discharge the powers and fulfil the duites of the office. else C is required to assemble within 21 days after receiving the P's written declaration to make a decision.

if ( 2/3rd members of both the houses vote against the P's written declaration) then VP will act as the Acting President to discharge the powers and duties of his office.

else P will resume the powers and duties of his office. end all.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote