Science · Karatasi 2 · 2019
4 maswali 🇹🇿 NECTA ✓ Majibu rasmi ya NECTAScience · Karatasi 2 · 2019
4 maswali
Mtihani wa saa 3 wa muda · husahihishwa kiotomatiki · huhesabiwa kwenye nafasi
Lipa na anza mtihani →Sehemu A
Interface description: The time interval for the clock should be 1 second. The font type and size of the time displayed should be “Courier New” and 48 points respectively. The “Alarm On” or “Alarm Off” message should be displayed on the program with font type “MS Sans Serif”. Font size 18 points and bolded. (ii) Write Visual Basic codes which will activate the interface created in part (a) (i) in order to: Produce a sound when the “Alarm On” option is selected. Switch off the alarm sound by clicking the “Alarm Off” option. Display a message that informs a user if the alarm is “On” or “Off” after setting an alarm and clicks the desired option button. (iii) Save your work as “Vb Alarm”.
Boresha ili kuona majibu ya mfano.
Sehemu B
(b) (i) Use Visual Basic program to create the following Calendar viewer interface: Hint: Use Month View and TextBox controls to display the calendar and the current date. (ii) Write Visual Basic codes which will display the date picked/clicked by the user in the text box using the format “MM/DD/YYYY” as shown in part (b) (i).
Boresha ili kuona majibu ya mfano.