Gilat #11. Write a program using loops that determines the sum of the first "m" terms of the series: E(-1)", (n = 0, 1, 2,., m) 2n +1 This series is called the Leibniz series and it converges to t / 4 The single program should use / contain both at least 1 "for loop" & 1 "while loop". The program will asks the user if how many convergences they want to check and the number of series terms. The program will calculate a value for the series. After calculating the value for the series, the program will check for the % error from the value calculated and the convergence, compared to (pi/4). The program must accept user input of pi 3.14159. The program will check if the % error is 0.1%, 0.2% or other amount of error. If the % error is 0.1% or less then the program will give a very positive comment. "Excellent Job. If the % error is 0.2% or less but more than 0.1% then the program will give another comment. "Your Results are Your Results are within 0. 18" within 0.2%. Good estimating." For all other percentage error: "Your % error is too high try later for better results "
Gilat #11. Write a program using loops that determines the sum of the first "m" terms of the series: E(-1)", (n = 0, 1, 2,., m) 2n +1 This series is called the Leibniz series and it converges to t / 4 The single program should use / contain both at least 1 "for loop" & 1 "while loop". The program will asks the user if how many convergences they want to check and the number of series terms. The program will calculate a value for the series. After calculating the value for the series, the program will check for the % error from the value calculated and the convergence, compared to (pi/4). The program must accept user input of pi 3.14159. The program will check if the % error is 0.1%, 0.2% or other amount of error. If the % error is 0.1% or less then the program will give a very positive comment. "Excellent Job. If the % error is 0.2% or less but more than 0.1% then the program will give another comment. "Your Results are Your Results are within 0. 18" within 0.2%. Good estimating." For all other percentage error: "Your % error is too high try later for better results "
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...
Related questions
Question

Transcribed Image Text:Gilat #11. Write a program using loops that determines the
sum of the first “m" terms of the series:
E(-1)"2+1 (n= 0, 1, 2,., m)
This series is called the Leibniz series and it converges to t/4
The single program should use / contain both at least 1 "for loop" & 1 "while loop". The program will asks the user if
how many convergences they want to check and the number of series terms. The program will calculate a value for the
series. After calculating the value for the series, the program will check for the % error from the value calculated and
the convergence, compared to (pi/4). The program must accept user input of pi = 3.14159. The program will check if
the % error is 0.1%, 0.2% or other amount of error. If the % error is 0.1% or less then the program will give a very
positive comment. "Excellent Job.
If the % error is 0.2% or less but more than 0.1% then the program will give another comment. "Your Results are
%3D
Your Results are within 0.1%"
within 0.2%. Good estimating."
For all other percentage error:
"Your % error is too high try later for better
results."
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY