View the step-by-step solution to:

Note: Structure member’s middlelnitial, apartmentNumber, cell, home, and business are all optional values. Not all people have a middle initial,...

This question was created from Assignment 1.pdf


how do i code so that if i click y it asks me to enter , if i click n to move on, and if i click any other character to reprompt me the question.


Note: Structure member's midd leln'rt'lal, apartmenthlumher, oell, home, and business are all optional values. Not all people have a middle initial, live in an apartment, or have multiple phone numbers-
1|.I'|.|'hen asking the userfor this information you should first asl: ifthev 1«Irish to enter it: Member middlelnitial prom pt [mem her ofthe Name type}:
}Do you want to enter a middle initial[s]? (y or n): { Member apa rtmentN um ber prompt [mem her ofthe Add ress tvpe}:
}Do you want to enter an apartment number? {y or n}: { Member oell prom pt [member of the Numbers type}:
}Do you want to enter a cell phone number? {y or n}: { Member home prompt [member of the Numbers tvpe}:
}Do you want to enter a home phone number? (y or n): { Member business prompt [member ofthe Numbers type}:
}flo vou want to enter a business phone number? {v or n]: s

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question