Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a Java program that handles creating an item request. Your program should ask the user for the item, the rack letter, and the

1. Write a Java program that handles creating an item request. Your program should ask the user for the item, the rack letter, and the shelf number. For the rack letter, your program must be able to accept the letter by itself or the associated word in the military phonetic alphabet such as Alpha for A, Bravo for B, and so on. If the user enters a military phonetic word, your program uses the first character from the word.

Although you could get your program to work using all string variables, for practice purposes, you are required to store the rack letter in a char variable and the shelf number in an int variable.

You should assume that the user enters valid inputs, including uppercase for the rack letter.

Note the sample session below. As always, you must mimic the sample session precisely. In particular, note the colons, blank spaces, etc. To generate the blank line, use an empty println statement like this:

System.out.println();

Sample session:

Enter the item: food processor Enter the item's rack letter: Bravo Enter the item's shelf number: 5 Sending a request for B-5 food processor.

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

ISBN: 0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago