By using the concept of structure, write a program that use structure tag name struct Person of five (5) persons that consist variable name, age, gender and address. Each person must have different addresses whereby another structure called struct Address need to be derived from each person. struct Address must consist of variable roadname, state, and zipcode. Any member of a structure, use the member access operator (.) to output the data of these five (5) persons.
To reveal your code’s functionality, your output should have similar layout as below :
NAME: LUKE SKYWALKER AGE: 29
GENDER: M
ADDRESS
ROADNAME: 107, NEBULA STAR,GALAXY FAR FAR AWAY
ZIPCODE: 41799
STATE: NEPTUNE
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-58990.pdf
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment