You write a program in which the user must select whether to receive instructions in English or Spanish. In a console application, you would issue the prompt:Which language do you prefer? Enter 1 for English or 2 for Spanish >>The program would accept the user's entry, make a decision, and take appropriate action. How would you commonly handle this decision-making situation in a GUI application?

What will be an ideal response?

In a GUI application, you are more likely to place controls on a Form to get a user's response. For example, you might use two Buttons-one for English and one for Spanish. The user clicks a Button, and an appropriate method executes. No decision is written in the program because a different event is fired from each Button, causing execution of a different Click() method. The interactive environment decides which method is called, so the programmer does not have to code a decision.

Computer Science & Information Technology

You might also like to view...

If you find a design template that you would like to use often, you can pin it to the ________ view

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following statements is false?

a. Object-oriented programming is today's key programming methodology. b. Java has become the language of choice for implementing Internet-based applications and software for devices that communicate over a network. c. Software commands computer hardware to perform tasks. d. In use today are more than a trillion general-purpose computers and trillions more Java-enabled cellphones, smartphones and other handheld devices.

Computer Science & Information Technology