Question
In entry-level python, please. 1.Take the Wi-Fi Diagnostic Tree problem that you have written for your earlier assignment and put it in a condition-controlled loop
In entry-level python, please.
1.Take the Wi-Fi Diagnostic Tree problem that you have written for your earlier assignment and put it in a condition-controlled loop (while). So, after the program runs once, it should ask the user if they would like to run the program again. Your program should allow the user the do the check again.
(Original Code)
def prompt():
#User input
ch = input("Did that fix the problem? ")
#Return input
return ch
print("Please enter yes or no")
print("Reboot the computer and try to connect.")
#User input
ch = prompt()
#compare and print results
if ch== "no":
print("Reboot the router and try to connect.")
ch = prompt()
if ch == "no":
print("Make sure the cables between the router & modem are plugged in firmly.")
ch = prompt()
if ch=="no":
print("Move the router to a new location and try to connect.")
ch == prompt()
if ch == "no":
print("Get a new router")
Wi-Fi Diagnostic Tree Figure 3-19 shows a simplified flowchart for troubleshooting a bad Wi-Fi connection. Use the flowchart to create a program that leads a person through the steps of fixing a bad Wi-Fi connection. Here is an example of the programs output Figure 3-19 Troubleshooting a bad Wi-Fi connection
2. Write an interactive program using counter controlled nested loops (for loop) that would allow to calculate your monthly expenses/utility bills for a number of months (ask the user how many months). Display the statistics for each month (total and average). Write polite and professional interactive messages ask name, thank them after they use your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started