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

  • 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

    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

    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
  • 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
  • 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
  • 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

    Sattar receives a base salary of Tk. 90 weekly plus a 12% commission on all sales. He had Tk. 3,000 in sales this week. How much did he make total?…

    • 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

    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

    Choose the letter for the best answer. Round to the nearest cent. 5. Clay earned $2,600 last month. He paid $234 for entertainment. What percent of his earnings did Clay pay in entertainment expenses? A 9% B 11% C 30% D 90% 7. Kellen’s bill at a restaurant before tax and tip is $22.00. If tax is 5.25% and he wants to leave 15% of the bill including the tax for a tip, how much will he spend in total? A $22.17 C $26.63 B $26.46 D $27.82 6. Susan’s parents have offered to help her pay for a new computer. They will pay 30% and Susan will pay 70% of the cost of a new computer. Susan has saved $550 for a new computer. With her parents help, how expensive of a computer can she afford? F $165.00 H $1650.00 J $1833.33 G $785.71 8. The 8th grade class is trying to raise money for a field trip. They need to raise $600 and the fundraiser they have chosen will give them 20% of the amount that they sell. How much do they need to sell to raise the money for the field trip? F $120.00 H $3000.00 G $857.14 J $3200.00 54…

    • 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

    $60 – ($60 x .2) = $48, the price the whole seller sells at to the retailer…

    • 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