Question: Write a program that contains the following functions, each performing a specific task: main() calls other functions to do their work. getFirstName() prompts the user

Write a program that contains the following functions, each performing a specific task:

main() calls other functions to do their work.

getFirstName() prompts the user to enter a students first name and then returns the first name.

getLastName() prompts the user to enter a students last name and then returns the last name.

getID() prompts the user to enter an ID and then returns the ID.

show() prints the student information with a format as shown below,

John Smith: 100321

You can use string for names and int for ID.

You also need to add parameters to functions when necessary.

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!