Question

Need help completing the following 2 programs using PyCharm. Any help is appreciated. Language is Python.

Task: Complete the two programs in Python and submit the source code here for grading.

Program 1:  Sort Three Numbers(50 points): Design a program that asks user to enter any three integer numbers. The program should display the three numbers in descending order.

Program 2: WiFi Diagnostic Tree(50 points): Download the attached file, follow the instruction, and complete and submit the code here for grading.

Assignment 6 Program 2 WiFiDiagnosticProgram.pdf.......................

17. Wi-Fi Diagnostic Tree Figure 3-19 shows a simplified flowchart for troubleshooting a bad Wi-Fi connection. Use the flowch

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Ques 1:

Explanation:

Here is the program which asks for 3 numbers from the user and store them in a, b and c

Then it stores them in a list l and then sort them in descending order.

After that, they are printed using a for loop

feel free to comment if you need any help!

Code:

a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
c = int(input("Enter third number: "))

l = []
l.append(a)
l.append(b)
l.append(c)

l.sort(reverse=True)

for i in l:
print(i, end=' ')
a b int(input(Enter first number: )) int(input(Enter second number: )) int(input(Enter third number: )) 1 = [] 1.append

output:

Enter first number: 4 Enter second number: 8 Enter third number: 2 8 4 2 ... Program finished with exit code 0 Press ENTER to

Ques 2:

Explanation:

here is the code which uses nested if blocks to keep suggesting the solution if the user does not find a solution.

feel free to comment if you need any help!

Code:


print("Reboot the computer and try to connect.")

status = input("Did that fix the problem? ")

if(status=="no"):
print("Reboot the router and try to connect.")
  
status = input("Did that fix the problem? ")
  
if(status=="no"):
print("Make sure the cables between the router and modem are plugged in firmly.")
  
status = input("Did that fix the problem? ")
  
if(status=="no"):
print("Move the router to a new location.")
  
status = input("Did that fix the problem? ")
  
if(status=="no"):
print("Get a new router.")

print(Reboot the computer and try to connect.) status input(Did that fix the problem? ) if(status==no): print(Reboot t

Output:

in Reboot the computer and try to connect. Did that fix the problem? no Reboot the router and try to connect. Did that fix th

PLEASE UPVOTE IF YOU FOUND THIS HELPFUL!
PLEASE COMMENT IF YOU NEED ANY HELP!

Add a comment
Know the answer?
Add Answer to:
Need help completing the following 2 programs using PyCharm. Any help is appreciated. Language is Python....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Wi-Fi Diagnostic Tree Figure 3-19 shows a simplified flowchart for troubleshooting a bad Wi-Fi connection. Use...

    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 program's output: Notice the program ends as soon as a solution is found to the problem. Here is another example of the program's output: Reboot the computer and try to connect. Did that fix the problem2 no Enter Reboot...

  • Using basic c++ write a separate code for each question. 1. Palindrome if else • Try...

    Using basic c++ write a separate code for each question. 1. Palindrome if else • Try to find if a 5 digit input number is a palindrome • Get one 5 digit number from user • Output: Enter a five-digit integer: 12345 12345 is not a palindrome Enter a five-digit integer: 34543 34543 is a palindrome 2. WiFi Diagonostics using multiple ifs PRINT: This program will help you diagnose a bad WiFi connection. 1 st level Check the below (Use...

  • Need help completing these three programs using Raptor. Any help is appreciated. What to Submit: Complete...

    Need help completing these three programs using Raptor. Any help is appreciated. What to Submit: Complete the following three programs in Raptor and submit the three .rap files Program 1 Budget Analysis (50 points): Design a program that asks user enter the amount he/she has budgeted for a month. And then use a loop to prompt the user enter each of his/her expenses for the month, and keep a running total. When the loop ends, the program should display budgeted...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter T...

    I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter Two, “Keys to Successful IT Governance,” from Roger Kroft and Guy Scalzi’s book entitled, IT Governance in Hospitals and Health Systems, please refer to the following assignment instructions below. This chapter consists of interviews with executives identifying mistakes that are made when governing healthcare information technology (IT). The chapter is broken down into subheadings listing areas of importance to understand...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT