Question: Question 2 3 pts Question 3 The simple program below has one or more bugs in it. Select the line number for each bug. Sianna

 Question 2 3 pts Question 3 The simple program below has

Question 2 3 pts Question 3 The simple program below has one or more bugs in it. Select the line number for each bug. Sianna is building a text-based dungeon adventure game. She needs to implement a control system that does different actions based on user input. Select the one code block below that will let the user select an action without causing a compilation error OR a logical error. The action menu in Sianna's game is: #include int main(){ 1) List Inventory ifstream myFile.open("input.txt"); //Line 3 2)Check Map 3)Use Healing char fileChar; //Line 4 myFile >> fileChar; //Line 5 if (fileChar += 7) cout > user Choice; if('1') cin >> user Choice; list_inventory: switch (userChoice) { A Line 3 hoice) case 1: Line 6 else if('2') list_inventoryo: Line 4 show_map(): case 2: Line 5 show_map0: else if ('3') Question 4 3 pts case 3: heal_player(); heal_player(: default: Select the correct value for the boolean variable A after this block of code has run: elsel cout > userChoice; switch (userChoice) { C No answer text provided. D A = (B && (C > D)) || (A && (D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!