Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

INTRODUCTION Oil exploration is being conducted by drilling holes and blasting the ground with specific amounts of dynamite to generate seismic readings that can be

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

INTRODUCTION Oil exploration is being conducted by drilling holes and blasting the ground with specific amounts of dynamite to generate seismic readings that can be interpreted. 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 ratio is 1:3 For blasting operations, each stick of dynamite will be 1.5 feet long and will weigh 6 pounds. Ideally, we would use the exact amount of powder specified; however, in reality, useful readings aren't generated when part of a stick of dynamite protrudes above the hole. Therefore, we will compute the actual powder charge in 6-pound increments and use fewer sticks than necessary, if needed. A sample hand calculation follows below. Hole depth-85 feet Ideal powder-to-hole depth ratio = 85/3 28.333333 feet Ideal number of sticks = 28.333333/1.5 = 18.888888 Ideal powder charge = 18.888888*6-1 13.333333 pounds Actual number of sticks-floor( 18.888888) = 18 Actual charge = 18*6-108 pounds An input data file called explore contains exploration information for each well site. The first record line of the input file is the control number, which defines the number of sites to be read into the program. 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 input file is comma delimited. ASSIGNMENT Write a C program that will read the required values from the input file into two one-dimensional arrays: one array for the well site number and one array for the hole depth. Using the hole depth array, compute the ideal powder to-hole depth ratio, the ideal number of sticks, the ideal powder charge, the actual powder charge, and the actual number of sticks. Your program will produce a table as the report. Print the table to the computer screen and to an output file called blasting 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 in depth, print the well site number, the well depth, and then print a message that the hole is too shallow

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions