Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Mid - Garud faces unpredictable weather conditions this year. The Meteorological Department forecasts that there will be rainfall across all of Mid - Garud, amounting

Mid-Garud faces unpredictable weather conditions this year. The Meteorological Department forecasts that there will be rainfall across all of Mid-Garud, amounting to a cubic unit. Mid-Garud has data on the elevation of the area in the form of an array [h], where each h indicates the height of the area. Determine the height of the water level from the point with the lowest area.
Inputs:
Input 1: Rainfall amount
Input 2: Elevation data of Mid-Garud
Note:
The water surface is at the same height at all points.
Examples:
a. Input 1: 11
Input 2: [3,5,4,5,2]
Output: 4.00
b. Input 1: 5
Input 2: [1,4,3,6]
Output: 3.33
Questions:
2.1. If Input 1=3 and Input 2=[1,6,2], what will be the Output?
a.1
c.2
b.1.5
d.2.5
2.2. If Input 1=5 and Input 2=[5,3,1,4,4], what will be the Output?
a.2.5
c.3
b.2.75
d.3.25
2.3. If Input 1=13 and Input 2=[3,5,4,5,2], what will be the Output?
a.4
c.4.4
b.4.2
d.4.5
Write the code in Python.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions