SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Barbara Dolye
Chapter:
Advanced Collections
Exercise:
Programming Exercises
Question:4 | ISBN:9781285096261 | Edition: 4

Question

Write a two class application that creates a customer code to be placed on a
mailing label for a magazine. Allow the user to input their full name with the first
name entered first. Prompt them to separate their first and last name with a space.
Ask for their birthdate in the format of mm/dd/yyyy. Ask for the month
(number) they purchased a subscription and ask for their zip code. Your mailing
label should contain the last name, followed by their year of birth, the number of
characters in the full name, the first three characters of the month they purchased
the subscription, and the last two digits of their zip. The code for Bob Clocksom
born 01/22/1993, who purchased his subscription during the 10th month of the
year and lists 32226 as his zip code would be Clocksom9312Oct26.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Sorry the answer is not available at the moment…

If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.

Spread the 'tradition of sharing'.