write a program to capture personal details: names, address, telephone, age, city then display them. use both "readline: and "ShowInputdialog" function

http://www.jiskha.com/display.cgi?id=1478517941

To capture personal details and display them using both "readline" and "ShowInputDialog" functions, you can write a program in a programming language like Python. Here's an example:

```python
# Using readline function
name = input("Enter your name: ")
address = input("Enter your address: ")
telephone = input("Enter your telephone number: ")
age = input("Enter your age: ")
city = input("Enter your city: ")

# Using ShowInputDialog function
import javax.swing.JOptionPane as JOptionPane

name = JOptionPane.showInputDialog(null, "Enter your name: ")
address = JOptionPane.showInputDialog(null, "Enter your address: ")
telephone = JOptionPane.showInputDialog(null, "Enter your telephone number: ")
age = JOptionPane.showInputDialog(null, "Enter your age: ")
city = JOptionPane.showInputDialog(null, "Enter your city: ")

# Displaying the captured details
print("Details captured using readline function:")
print("Name:", name)
print("Address:", address)
print("Telephone:", telephone)
print("Age:", age)
print("City:", city)

print("\nDetails captured using ShowInputDialog function:")
print("Name:", name)
print("Address:", address)
print("Telephone:", telephone)
print("Age:", age)
print("City:", city)
```

In the above code, we first capture the personal details (name, address, telephone, age, and city) using the `input()` function for readline and `JOptionPane.showInputDialog` function for ShowInputDialog. These functions prompt the user to enter the required details.

Then, the captured details are displayed using the `print()` function. We use two separate sets of print statements to display the captured details, one for details captured using the readline function and the other for details captured using the ShowInputDialog function.

Please note that the `JOptionPane` class is specific to Java, so if you're using a different programming language, you'd need to find the appropriate function or library to display input dialogs.