• Post Reply Bookmark Topic Watch Topic
  • New Topic

Switch statement  RSS feed

 
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]
 
Ranch Hand
Posts: 74
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?
 
Ranch Hand
Posts: 447
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.
 
Java Cowboy
Sheriff
Posts: 16060
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
 
Ranch Hand
Posts: 406
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.

 
Marshal
Posts: 56600
172
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!