Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Vernon Hills Mail-Order Company often sends multiple packages per order. For each customer order, output enough mailing labels to use on each of the

The Vernon Hills Mail-Order Company often sends multiple packages per order. For each customer order, output enough mailing labels to use on each of the boxes that will be mailed. The mailing labels contain the customers complete name and address, along with a box number in the form Box 9 of 9. For example, an order that requires three boxes produces three labels: Box 1 of 3, Box 2 of 3, and Box 3 of 3. Design an application that reads records that contain a customers title (for example, Mrs.), first name, last name, street address, city, state, zip code, and number of boxes. The application must read the records until eof is encountered and produce enough mailing labels for each order.

start

Declarations

string title

string firstName

string lastName

string streetAddress

string city

string state

string zip

num numBoxes

num count

string enterAnother

enterAnother = Y

while enterAnother is Y or y

input title, firstName, lastName, streetAddress, city, state, zip, numBoxes

count = 1

while count <= numBoxes

output title, firstName, lastName

output streetAddress

output city, state, zip

output Box , count, of , numBoxes

count = count + 1

endwhile

input enterAnother

endwhile

stop

I need the java code for this. Please Help!!

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

Students also viewed these Databases questions

Question

Identify the types of informal reports.

Answered: 1 week ago

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago