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

So I must convert the python on the right to pascal which is on the left. I need

ID: 3812785 • Letter: S

Question

So I must convert the python on the right to pascal which is on the left. I need to know if i did it correctly or if its wrong how to correct it.

28 30 31 if sym-semicolonsym then getsym else error (17) if sym cendsym then getsymo else error(33) getsymi. Modification End end; Modification Begin writesym: begin getsym; if syn-iparensyn then getsym else error(28) while true: expression; until sync commasym; if s then getsy else error(22) Modification End end; AMODIFICATION BEGIN FOR WRITE 419 420 421 elif sym WRITE 422 getsym() if sy lparen 423 error (28) 424 while True: 425 getsy 426 expression(tx) 427 if sym "comma" 428 break 429 430 if sym rparen error (22) 431 432 getsyn() 433 #MODIFICATION END 434

Explanation / Answer

Ya u done correctly. The conversation from the python to pascal is correctly done.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote