programming

posted by .

Write a program that asks for and reads the price of a book (it may have a decimal part), multiplies it by 7% sales tax and displays both the sales tax and final price of the book on the screen.

  • programming -

    $p = <STDIN>;
    $t = $p * 0.07;
    print $t,$p+$t;

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Sales tax

    tom paid 695.5 for a tv when 7% sales tax was included in that price what was the price of the tv before the tax and how much sales tax did tom pay?
  2. Sales Tax

    A video games price was 90$. The store offered 10% discount. How much did a costumer pay if there was a 8% sales tax on the selling price?
  3. Java Programming

    I'm a beginner to Java and I need to know how to do the following: Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax …
  4. Programming in Python

    A customer in a store is purchasing five items. Design a program in python that asks for the price of each item, and then displays the subtotal of the sale, the amount of the sales tax , and the total. Assume the sales tax is 6 percent.
  5. Java progamming 1

    I want the program to ask for and get the price of a book from a user. The program will then multiply the price by 7% sales tax and display both the sales tax and final price of the book (price + sales tax) on the screen. using Netbeans
  6. Math Problem (please help)

    State sales tax is based on retail price. An item that sells for $115.99 has a sales tax of $8.12. Find a mathematical model that gives the amount of sales tax y in terms of the retail price x. (Round the coefficient to two decimal …
  7. Pre algebra

    The purchase price of a book is $35.85 the sales tax rate is 6.5% how much is the sales tax to the nearest cent what is the total cost of the book
  8. programming

    Design a program and write program that will read a file of sales records and produce a sales report. Each record in the file contains a customer's number and name, a sales amount and a tax code. The tax code is to be applied to the …
  9. programming

    Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should …
  10. Math

    What is the amount of sales tax owed on a $39 jacket if the tax rate is 5%?

More Similar Questions