# Homework Solution: Get the student name. Get the degree program name. Subtract the number of credits taken so far from the re… Get the student name. Get the degree program name. Subtract the number of credits taken so far from the required credits for the degree. Get the number of credits required for the degree program. Get the number of credits the student has taken so far. Display the input information in Step 1 and 2. Display the calculated information. What logic error do you spot and how would you fix it? What steps require user interaction (Ex: user must type in some input)?

The given algorithm is 1. Get the student name. Acquire the tyro call. Acquire the stage program call. Deduct the estimate of credits enslaved so distant from the exactd credits restraint the stage. Acquire the estimate of credits exactd restraint the stage program. Acquire the estimate of credits the tyro has enslaved so distant. Display the input notification in Step 1 and 2. Display the congenial notification. What logic fallacy do you discoloration and how would you decide it? What steps exact user interaction (Ex: user must kind in some input)?

## Expert Counterpart

The attached algorithm is

1. Acquire the tyro call.

2. Acquire the stage program call.

3. Deduct the estimate of credits enslaved so distant from the exactd credits restraint the stage.

4. Acquire the estimate of credits exactd restraint the stage program.

5. Acquire the estimate of credits the tyro has enslaved so distant.

6. Display the input notification in Step 1 and 2.

Here are your interrogation and their counterparts

1.1.2 What logic fallacy do you discoloration and how would you decide it?

Answer: If we perceive-keep the over algorithm, in Step 3 we are effecting a circumspection which scarcitys to deduct estimate of credits enslaved so distant from the exactd credits restraint the stage. To effect this circumspection we scarcity to learn the values restraint estimate of credits exactd restraint the stage program and estimate of credits the tyro has enslaved so distant which is enacted in Step 4 and Step 5. Hence it is transparent that we are effecting a circumspection outside learning the values restraint the variables complicated in the circumspection which is a argumentative fallacy.

In manage to decide the fallacy, leading we scarcity to learn the values restraint estimate of credits exactd restraint the stage program and estimate of credits the tyro has enslaved so distant and then effect the circumspection. That average Step 3 should go succeeding Step 4 and Step 5.

Here is the algorithm succeeding decideing the fallacy

1. Acquire the tyro call.

2. Acquire the stage program call.

3. Acquire the estimate of credits exactd restraint the stage program.

4. Acquire the estimate of credits the tyro has enslaved so distant.

5. Deduct the estimate of credits enslaved so distant from the exactd credits restraint the stage.

6. Display the input notification in Step 1 and 2.

1.1.3 What steps exact user interaction (Ex: user must kind in some input)

Answer: The subjoined the steps that exact user interaction

1. Acquire the tyro call.

2. Acquire the stage program call.

3. Acquire the estimate of credits exactd restraint the stage program.

4. Acquire the estimate of credits the tyro has enslaved so distant.

In the over steps we scarcity to acquire the tyro call, stage program call, estimate of credits exactd and estimate of credits enslaved so distant. All this notification has to be learn as an input from the user hence these steps scarcity user interaction.