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 routerExplanation / 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;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.