Preview

Java

Good Essays
Open Document
Open Document
827 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java
Java Problems

SEQUENCE PROBLEMS:

1. Create a Java program that will print the sum of two integers.
2. Print the sum and product of three integers.
3. Print the perimeter and area of a rectangle.
4. Given the number of a baseball team’s wins and losses, compute its winning percentage. Assume that there are no ties.
5. Input the number of a team’s wins, losses, and ties, and print its winning percentage. Assume that a tie game counts as a full game played and a half-game won.
6. Given the list price of an item and the rate of discount, print the amount of the discount and the net price.
7. Given the list and net prices of an item, find the amount of discount and the percent (rate) of discount.
8. Input the total amount of a sales and the sales tax rate, find the amount of tax and the net sale after taxes.
9. The withholding tax on a weekly salary (let us assume) is computed as follows: 14% of the difference between a person's gross pay and $13 times the number of dependents he or she claims. Read the values for the gross pay and the number of dependents; print the withholding tax.
10. Input the amount of food ordered and then output the amount to be paid when a sales tax of 4% is to be added to the cost.
11. Employees at a certain company have won a 6.5% pay increase. Input the old salary and then output his new salary.
12. Input your height in feet and then convert it to inches and centimeters.
13. Input the length of a side of a square and then output its perimeter and area.
14. Input the price of an item bought at sale. Subtract 20% from the original price and print the new price.
15. Input the price of an apple bought at a store and its rate of discount and then output the amount of discount and the net price.
16. A flower shop sells roses for P50 each, orchids for P80 each, and tulips for P90 each. Write a Java program that would input the number of roses, orchids, and tulips a customer bought and output the total cost.

Java PROBLEMS:

You May Also Find These Documents Helpful

  • Satisfactory Essays

    QRB501 WEEK1 PROBLEMSET

    • 519 Words
    • 3 Pages

    7. The annual real estate tax on a duplex house is $20,889 and the owner sells the house after 7 months of the tax year. How much of the annual tax will the seller pay? How much will the buyer pay?…

    • 519 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Xacc/280 Week 3 Quiz

    • 826 Words
    • 4 Pages

    9. _____ The accountant at Almira Company is figuring out the difference in income taxes the company will pay depending on the choice of either FIFO or LIFO as an inventory costing method. The tax rate is 30% and the FIFO method will result in income before taxes of $8,190. The LIFO method will result in income before taxes of $7,290. What is the difference in tax that would be paid between the two methods?…

    • 826 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    5. The program will calculate and display a final tax based on a 7.5% sales tax.…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    1. Using a similar approach as example 2.3 (textbook page 75): “Finding the Sale Price of Items in a Department Store”, provide your analysis for the following problem statement:…

    • 832 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    ops335 lab 2 firewall

    • 695 Words
    • 4 Pages

    6. Display the tax payable and total purchase price for the book to the customer.(tax + list price = purchase price)- data type decimal…

    • 695 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Educarnival Home Study Guide

    • 3243 Words
    • 13 Pages

    Jibon made a 15% profit on the sale of a custom designed boat and the original cost of the boat was Tk. 15,000. The boat sold for how much?…

    • 3243 Words
    • 13 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

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

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 6 Template

    • 378 Words
    • 2 Pages

    (c) total earnings, $482.25 2–21a. (d) total weekly earnings, $398.96 Chapter 3 Problems 3–1a. total employees’ FICA taxes, $300.45; $70.28 3–3a. (a) FICA taxes, $56.73; $13.27 3–5a. November 15 (Hanks), FICA taxes, $130.20; $78.30 3–7a.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Econ 101 Practice Test

    • 983 Words
    • 4 Pages

    15. The publisher of an economics textbook finds that when the book's price is lowered from $70 to…

    • 983 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    unit 3

    • 313 Words
    • 2 Pages

    6. Write a pseudocode statement that declares the variable total so it can hold real integers. Initialize the variable with the value 0.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    That Paper

    • 382 Words
    • 2 Pages

    Write the correct answer. 1. A bakery can sell muffins for $1 each. If it costs the bakery $5 to make 20 muffins, what percent of the money made from muffins sales is profit?…

    • 382 Words
    • 2 Pages
    Good Essays
  • Good Essays

    2. Calculate the standard deviation of winning percents for each year at the bottom of each column for the NL.…

    • 1049 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Personal Finance

    • 250 Words
    • 2 Pages

    3. Suppose you pay $24 for a pair of shoes that has been discounted 20%. What is the original price of the shoes? Show how you identify what you are looking for, set up an equation, arrive at your answer, and check your work. Then clearly state your answer.…

    • 250 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1.3 A consumer purchases a toaster from a retailer for $60. The retailer’s markup is 20%, and the wholesaler’s markup is 15%, both based on selling price. For what price does the manufacturer sell the product to the wholesaler?…

    • 278 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    12. A person lost 10% when he sold goods at Rs.153. For how much should he sell them to gain 20%?…

    • 1362 Words
    • 6 Pages
    Good Essays