Each square on a chess board can be described by a letter and number, such as g5
ID: 3861598 • Letter: E
Question
Each square on a chess board can be described by a letter and number, such as g5 in this example: The following pseudocode describes an algorithm that determines whether a square with a given letter and number is dark (black) or light (white). If the letter is an a, c, e, or g: If the number is odd: color = "black" Else: color = "white" Else: If the number is even: color = "black" Else: color = "white" Trace this algorithm by making a table such that: The table headers are the variables (one column per variable) The first row shows the initial (assumed) values of the variables Each following row shows a value change in a variable Give a set of four test cases for the algorithm from question 9 that covers all branches.Explanation / Answer
for 10.
case 1 : a1 , it will go in branch 1
case2: a2 , it will go in branch 2
case3: b2 , it will go in branch 3
case4: b1 , it will go in branch 4
Please clarify what do you mean by variables in quesiton 9, what do you want exactly.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.