• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calculating different prices

 
Ranch Hand
Posts: 36
Android Java ME
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?



 
No holds barred. And no bars holed. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic