Select Page

I have attached the question, but finding it difficult to attach the  original ‘debug_lab.py’ file.  But I’ve attached as doc, I’m not sure if it will work copying it to Python.
I have attached the question, but finding it difficult to attach the original ‘debug_lab.py’ file. But I’ve attached as doc, I’m not sure if it will work copying it to Python.
I have attached the question, but finding it difficult to attach the original ‘debug_lab.py’ file. But I’ve attached as doc, I’m not sure if it will work copying it to Python.
# -*- coding: utf-8 -*- “”” Lab: Basic Debugging Techniques This script calls functions from a separate module, debug. The three functions contained in that module all have bugs – some are obvious, others are more cryptic. It is your job to test the functions here and investigate the logic in the module to make sure things are working properly. Hint: There is nothing to fix within this file itself for Exercise 2. However, you should set breakpoints here and use the blue “Step into” button above to go to the function code itself. @author: WQU “”” import debug #Exercise 1 input(“Welcome! The line following this one should pause before execution,n if you set a breakpoint. Hit Enter to continue…”) tot = 10 for num in range(1,201): print(“Current total: %d” % tot) print(“Adding %d…” % num) tot = num+tot print(“New total: %d” %tot) #Exercise 2 #Function 1 input(“First, we will calculate simple interest on a loan. nPress Enter when ready…”) total = debug.get_simple_interest() print(“The total interest on the loan is: %.2f” % total) #Function 2 input(“Now, we will the balance for continuously compounded interest on a loan. nPress Enter when ready…”) principal = 5000.0 rate = 0.03 term_yrs = 5 balance = debug.compound_interest(principal,rate,term_yrs) print(“Total balance is: %.2f” % balance) #Function 3 input(“The final calculation will give you expected loan payments for an auto loan. nThe bugs here may not be easy to discover!nPress Enter when ready…”) debug.get_car_payment()
I have attached the question, but finding it difficult to attach the original ‘debug_lab.py’ file. But I’ve attached as doc, I’m not sure if it will work copying it to Python.
# -*- coding: utf-8 -*- “”” Created on Mon Jun 12 16:47:35 2014 @author: Struggling Student “”” import math #0 z = range(‘zero’,’one hundred’) print(z) #1 print(math.sqrt(‘121’)) #2 y = 2 z = x + y print(z) #3 string1 = 2 string2 = ‘plus’ print(string1 + string2 + string1) #4 – solution to a problem in Exam 2! #No need for try/catch around the function def, only where its called def exam2(startyr): sq = startyr ** 2 for num in range(1888,0,-100): sq = sq-(num**2) print(num) start = ‘1988’ exam2(start) #5 number = 123456 number.isdigit()
I have attached the question, but finding it difficult to attach the original ‘debug_lab.py’ file. But I’ve attached as doc, I’m not sure if it will work copying it to Python.
# -*- coding: utf-8 -*- “”” Created on Mon Jun 12 16:47:35 2014 @author: Struggling Student “”” import math #0 z = range(‘zero’,’one hundred’) print(z) #1 print(math.sqrt(‘121’)) #2 y = 2 z = x + y print(z) #3 string1 = 2 string2 = ‘plus’ print(string1 + string2 + string1) #4 – solution to a problem in Exam 2! #No need for try/catch around the function def, only where its called def exam2(startyr): sq = startyr ** 2 for num in range(1888,0,-100): sq = sq-(num**2) print(num) start = ‘1988’ exam2(start) #5 number = 123456 number.isdigit()

#### Why Choose Us

• 100% non-plagiarized Papers
• Affordable Prices
• Any Paper, Urgency, and Subject
• Will complete your papers in 6 hours
• On-time Delivery
• Money-back and Privacy guarantees
• Unlimited Amendments upon request
• Satisfaction guarantee

#### How it Works

• Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
• Fill in your paper’s requirements in the "PAPER DETAILS" section.