Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a JAVA program that is a Mobile Cheque Verifier and should input two lines from the user and continue analyzing the cheques until the

Write a JAVA program that is a Mobile Cheque Verifier and should input two lines from the user and continue analyzing the cheques until the user types exit on the 1st input line. Your program should work for ALL amounts from $0.01 to $999.99.

Here are the recommended releases:

  1. Program inputs the first line
    1. Correctly identifies the Payee and Numeric Amount
    2. Continues looping until user types exit
  2. Program inputs the second line and correctly determine a numeric amount for the cheque based on the words amount
    1. Works for values $0.01 to $99.99 - 3 Marks
    2. Works for Values $100.00 to $999.99
  3. Prints message that either: The Cheque is Deposited or an error message indicating the amounts do NOT match 1 mark

Additional Requirements

  • General Expectations
    • Indentation consistent
    • Error check the input data
    • Readability good variable names
    • Documentation
      • Comments at the top which include: Name, date, program description (4-5 bullets)
      • Block documentation explaining the purpose of each significant block of code
  • Sample run needs to match the inputs below.

image text in transcribed

Mobile Deposit Cheque Validator Sample run (user input is shown in Bold Underline) : *************** Enter the 1st line of the cheque to deposit (exit to quit): Fred's Pennies $***0.01 Enter the 2nd line of the cheque: 01/100********** Numeric amount and word amount match! Cheque amount deposited is $0.01 Enter the 1st line of the next cheque to deposit (exit to quit): BigLots $***999.89 Enter the 2nd line of the cheque: Nine Hundred and Ninety Nine 89/100****** Numeric amount and word amount match! Cheque amount deposited is $999.89 Enter the 1st line of the next cheque to deposit (exit to quit): Palm Desert Resort Golf $***35.38 Enter the 2nd line of the cheque: Thirty-Five 38/100************************************* Numeric amount and word amount match! Cheque amount deposited is $35.38 Enter the 1st line of the next cheque to deposit (exit to quit): Jake's Sushi Palace $***15.00 Enter the 2nd line of the cheque: Fifteen xx/100 Numeric amount and word amount match! Cheque amount deposited is $15.00 Enter the 1st line of the next cheque to deposit (exit to quit): Worldwater Park $****60.23 Enter the 2nd line of the cheque: Sixty and 23/100 Numeric amount and word amount match! Cheque amount deposited is $60.23 Enter the 1st line of the next cheque to deposit (exit to quit): The Big Apple $*****213.55 Enter the 2nd line of the cheque: Two Thirteen Hundred 55/100**************************** ERROR: numeric amount and word amount DON'T MATCH. Auto Deposit rejected. Enter the 1st line of the next cheque to deposit (exit to quit): ATV Adventures Enter the 2nd line of the cheque: Five Hundred Four Hundred Ten 00/100 ERROR: numeric amount and word amount DON'T MATCH. Auto Deposit rejected. Enter the 1st line of the next cheque to deposit (exit to quit): Joshua climbing Adventures $***895.00 Enter the 2nd line of the cheque: Eight Hundred ERROR: numeric amount and word amount DON'T MATCH. Auto Deposit rejected. Enter the 1st line of the next cheque to deposit (exit to quit): exit Fifty dollars and 25/100******** ****

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

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago