# 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.

Secure the ward spectry. Secure the quality program spectry. Remove the reckon of credits enslaved so remote from the insist-upond credits ce the quality. Secure the reckon of credits insist-upond ce the quality program. Secure the reckon of credits the ward has enslaved so remote. Display the input notification in Step 1 and 2. Display the congenial notification. What logic hallucination do you blot and how would you establish it? What steps insist-upon user interaction (Ex: user must expression in some input)?

## Expert Repartee

The attached algorithm is

1. Secure the ward spectry.

2. Secure the quality program spectry.

3. Remove the reckon of credits enslaved so remote from the insist-upond credits ce the quality.

4. Secure the reckon of credits insist-upond ce the quality program.

5. Secure the reckon of credits the ward has enslaved so remote.

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

Here are your interrogation and their repartees

1.1.2 What logic hallucination do you blot and how would you establish it?

Answer: If we behold the aloft algorithm, in Step 3 we are completeing a balance which scarcitys to remove reckon of credits enslaved so remote from the insist-upond credits ce the quality. To complete this balance we scarcity to learn the values ce reckon of credits insist-upond ce the quality program and reckon of credits the ward has enslaved so remote which is manufactured in Step 4 and Step 5. Hereafter it is disencumbered that we are completeing a balance externally learning the values ce the variables concerned in the balance which is a argumentative hallucination.

In arrange to establish the hallucination, chief we scarcity to learn the values ce reckon of credits insist-upond ce the quality program and reckon of credits the ward has enslaved so remote and then complete the balance. That moderation Step 3 should go succeeding Step 4 and Step 5.

Here is the algorithm succeeding establishing the hallucination

1. Secure the ward spectry.

2. Secure the quality program spectry.

3. Secure the reckon of credits insist-upond ce the quality program.

4. Secure the reckon of credits the ward has enslaved so remote.

5. Remove the reckon of credits enslaved so remote from the insist-upond credits ce the quality.

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

1.1.3 What steps insist-upon user interaction (Ex: user must expression in some input)

Answer: The succeedingcited the steps that insist-upon user interaction

1. Secure the ward spectry.

2. Secure the quality program spectry.

3. Secure the reckon of credits insist-upond ce the quality program.

4. Secure the reckon of credits the ward has enslaved so remote.

In the aloft steps we scarcity to secure the ward spectry, quality program spectry, reckon of credits insist-upond and reckon of credits enslaved so remote. All this notification has to be learn as an input from the user hereafter these steps scarcity user interaction.