You are an engineer working for the Black-Gold oil company. Oil exploration is being conducted by drilling holes and blasting with specific amounts of dynamite. To obtain useful seismic readings, a specific ratio between the amount of dynamite and the depth of the hole is needed. The ideal powder charge to depth-of-hole ration is 1:3. For the blasting operations each stick of dynamite will be 2.5 feet long and will weigh 5 pounds. Since the actual powder charge will generally not be equal to the ideal powder charge, round the actual powder charge in 5 pound increments.
Here is an example:
Hole depth = 85 feet
Ideal powder to hole depth ratio = 85/3 = 28.33333 feet
Ideal number of sticks = 28.33333/2.5 = 11.33333
Ideal powder charge = 11.33333*5 = 56.66665 pounds
Actual number of sticks = 11
Actual charge = 11*5 = 55 pounds
An input data file called explore.txt contains exploration information for each well site. The first record line of the input file defines the number of sites to be read into the program (the control number). Each succeeding record line has two columns, where the first column is the well site number and the second column is the hole depth of the well in feet. The two numbers are separated by a comma as the line delimiter.
ASSIGNMENT:
Write a C program that will read the required values from the input file, compute the hole to depth ration, the ideal number of sticks, the ideal powder charge, the actual powder charge, and the actual number of sticks. Except for the main headings, use a single for loop to control the reading, computing, and printing operations. Your program will produce a report in tabular format. Given below is the layout format style. Print the table to the computer screen and to an output file called results.txt.
Once the program is working, modify the program to account for any hole depth that is less than 30 feet. Instead of printing the normal column items, for any hole that is less than 30 feet, print the well site, the well depth, and then print a message that the hole is too shallow (shown below).
1234567890123456789012345678901234567890123456789012345
DAILY DRILLING REPORT
SITE ID DEPTH IDEAL POWDER ACTUAL POWDER STICKS
(ft) CHARGE (lbs) CHARGE (lbs)
xxxxx xxx xx.xx xx xxx
. . . . .
. . . . .
. . *** HOLE TOO SHALLOW FOR BLASTING ***
FILE PATHS:
Before submitting your source program to Blackboard make sure that you set your file paths as follows:
#define ????? “u:\\engr 200\\explore.txt”
#define ????? “u:\\engr 200\\results.txt”
The question marks will be the variables that you choose to use as your input and output pointer variables. If the file paths are not correctly set when you submit your program, it will be rejected and you will be required to change the paths to the correct settings and resubmit.

Are you looking for a similar paper or any other quality academic essay? Then look no further. Our research paper writing service is what you require. Our team of experienced writers is on standby to deliver to you an original paper as per your specified instructions with zero plagiarism guaranteed. This is the perfect way you can prepare your own unique academic paper and score the grades you deserve.
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]