Question: All program should write in C# A fixed percentage of water is taken from a well each day. Request values for Wand P where: -

All program should write in C# All program should write in C# A fixed percentage of water is

A fixed percentage of water is taken from a well each day. Request values for Wand P where: - W is the amount (in litres) of water in the well at the start of the first day -P is the percentage of the water in the well taken out each day Write a program to print the number of the day, the amount taken for that day and the amount remaining at the end of the day. The output should be terminated when 30 days have been printed or the amount of water remaining is less than 100 litres, whichever comes first. For example, if W = 1000 and P = 10, the output should start as follows: Day Amount Taken 1 100 Amount Remaining 900 2 90 810 3 81 729 Note: The amount taken and amount remaining should be displayer to 2 decimal places. Additional information: 1. You may assume all data entered into your program is correct Paste the code for your solution here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!