subject
Computers and Technology, 14.07.2020 17:01 neash31

java A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer’s balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows: a) Savings accounts receive 4% interest. b) Checking accounts with balances of up to $5000 more than the mini- mum balance receive 3% interest; otherwise, the interest is 5%. Write a program that reads a customer’s account number (int type), account type (char type; s or S for savings, c or C for checking), minimum balance that the account should maintain, and current balance. The program should then output the account number, account type, current balance, and new balance or an appropriate error message. Test your program by running it five times, using the following data: 46728 S 1000 2700

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 21:30, mariah10455
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
image
Computers and Technology, 24.06.2019 07:30, sunny644
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
image
Computers and Technology, 25.06.2019 10:30, KillerSteamcar
Tools used in a particular career depend on the tasks performed. true or false
Answers: 1
image
Computers and Technology, 25.06.2019 15:40, davisparker5269
Which is most likely to represent a single machine instruction for a small cpu? 0 11 11101101101 01
Answers: 1
You know the right answer?
java A bank in your town updates its customers’ accounts at the end of each month. The bank offers t...

Questions in other subjects:

Konu
Mathematics, 11.02.2021 05:30
Konu
Mathematics, 11.02.2021 05:30
Konu
Mathematics, 11.02.2021 05:30
Konu
Biology, 11.02.2021 05:30