Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. The figure below shows a simplified flowcharrt for troubleshooting bad Wi-Fi

ID: 3591066 • Letter: 2

Question

2. The figure below shows a simplified flowcharrt for troubleshooting bad Wi-Fi connec- tion. Use the flowchart to create a program that leads a person through the steps of fixing a bad Wi-Fi connection. A131 Programming Assignment Reboot the computer and try to connect that fix the problem? Reboot the router and try to connect that fix the problem? Make sure the cables between the router & modem are plugged in firmly that fix the problem? Move the router to a new location and try to connect that fix the problem? End of troubleshooting Get a new router

Explanation / Answer

#include <iostream>
#include <string>

using namespace std;

bool checkFixed() {
cout << "Did that fix the problem? (y/n) ";
string choice;
cin >> choice;
  
if (choice == "y" || choice == "Y") {
return true;
}
else {
return false;
}
}

int main()
{
cout << "Reboot the computer and try to connect" << endl;

if (!checkFixed()) {
cout << "Reboot the router and try to connect" << endl;
if (!checkFixed()) {
cout << "Make sure the cables between the router & modem are plugged in firmly" << endl;
if (!checkFixed()) {
cout << "Move the router to a new location and try to connect" << endl;
if (!checkFixed()) {
cout << "Get a new router" << endl;
}
}
}

}
cout << "End of troubleshooting" << endl;

return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote