• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 81
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: 570
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: 16084
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: 442
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: 60155
188
  • 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!