divider

Objective

Write a program that simulates a simple PC diagnostic tool based on the flowchart below.

Flowchart

Click on the chart to open it in a new tab.

PC Diagnosis Flowchart

Skills to Practice

  • icon Using nested selection statements
  • icon Logical problem-solving
divider

Tasks

  • icon Create a new project named application-2-4
  • icon Complete the following tasks:
    • icon Apply the logic from the flowchart into your program.
    • icon Prompt the user to input responses for each condition.
    • icon Based on the responses, provide a diagnosis.
divider

Sample Output

Sample Output
Is the PC powering on? (yes/no): yes [Enter]
Is there any display on the monitor? (yes/no): no [Enter]
Check the monitor connections and ensure the monitor is turned on.
If the problem persists, try using a different monitor or graphics card.

Begin Challenge