Question: Q3. Given a set of milling machine program as Table 3.0 below. kindly write a complete C codes to enable user to key in thier

Q3. Given a set of milling machine program as Table 3.0 below. kindly write a complete C codes to enable user to key in thier matrix number e.g. CD190056, the system will automatically detect and use the last 2 digits as n input steps (e.g. CD190056, n = 5 + 6 = 11 steps). The program will request user to enter integer value into feedrate area [ ] before it able to generate the outputs. The use of for" loop and array[ ] feature is a MUST in bulidng the C codes. (10 marks) Table 3.0: Operation Output Example: If your matrix no. is CD190005 n=0+5 = 5 steps y = 05 I=0 y = 5 10 y-axis Example output: Step 1 100 rpm 100 feedrate 300 x-axis n Steps Rotation in rpm Feerate I-axis (sum of matrix (auto generate- (user to movement no. last 2 every step increase insert value) (auto generate digits) 100rpm) with formula: 300-x-y) y-axis movement (auto generate with formula: 10+ y) 1 2 3 4 5 100 200 300 400 500 [0] [1] [2] [3] 300 295 290 285 280 10 15 20 25 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
