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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started