Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Visual Logic Chapter 3 3-10 Account Balancer 3. Problem 3-10 form the text. Account Balancer. In Class Write a Visual Logic program to help balance

Visual Logic Chapter 3 3-10 Account Balancer

image text in transcribed

3. Problem 3-10 form the text. Account Balancer. In Class Write a Visual Logic program to help balance a customer's bank account. The program should read numeric values that represent banking transactions. You will continue processing until the sentinel value of 9999 is entered. This value indicates that it is the end of the month and stop processing activities for that month. There is a second special sentinel value of 8888 . When that value is entered the program should display the current balance (8888) and continue processing till the end of month. In addition, the program solution should conform to the following requirements. - The first value read is the starting balance. - The program will the read values one at a time until the end-of-the-month sentinel value (9999) is read. - Negative numbers are "checks" that reduce the account balance. - Positive numbers are "deposits" that add to the account balance. Remember that you do not process the sentinel values of 9999 or 8888 . In other words, these values should not be added to or deducted from your balance. - Any time a check is processed and the resulting balance is negative, the check bounces and there is a $10 fee assessed to the account (e.g., the balance is reduced by an additional 10 dollars). - When the user inputs the special(sentinel) value 8888 , the program should NOT treat this as a deposit, but instead should display the current account balance with a message formatted similar to: The current balance is \#\#\#\# Processing should continue. - When the user inputs the special (sentinel) value 9999 , the program should NOT treat this as a deposit, but instead should calculate the monthly service fee, which is either $10 or 10 percent of the account balance, whichever is smaller. After calculating the monthly service fee, it should be subtracted from the account balance. (If the service fee is negative you should use the absolute value of it. Remember subtracting a negative is the same as adding.) Then the program should display the monthly service fee and the endof-the-month balance with two messages formatted similar to the following two lines. The monthly service fee is \#\#\#\#. The account balance at the end of the month is \#\#\#\#. - the program ends after displaying the end-of-the-month account balance

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

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions