Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Remember this one from our Just Enough Programming Logic and Design Chapter 4? The Vernon Hills Mail-Order Company often sends multiple packages per order. For

image text in transcribed
image text in transcribed
image text in transcribed
Remember this one from our Just Enough Programming Logic and Design Chapter 4? The Vernon Hills Mail-Order Company often sends multiple packages per order. For each customer order, print enough mailing labels to use on each of the separate boxes that will be mailed. The mailing labels contain the customer's complete name and address, along with a box number in the form Box 9of9". For example, an order that requires three boxes produces three labels "Box l of 3 "Box 2 of 3", and "Box 3 of 3". Produce enough mailing labels for each order Back then, we developed pseudocode that accomplished the logic and continued to process label requests until EOF was reached on the input file. This time, we will prompt the user to el us when he or she is done and no further labels are needed. Specifically, our application will Continuously accept a customer's title, first name, last name, street address, city, state, zip code and number of boxes in the order and produce the labels -until an appropriate sentinel value is entered. After producing the first set of labels, your application will ask the user ifs/he wishes to produce another set of labels. I the user response is Y"r y"the user is prompted for the input for the new set of labels. A user response that is anything otheran "Y" or "y"means no further labels are needed and your program sho uld end The following pseudocode conveys this logic: start Declarations string title string firstName string lastName string streetAddress string city string state string zip num numBoxes num count string enterAnother enterAnotherY" while enterAnother is "Yor y input title, firstName, lastName, streetAddress, city, state, zip, numBoxes count 1 while countnumBoxes output title, firstName, lastName output streetAddress output city, state, zip output "Box" count, of numBoxes count count1 endwhile input enterAnother endwhile stop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions