Results 1 to 2 of 2

Thread: Write a Java Programm Help !!

  1. #1
    Join Date
    Apr 2012
    Posts
    3

    Write a Java Programm Help !!

    Have any of you guys done this program in java ?


    Write a program to create a customer's bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player and Tape Recorder. The unit prices are $400.00, $220, $35.20, $300.00 and $150.00 respectively. The program must read the quantity of each piece of equipment purchased from the keyboard. It then, calculates the cost of each item, the subtotal and the total cost after an 8.25% sales tax. The input data consists of a set of integers representing the quantities of each item sold. These integers must be input into the program in a user- friendly way; that is, the program must prompt the user for each quantity as shown below -

    How many TV's were sold? 3
    How many VCR's were sold? 5
    How many remote controller's were sold? 1
    How many CD's were sold? 2
    How many Tape Recorder's were sold? 4

    The output of the program should print the following data properly formatted:

    QTY
    DESCRIPTION
    UNIT PRCE
    TOTAL PRICE

    SUBTOTAL
    TAX
    TOTAL

    Define constants for the unit prices and the tax rate. Use integer variables to store the quantities for each item. Use floating-point variables to store the total price of each item, the bill subtotal, the tax amount and and the total amount of the bill. Run your program two times with the following data:

    Set 1 -> 2 1 4 1 2
    Set 2 -> 3 0 2 0 21

    Format the output adequately showing the 4 columns (QTY, DESCRIPTION, UNIT PRICE, TOTAL PRICE) in a single row. Use System.out.printf for output.

  2. #2
    Join Date
    Mar 2010
    Posts
    154

    Re: Write a Java Programm Help !!

    I am not sure about creating all that program and then posting a script here. There are chances of error. I remember for this kind of work I had used a tool called as Jcreator. This is a kind of Java Program maker tool. It offer you a easier way to create programs without going much deep with the code stuff. There are tools like project management, templates, debugger, with a easy to use customizable images. The user interface also provides you easy option to create and test applications.

Similar Threads

  1. how to write this pyramid using java?
    By Rainy in forum Software Development
    Replies: 1
    Last Post: 07-09-2011, 02:30 PM
  2. Need help to write this program in java?
    By frkadeel in forum Software Development
    Replies: 1
    Last Post: 01-12-2010, 02:58 PM
  3. How to write a Key Listener in Java?
    By N I C K in forum Software Development
    Replies: 5
    Last Post: 13-02-2010, 12:52 AM
  4. How to write a Change Listener in Java?
    By Samarth in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 05:10 AM
  5. Write Once And Run Anywhere Nature In Java
    By D_chapple in forum Software Development
    Replies: 5
    Last Post: 10-02-2010, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •