Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Language Loops 6. A fixed percentage of water is taken from a well each day Request values for W and P where . W

C Language Loops image text in transcribed
6. A fixed percentage of water is taken from a well each day Request values for W and 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 (a) 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 Amount Remaining 1 100 2 90 3 81 900 810 729 (b) Modify the program so that the table is printed for exactly 30 days, that is, do not stop if the amount of water falls below 100 litres 7. A bal is thrown vertically upwards from a horizontal plane with an initial speed of U metres per second. Its height H after time T seconds is given by H UT - 4.9T2 Write a program which requests a U and prints the height of the ball until the ball hits the ground. (Assume that U is constant)

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

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions