Modify your display of the cost of the product so that it appears properly formatted with a dollar sign and exactly two digits to the right of the decimal point. Add a phone number to the collection of customer or product attributes.

Modify your handling of the quantity of items to include the following: Only values in the range 1–99 are accepted. Illegal or out-of-range values cause a reprompt for a valid input. Up to 3 such requests for valid input are made, and the program terminates if a valid numeric in-range quantity is not entered by the customer. Exception handling is used to accomplish this. You should bundle all of this as a new method, such as getNumericInput( ), and then use a call to this new method in place of your existing quantity request code. Modify your code that validates string input (like returning customer, color, crust, etc.) so that only correct responses are accepted. Check for yes or no, regular or deep dish, and so forth. Modify your display of the cost of the product so that it appears properly formatted with a dollar sign and exactly two digits to the right of the decimal point. Add a phone number to the collection of customer or product attributes. The phone number must be entered in the form (###) ###-####, where “#” is any digit (0–9) and the parentheses and hyphen are required. The space after the closed parentheses may or may not be present. You must create a method that handles the input and the validation of the phone number. You should use the Java java.util.regex.* pattern matching capabilities to validate the phone number. A file (named “order.txt”) must be written that contains each of the above data items that constitute an order. The items must be written on separate lines in the file. No other information may be written to the file. You must be able to view the file using Notepad to verify that the information that it contains is complete and correct. The order file only should be written if there are no validation errors whatsoever. You should create a method (named “writeOrderFile( )”) that handles file output. Create a confirmation method that reads the data values from the order file into separate variables. It then should create and display a confirmation that shows the values that were read. Each value should be identified using an appropriate label. Consider the following example: Thank you for your order. Name: Joe Blow Returning customer: Yes Color: blue Phone: (123) 456-7890 Quantity: 3 Etc: etc.

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 7% with the discount code DISSERT7