quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryعلوم الحاسوب schoolبكالوريوس event_available2026-07-15

السؤال

Transcribed Image Text:

**16.3 (Traffic lights) Write a program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green. When a radio but- ton is selected, the light is turned on. Only one light can be on at a time (see Figure 16.37a). No light is on when the program starts. Exercise 16 03 X Programming Exercises 669 1000 Exercise16_04 Exercise16 05 DX Dedmal 15 Mile 1 Нех f Kilometer 1.602307322544464 Red Yellow Green Binary 1111 (a) (b) (c) FIGURE 16.37 (a) The radio buttons are grouped to let you turn only one light on at a time. (b) The program converts miles to kilometers, and vice versa. (c) The program converts between decimal, hex, and binary numbers.

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top