In this python program please put the final answer/Summation of all iterations is 0.95 and please show the output. Thank you Source Code: print("The function is f(x)= 2x+3(2)") print("Width is 0.05") lowLim=float(input("Enter Lower Limit: ")) upperLim=float(input("Enter Upper Limit: ")) iterations = (upperLim - lowLim)/0.05 i=0 finAns = 0 while(i

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In this python program please put the final answer/Summation of all iterations is 0.95 and please show the output. Thank you

Source Code:

print("The function is f(x)= 2x+3(2)")
print("Width is 0.05")
lowLim=float(input("Enter Lower Limit: "))
upperLim=float(input("Enter Upper Limit: "))
iterations = (upperLim - lowLim)/0.05
i=0
finAns = 0
while(i<iterations):
    print("_________________________________________________________________________________________________________________________________")
    print("Iteration:",(i + 1))
    print("Function\t\t|\tLower Limit \t|\t Upper Limit \t|\t LRAM Application (width=0.05) \t|\t Answer")
    initAns=((2 *lowLim) + (3 * 2)) * 0.05
    print("f(x)= 2x+3(2) \t\t|\tx={:0.2f}\t\t|\tx={:0.2f}\t\t|\t f(x) = (2({:0.2f})+3(2) * 0.05\t|\t  {:0.2f}".format(lowLim,lowLim+0.05,lowLim,initAns))
    finAns += initAns
    lowLim+=0.05
    i += 1

This is a sample output below of Final answer/Summation of all iterations is 0.95

 

Iteration: 17.0
Upper Limit
1.05
LRAM Application (width-0.05)
(x) - (2(1.8000000000000007) +3 (2)) 0.05
Tunetion
Lover Limit
Ansvez
2(x)- 2x+3 (2)
1.80
0.4800000000000001
Iteration: 10.0
LRAN Application (width-0.05)
(x) - (2(1.0500000000o00008) +3 (2) 0.05
Lover Limit
Upper Limit
Ansver
Tunetion
2 (x)- 2x+3 (2)
-1.05
1.50
0.4850000000000001
Iteration: 19.0
LRAH Appiication (widthmo.05)
(x) - (2(1.5000000000000008) +3(2)) 0.05
Tunction
Lovez Limit
Upper Limit
Ansver
(x)- 2x+3(2)
x-1.50
1.95
0.4500000000000000s
Iteration: 20.0
Upper Limit
x2.00
Function
Lovez Limit
LRAH Application (width-0.05)
Ansver
(x)- 2x+3 (a)
x-1.95
(x) - (2(1.5500000000000000) +3(2)) 0.05
0.4550000000000001
Tinal ansuer/Sumation of all iterations is 0.95
BUILD SUCCESSTUL (total time: 12 seconds)
Transcribed Image Text:Iteration: 17.0 Upper Limit 1.05 LRAM Application (width-0.05) (x) - (2(1.8000000000000007) +3 (2)) 0.05 Tunetion Lover Limit Ansvez 2(x)- 2x+3 (2) 1.80 0.4800000000000001 Iteration: 10.0 LRAN Application (width-0.05) (x) - (2(1.0500000000o00008) +3 (2) 0.05 Lover Limit Upper Limit Ansver Tunetion 2 (x)- 2x+3 (2) -1.05 1.50 0.4850000000000001 Iteration: 19.0 LRAH Appiication (widthmo.05) (x) - (2(1.5000000000000008) +3(2)) 0.05 Tunction Lovez Limit Upper Limit Ansver (x)- 2x+3(2) x-1.50 1.95 0.4500000000000000s Iteration: 20.0 Upper Limit x2.00 Function Lovez Limit LRAH Application (width-0.05) Ansver (x)- 2x+3 (a) x-1.95 (x) - (2(1.5500000000000000) +3(2)) 0.05 0.4550000000000001 Tinal ansuer/Sumation of all iterations is 0.95 BUILD SUCCESSTUL (total time: 12 seconds)
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY