• Post Reply Bookmark Topic Watch Topic
  • New Topic

Switch statement  RSS feed

 
Damola Olaleye
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone solve this?

Adapt the switch statement of the program so that the interest is applied only if the amount of money entered satisfies the minimum balance requirement for the given account.

Assume that each type of bank account is associated with a minimum balance as shown in the attached picture.
New-Doc-15_1.jpg
[Thumbnail for New-Doc-15_1.jpg]
 
Jesse Matty
Ranch Hand
Posts: 69
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this looks like homework
 
Damola Olaleye
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you help me with this?
 
John Joe
Ranch Hand
Posts: 372
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, we here to help, but you have to show your code and let us know where you stuck.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16044
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Damola, welcome to the Ranch.

In your question you are talking about a program, which is, I presume, a program that you got from a course you are following. Without seeing the original program, it's hard to help you with this. Also, please explain what you've tried yourself and where you are stuck - that way, we can help you get over the problem and you can learn.

If you don't know how Java's switch statement works, then take a look at this page in Oracle's Java Tutorials: The switch Statement
 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are 2 accounts who had the same minimum.

 
Campbell Ritchie
Marshal
Posts: 56202
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana Ucaed wrote:There are 2 accounts who had the same minimum.
Does that make any difference to the final implementation?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!