• 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Enhancing My BillingDialog

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am supposed to replace the code currently in the main() method with the following code:


       

And when I execute the program the output should look like this... I dont know how to do it.
       Welcome to the law offices of
       Dewey, Cheatham, and Howe.
       Printing yourBill
       Hours=4
       Minutes=30
       Fee=$2700.0
       Printing myBill
       Hours=2
       Minutes=20
       Fee=$1350.0
       yourBill and myBill are not equal.
      Finally, let us test your accessors.
      yourBill Hours=4
      yourBill Minutes=30
      yourBill Fee=$2700.0
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!