Question: Please note that the numbers in the square brackets [ ] before the task you are required to do is the number of points rewarded
Please note that the numbers in the square brackets [ ] before the task you are required to do is the number of points rewarded for the task if done correctly. The maximum number of points is 10 for this question.
The air leaks out of a balloon at a fixed rate. The volume after each second is reduced by 10%.
[5] Write a method that takes two arguments:
[1] 1 - A double representing the starting volume
[1] 2 - An integer representing the elapsed time in seconds
[1] The method should return the volume left inside the balloon after the given elapsed time.
Hint: You will need a loop where the volume is update after each iteration.
[2] Write the code statements that you would add inside the Main() method to invoke this new method five times with values (100, 1), (100, 2), (100, 3), (100, 4), (100, 5) and display the return value of each call.
IMPORTANT: You must paste in the box below your coding answer for the new method you have created as well as for the code that goes inside the Main().
i need this asap plz plz in C#
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
