We read your photo as:

Name three causes of syntax errors. Define the following terms as used in Computer Programming: i.Machine dependent ii.Bug. Study the Pseudo code below and answer the questions that follows. i.Draw a flowchart for the pseudo code above

Computer Science

ScanSolve AI Answer

Hapa kuna majibu kwa maswali yako:

a) Sababu tatu za syntax errors:

  • Kukosekana kwa alama za uakifishaji (kama vile semicolons au mabano).
  • Kukosea kuandika maneno muhimu (keywords) ya lugha ya programu.
  • Kutumia waendeshaji (operators) vibaya au kwa mpangilio usio sahihi.

b) Ufafanuzi wa maneno yafuatayo kama yanavyotumika katika Computer Programming:
i. Machine dependent:
Programu au programu-tumizi inayotegemea mashine ni ile inayoweza kufanya kazi tu kwenye aina maalum ya vifaa vya kompyuta au mfumo wa uendeshaji. Inategemea sifa za kipekee za mashine hiyo.

ii. Bug:
Hitilafu ni kosa, kasoro, kushindwa, au dosari katika programu ya kompyuta au mfumo unaosababisha kutoa matokeo yasiyo sahihi au yasiyotarajiwa, au kufanya kazi kwa njia zisizotarajiwa.

c) i. Chati ya mtiririko (flowchart) kwa pseudocode iliyotolewa:

  • Anza na ishara ya Terminal yenye maandishi "Start".
  • Kutoka "Start", mshale unaelekea kwenye ishara ya Input/Output yenye maandishi "Input Y, X".
  • Kutoka "Input Y, X", mshale unaelekea kwenye ishara ya Decision yenye maandishi "Is Y > 0 AND X > 0?".
    • Kutoka upande wa "No" wa ishara ya Decision, mshale unaelekea kwenye ishara ya Terminal yenye maandishi "Stop".
    • Kutoka upande wa "Yes" wa ishara ya Decision, mshale unaelekea kwenye ishara ya Process yenye maandishi "Product = Y * X".
  • Kutoka "Product = Y * X", mshale unaelekea kwenye ishara ya Decision yenye maandishi "Is Product > 20?".
    • Kutoka upande wa "No" wa ishara ya Decision, mshale unaelekea kwenye ishara ya Terminal yenye maandishi "Stop".
    • Kutoka upande wa "Yes" wa ishara ya Decision, mshale unaelekea kwenye ishara ya Input/Output yenye maandishi "Display Product".
  • Kutoka "Display Product", mshale unarudi nyuma na kuunganisha kwenye ishara ya Input/Output yenye maandishi "Input Y, X", na hivyo kuunda kitanzi.
Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question
Handwritten step-by-step solution preview

Handwritten Step-by-Step Solution

Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.

Try on WhatsApp