Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Command Step:05 Motor Step:05 --------------------------------------------------

ID: 3637738 • Letter: C

Question

Command Step:05
Motor Step:05
-----------------------------------------------------------
Command Step:14.2
Motor Step:1411
-----------------------------------------------------------
Command Step:21.3.6
Motor Step:21111222222
-----------------------------------------------------------
Command Step: 32.5.2.7
Motor Step:3211111223333333
-----------------------------------------------------------
Command Step: 43.2.6.5.1
Motor Step: 4311222222333334
-----------------------------------------------------------
Command Step: 57.0.1.0.2.3
Motor Step:57244555
-----------------------------------------------------------
Command Step: 68.3.2.5.3.4.1
Motor Step: 68111223333344455556
-----------------------------------------------------------
Command Step: 76.2.3.6.2.3.0.2
Motor Step: 76112223333334455577
-----------------------------------------------------------
Command Step: 89.1.1.1.1.1.1.1.1
Motor Step: 8912345678
-----------------------------------------------------------
Command Step: 99.10.0.0.0.0.0.0.0.1
Motor Step: 9911111111119
-----------------------------------------------------------
Command Step: 07.4
Invalid command step!
-----------------------------------------------------------
Command Step: 16
Invalid command step!
-----------------------------------------------------------
Command Step: 13.7.2
Invalid command step!
-----------------------------------------------------------
Command Step: 25.9.123
Invalid command step! <---- IF THIS IS RIgHT, WHY IS IT INVALID?
-----------------------------------------------------------
Command Step: 32.23.-1.6
Invalid command step!
-----------------------------------------------------------
Command Step: 43.5.2.7
Invalid command step!
-----------------------------------------------------------
Command Step: 78.1.2.3.4.5.6.7.
Motor Step: 781223334444555556666667777777
-----------------------------------------------------------
Command Step: 93.10.9.8.7.6.5.4.3.2.1
Motor Step: 93111111111122222222233333333444444455555566666777788899 … invalid?
-----------------------------------------------------------
Command Step: 46.3.12.5.0
Motor Step: 4611122222222222233333
-----------------------------------------------------------
Command Step: 27.20.6
Motor Step: 2711111111111111111111222222
-----------------------------------------------------------

Explanation / Answer

Dear Friend here is a digital motor program i made once u can check whatever values u want PLEASE RATE #include using namespace std; const int MaxString = 73; typedef char str[MaxString]; void main() { char command_step[25]; char motor_step[49]; char motor_program[73]; char output[81]; const str prompt = "MOTOR CONTROL PROGRAM GENERATOR"; const str command = "Command Step:"; const str motor = "Motor Step:"; const str program = "Complete Motor Program:"; const str hyphen = "------------------------------------------------------------------------"; const str equals = "========================================================================"; const str pound = "##"; const str invalid = "Invalid command step!"; int num = 0; cout