Question: Write a program that takes two inputs, your name, your fathers name and your mothers name and displays them. The console input and output must

Write a program that takes two inputs, your name, your fathers name and your mothers name and displays them. The console input and output must be as follows:

Enter your last name:

Enter your last name: DiCaprio

Enter your first name:

Enter your first name: Leonardo

Enter your fathers last name:

Enter your fathers last name: DiCaprio

Enter your fathers first name:

Enter your fathers first name: George

Enter your mothers last name:

Enter your mothers last name: DiCaprio

Enter your mothers first name:

Enter your mothers first name: Irmelin

Your short biography:

Name: Leonardo DiCaprio

Fathers name: George DiCaprio

Mothers name: Irmelin DiCaprio

Special requirements: inputs of names order should be last name then first name. But output displays first name then last name.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!