Q.2.1 On the form create two combo boxes, one for the country selection and another to select a town. Also, add two radio buttons for the user to select to display either a phone or postal code. Q.2.2 You are also required to create a "submit" and "exit" button. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please help with the question on the picture 

Develop a Java GUI application that will produce an Area lookup application that will allow a user
to view a phone or postal code for a Town in a particular Country.
Do not forget to use the marking guideline at the end of this question to see how the marks are
allocated.
Q.2.1 On the form create two combo boxes, one for the country selection and another to select
a town. Also, add two radio buttons for the user to select to display either a phone or
postal code.
Q.2.2 You are also required to create a "submit" and "exit" button. The layout of the form is left
to your discretion. Marks will be allocated to the presentation and effectiveness of the
layout, but the following layout is displayed for your convenience.
E Country Lookup
AREA CODE LOOKUP
Select Country. South Africa
Select Town:
Саре Town
Item to lookup:
O Phone Code
O Postal Code
SUBMIT
EXIT
O The Independent institute of Education (Pty) Ltd 2018
Page 6 of 10
16; 17; 18
2018
Q.2.3
The application must allow a user to select between two countries, namely South Africa
and the United Kingdom. When a particular country is selected, present the available
towns in the town combo box.
SOUTH AFRICA
UNITED KINGDOM
Cape Town
London
Phone Code: 021
Phone Code: 020
Postal Code: 8000
Postal Code: WC2NSDU
Johannesburg
Oxford
Phone Code: 011
Phone Code: 01865
Postal Code: 2000
Postal Code: OX13PN
Durban
Southampton
Phone Code: 031
Phone Code: 023
Postal Code: 4000
Postal Code: S0147DW
A sample output with a country selection to display a phone code:
Message
Phone code for Cape Town in South Africa is 021
OK
A sample output with a country selection to display a postal code:
Message
i
Postal code for Cape Town in South Africa is 8000
Transcribed Image Text:Develop a Java GUI application that will produce an Area lookup application that will allow a user to view a phone or postal code for a Town in a particular Country. Do not forget to use the marking guideline at the end of this question to see how the marks are allocated. Q.2.1 On the form create two combo boxes, one for the country selection and another to select a town. Also, add two radio buttons for the user to select to display either a phone or postal code. Q.2.2 You are also required to create a "submit" and "exit" button. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience. E Country Lookup AREA CODE LOOKUP Select Country. South Africa Select Town: Саре Town Item to lookup: O Phone Code O Postal Code SUBMIT EXIT O The Independent institute of Education (Pty) Ltd 2018 Page 6 of 10 16; 17; 18 2018 Q.2.3 The application must allow a user to select between two countries, namely South Africa and the United Kingdom. When a particular country is selected, present the available towns in the town combo box. SOUTH AFRICA UNITED KINGDOM Cape Town London Phone Code: 021 Phone Code: 020 Postal Code: 8000 Postal Code: WC2NSDU Johannesburg Oxford Phone Code: 011 Phone Code: 01865 Postal Code: 2000 Postal Code: OX13PN Durban Southampton Phone Code: 031 Phone Code: 023 Postal Code: 4000 Postal Code: S0147DW A sample output with a country selection to display a phone code: Message Phone code for Cape Town in South Africa is 021 OK A sample output with a country selection to display a postal code: Message i Postal code for Cape Town in South Africa is 8000
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY