hello everybody i have two programmes to be written in c language and i need your help Question 1: The rate of drilling a well is 20 meters per hour for the first hour. For each subsequent hour the depth drilled is 8 % less than in the previous hour. Write a program to tabulate the depth drilled and the depth reached at the end of each hour. The total depth to be drilled should read from the user. Note: Use do-while loop. Your depth reached may exceed a little bit the limit entered by the user but should not be less than the limit. Question 2: Write a program to process the orders of breads from a bakery. The first value read by your program represents the number of breads initially available at the bakery. The second value represents the number of orders and each of the values after that represents the number of breads for a particular order. After reading each order, your program will satisfy it or not based on the remaining breads in the bakery. download this file to see pictures for a sample output _http://myfreefilehosting.com/f/3ee5d98ec9_0.07MB thanks for help
That's easy homework, post the code first whatever you have got and then tell us where did you get stuck.
This should get you started with your homework. int depth; scanf("%d",&depth) do { /* Here put your calculation */ } while (i++ < depth) Code (markup):
that what i have written so far check it plz #include<stdio.h> int main (){ int hours=1 , i=l ; double depth, depth drilled , depth reached ; printf ("enter the depth to be drilled ") ; scanf ("%lf",&depth) ; do { printf ("hour\n %d",hours) ; depth drilled = depth ; depth reached = depth ;