POS 408 Wk 3 – Discussion – Understanding ‘if’ Statements and Recursion

0 items
POS 408 Wk 3 - Discussion - Understanding 'if' Statements and Recursion
POS 408 Wk 3 – Discussion – Understanding ‘if’ Statements and Recursion
$5.00
  • Description

POS 408 Wk 3 – Discussion – Understanding ‘if’ Statements and Recursion

Post a total of 3 substantive responses over 2 separate days for full participation. This includes your initial post and 2 replies to other students.

Due Thursday

Respond to the following in a minimum of 175 words:

Apply conditional statements in C# programming by providing an example of a nested if statement using various logical operators. Include else statements and at least one negation operator.

Discuss different ways to code the following:

  • If an account balance is less than $100, warn the account holder according to the following rules:
  • if the balance is between $50 and $100 warn the account holder that the balance is low
  • if the balance is between $25 and $50 then warn the account holder that their balance is critically low
  • if the balance is less than $25 warn the account holder to call the bank.

Recursion is a different way to implement repeating statements. Some problems can only be solved with recursion.

Implement an example of recursion in C#.

Discuss problems with recursion. In what situations must recursion be used?

Due Monday

Reply to at least 2 of your classmates. Be constructive and professional in your responses.