This code generates a random tip for handling or storing CDs/DVDs when a button is clicked. It uses the random number generator to select between 1-3 and display the corresponding tip in a label based on whether it equals 1, 2, or neither. The tips advise handling discs by the center or edges, keeping away from extreme temperatures and moisture, or storing in jewel cases or sleeves to prevent scratches.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
44 views
Exercise 1
This code generates a random tip for handling or storing CDs/DVDs when a button is clicked. It uses the random number generator to select between 1-3 and display the corresponding tip in a label based on whether it equals 1, 2, or neither. The tips advise handling discs by the center or edges, keeping away from extreme temperatures and moisture, or storing in jewel cases or sleeves to prevent scratches.