NavGanitMateby NavGreen Compute, AustraliaBased on Victorian Curriculum Mathematics v2.0

Testing and debugging algorithms

Wide tables scroll horizontally. For detailed working, you may prefer a larger screen.

Required skills (click to reveal)

A craft designer is creating a symmetrical pattern using a sequence of angles in a polygonal tile. The tile has five sides, and the interior angles are to be determined using a debugging algorithm.

The algorithm calculates the sum of interior angles using the formula (n - 2) × 180°, where n is the number of sides. The algorithm then divides this sum by 5 to find the average interior angle.

However, the designer notices that one angle in the tile is 54°, and the algorithm incorrectly assumes all angles are equal. The designer tests the algorithm by inputting n = 5 and checks if the average angle matches the known value of 54°.

What is the exact value of the average interior angle for a regular pentagon, as calculated by the algorithm?

Concept illustrations

These are separate worked examples of related concepts, not a diagram of this question. Their values and dimensions do not describe your question.

An even-number decision. Divide integer n by 2. If the remainder is 0, n is even; otherwise it is odd. The diagram is an algorithm, not a statement about non-integer inputs.Integer nRemainder of n ÷ 2= 0?YesNoEvenOdd
Divide integer n by 2. If the remainder is 0, n is even; otherwise it is odd. The diagram is an algorithm, not a statement about non-integer inputs.

Press Start when ready. Time includes time spent in another tab. Submit your answer before opening a help panel for a timed rank.

00:00
0 wordsOnly your numerical final answer or selected MCQ option is checked. Scratch working is not graded.

Report a problem or suggest an improvement

My notes — optional, not graded 0 words

Notes and scratch working stay in this browser and are linked to this question version. They are not graded or included in feedback. On shared devices, other people using this browser may see them.

For this question only. Your full notebook is on the dashboard.

Notes save in this browser. Download a copy to keep them elsewhere.

Report a problem or suggest an improvement

Your observations help improve this question. You can report an issue or recommend a better explanation, visual or experience.

0 words

The report includes your message and question/version details. Saved profile details, answers, notes and attempt history are not automatically attached. Leave out names and contact details, and check screenshots for personal information and embedded metadata.

Attachments may contain personal information. Review them before sharing. Logs collect only event codes and timestamps after you enable them. Download the ZIP to keep a copy, then attach it to an email if you choose.

Formula and explanation (click to reveal)

Opening this before your first submission makes the attempt practice only.

Formula

Explanation

Worked solution and answer (click to reveal)

Opening this before your first submission makes the attempt practice only.

Worked solution

  1. The polygon has 5 sides, so n = 5.
  2. The formula for the sum of interior angles of a polygon is (n - 2) × 180°.
  3. Substitute n = 5 into the formula: (5 - 2) × 180°.
  4. Calculate (5 - 2) = 3.
  5. Multiply 3 × 180° = 540°.
  6. The algorithm divides the sum by 5 to find the average interior angle.
  7. Substitute the sum: 540° ÷ 5.
  8. Perform the division: 540 ÷ 5 = 108.
  9. The average interior angle is 108°.
  10. The algorithm incorrectly assumes all angles are equal, but the correct average for a regular pentagon is 108°.
  11. The known value of 54° is not the average; it is one angle, which is not consistent with a regular pentagon.
  12. Therefore, the exact value of the average interior angle for a regular pentagon, as calculated by the algorithm, is 108°.

Reference answer: 108°

Alternative methods (click to reveal)

Shortcuts are shown only when applicable. Check the conditions before using one.

Earlier attempts for this question

#Date / timeYour answerResultSecondsHelp revealedRank
History stays in this browser when storage is available. Export it to your shared Drive folder and import it on another computer.
Worksheet details

Naming pattern: Topic_Grade_Complexity_YYYYMMDD_HH24MISS.html

Validation compares your answer with the generated reference. The model's reference can be wrong. Time ranks use an estimated student solving time, not a measured benchmark or a comparison with other students. An incorrect answer receives no speed rank.

NavGanitMate privacy & saved work

Saved in this browser. Your profile preferences, answers, practice history and notes are stored here when browser storage is available. They are not automatically uploaded to our servers. People sharing this browser may see saved work; changing the learner name does not create a separate private account. A nickname is enough.

Keep copies of important work. Clearing browser data, private browsing or changing browser or device can mean losing saved work. Download notes and export history separately. Downloads are copies of the selected content, not a complete account backup; not every format can be imported to restore your work. Keep these files somewhere private.

Visiting the website. Cloudflare helps deliver and protect this site and processes connection information such as IP addresses and requested pages. Server error logs may also contain request details. Security features may use cookies. This is separate from your browser-saved learning records. Cloudflare privacy information.

A parent-connection reminder uses a local list of up to five completed question IDs for this browser profile and a tab-session dismissal marker. Reminder activity is not uploaded and practice remains available.

Sharing feedback is your choice. A report includes your message and question/version details. Your saved profile, answers and notes are not automatically attached. Files you select can reveal personal details or contain embedded metadata: check and redact them before sharing. Diagnostic event codes and timestamps are included only after you enable logging. Sending email shares your message and attachments with the recipient and email providers. A download alone sends nothing to us. Website feedback delivery may be unavailable; only a confirmed receipt indicates it was received.