• 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:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Calculating different prices  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I know that this is small and stupid question but, although I am not complelty begginer in java, i am still in beggining on my learning path.
i am making an app where user can buy books. First, all prices books had the same prices and then my "customer" said that he would like to change some prices,and  messed my workflow,my logic and my code....
How to change that.

When user click some book he will able to fill up form.In that form he will find field with quantity.App will automaticly calculate the end price.


This is my first book activity. There is seven. Price of this book is 100



Here is my "Order" activity.Here i am calculating price.Here is price of the first book of 100. But what to do with other prices?



 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!