An electronics company produces printed circuit boards using a CNC driller, in order to minimise
the time taken for the CNC driller to produce the PCB, they wish to minimise the number of tool
changes. The CNC drill data is provided in a table consisting of drill size, X co-ordinates and Y
co-ordinates and is stored in an float point array called ‘gerber’ as shown below
drill size x coordinate y co ordinate
1.0 0 10
1.0 20 30
1.2 200 400
1.0 50 70
2.0 130 250
-9 -9 -9
The last record in the array is indicated by an -9 entry in each file
You are required to write three C functions in your program to
a) Input the data into the array called ‘Gerber’
b) Sort the array into ascending order using a simple quick sort algorithm
c) Display the sorted array to the screen
Your program should cope with a variety of data for drill size, and co-ordinates, however you can
consider the array to be no greater than 100 values and terminates with a -9 in each field. You
may need to research the quick sort approach to be used.
You are required to submit the following in a single word document (.docx)
Program listing (.c file) cut/paste using structured functional program design
Printout of sample run
Sample calculation to check correct operation of program
20 freelancers están ofertando un promedio de £74 por este trabajo
Hey, I am an engineering undergraduate from Sri Lanka who has very good experience in C programming.I can do your job in the proper way a CNC asks. looking forward for a reply. thank you
The task is fairly simple and covers very basic knowledge of C. I can implement the described program and provide good commenting and eventual clarification/explanations on the code.
Hi, I am ready to work for you. I have 1 years of experience in C and C++. See some of my works also check my reviews you will get better idea about my skill.
Hello. I am a veteran Embedded systems design Engineer & Consultant. I am already familiar with Gerber 274 & 274X files and can deliver your project. Please see PMB for details.