The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 6 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
please write in .c code standard ANSI not C++ please follow the instructions and have the output in the right format. i use DEV C++ but need it as a .c code thank you any questions please ask
Â
ENGR 200FALL 2016P5: SEISMIC HOLES AND BLASTING(using input/output data files, for loops, and if/else structures)DUE:October 13, 2016 at 11:59 p.m. CT (extra credit)October 18, 2016 at 11:59 p.m. CT (final deadline)POINTS: 55INTRODUCTION:Oil exploration is being conducted by drilling holes and blasting with specific amounts of dynamite.To obtainuseful 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 2feet long and will weigh 5 pounds.Since the actual powder charge will generally not be equal to the idealpowder charge, compute the actual powder charge in 5 pound increments.Here is an example:Hole depth = 85 feetIdeal powder to hole depth ratio = 85/3 = 28.33333 feetIdeal number of sticks = 28.33333/2 = 14.16666Ideal powder charge = 14.16666*5 = 70.83333 poundsActual number of sticks = 14Actual charge = 14*5 = 70 poundsAn input data file calledexplorecontains exploration information for each well site.The first record line of theinput file is the control number which defines the number of sites to be read into the program.Each succeedingrecord line has two columns, where the first column is the well site number and the second column is the holedepth 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. Using the hole depth, compute the holeto depth ratio, the ideal number of sticks, the ideal powder charge, the actual powder charge, and the actualnumber of sticks.Your program will produce a report in tabular format.Print the table to the computer screenand to an output file calledblasting.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 number, thewell depth, and then print a message that the hole is too shallow.The output format is shown on page 2.1
Attachments: