1- Write a java program that asks the user to input two integers intStart and intEnd then computes the below series for all the numbers between those integers inclusive. intStart should be smaller than intEnd. intStart /n+ (intStart+1)/n + (intStart+2)/n + .... intEnd/n Your program should calculate this series for n = 10, 20, 30 ...,90, 100, exactly as the below sample run Run 1 Enter Start and End values:5 10 For n = 10.0 The sum is: 4.5 For n = 20.0 The sum is : 2.25 The sum is: 1.5 For n = 30.0 For n = 40.0 = 50.0 The sum is: 1.125 For n For n = 60.0 For n = 70.0 The sum is : 0.899 The sum is : 0.75 The sum is: 0.642 For n = 80.0 The sum is : 0.562 For n = 90.0 0.5 The sum is For n = 100.0 The sum is Run 2 0.449 Enter Start and End Values: 10 5 Start should be smaller than End

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

please i need the solution as soon as possible 

1- Write a java program that asks the user to input two integers intStart and intEnd then computes the below
series for all the numbers between those integers inclusive. intStart should be smaller than intEnd.
intStart /n+ (intStart+1)/n + (intStart+2)/n +.... intEnd/n
Your program should calculate this series for n = 10, 20, 30 ...,90, 100, exactly as the below sample run
Run 1
20.0
Enter Start and End values:5 10
For n = 10.0 The sum is: 4.5
For n
The sum is : 2.25
The sum is 1.5.
1.125.
0.899
For n = 30.0
For n = 40.0
The sum is
For n
50.0
The sum is:
For n
60.0
The sum is :
0.75
For n
= 70.0
The sum is:
0.642
For n
80.0
The sum is:
0.562
For n
90.0
The sum is 0.5
For n = 100.0 The sum is:
0.449
Run 2
Enter Start and End Values: 10 5
Start should be smaller than End
Page
ct
Transcribed Image Text:1- Write a java program that asks the user to input two integers intStart and intEnd then computes the below series for all the numbers between those integers inclusive. intStart should be smaller than intEnd. intStart /n+ (intStart+1)/n + (intStart+2)/n +.... intEnd/n Your program should calculate this series for n = 10, 20, 30 ...,90, 100, exactly as the below sample run Run 1 20.0 Enter Start and End values:5 10 For n = 10.0 The sum is: 4.5 For n The sum is : 2.25 The sum is 1.5. 1.125. 0.899 For n = 30.0 For n = 40.0 The sum is For n 50.0 The sum is: For n 60.0 The sum is : 0.75 For n = 70.0 The sum is: 0.642 For n 80.0 The sum is: 0.562 For n 90.0 The sum is 0.5 For n = 100.0 The sum is: 0.449 Run 2 Enter Start and End Values: 10 5 Start should be smaller than End Page ct
Expert Solution
steps

Step by step

Solved in 4 steps with 3 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