Preview

Retail Calculator

Satisfactory Essays
Open Document
Open Document
340 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Retail Calculator
package retail.calculator; import java.awt.*; import java.awt.event.*; import java.text.DecimalFormat; import javax.swing.*; public class RetailCalculator extends JFrame { //create ojects JLabel department; JLabel number; JLabel name; JLabel price; JLabel discount; JLabel sale; JComboBox dept; JTextField itemNum; JTextField itemName; JTextField itemPrice; JTextField itemDisc; JTextField salePrice; JButton calculate; JButton clear; public RetailCalculator() { //set object variables super("Retail Sales Calculator"); //window title setSize(250, 250); //set window size setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //window close GridLayout grid = new GridLayout(7, 2); setLayout(grid); department = new JLabel("Department"); dept = new JComboBox(); dept.addItem("Select"); dept.addItem("Apperal"); dept.addItem("Automotive"); dept.addItem("Cosmetics"); dept.addItem("Jewlry"); dept.addItem("Pets"); dept.addItem("Pharmacy"); //add ItemListener...combobox and jtextfield dept.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent ie) { String str = (String)dept.getSelectedItem(); itemNum.setText(str); } //end public void }); //end item listener number = new JLabel("Item Number"); itemNum = new JTextField(10); name = new JLabel("Item Name"); itemName = new JTextField(10); price = new JLabel("Original Price"); itemPrice = new JTextField(10); discount = new JLabel("Discount"); itemDisc = new JTextField(10); sale = new JLabel("Sale Price");

You May Also Find These Documents Helpful

  • Good Essays

    Cost of new equipment $200,000 Expected life of equipment in years 5 years Disposal value in 5 years $40,000 Life production - number of cans 5,500,000 Annual production or purchase needs 1,100,000 Number of workers needed 3 Annual hours to be worked per employee 2000 hours Earnings per hour for employees $12.00 Annual health benefits per employee $2,500 Other annual benefits per employee-% of wages 18% Cost of raw materials per can $0.25 Other variable production costs per can $0.05 Costs to purchase cans - per can $0.45 Required rate of return 12% Tax rate 35% Make Purchase Need of 1,100,000 cans per year *.25 $275,000 Variable production costs *.05 $55,000 Wages $72,000 Health benefits $7,500 Other benefits $12,960 Total wages and benefits $92,460 $422,460 $495,000 (72540) Before Tax Tax Effect After Tax Item Amount Amount Annual cash savings (make vs buy) $72,540 0.65 $47,151 * Tax effect on Annual Cash Savings is 1 - tax rate Tax savings due to depreciation $32,000 0.35 $11,200 * Tax effect on Depreciation is the tax rate Total annual cash flow $58,351.00 Initial investment/ Annual Cash Saving $200,000/ $58351= 3.4 years Annual cash savings (before tax effect) $72,540 Less Depreciation $(32,000) Before tax income $40,540 Tax at 35% rate $(14,189) After tax income $26,351 $ 26,351 / 200,000 13.18% Before Tax After tax 12% PV Present Item Year Amount Tax % Amount Factor Value Cost of machine 0 $(200,000) $(200,000) 1 (200,000) Annual cash savings 1-5 $72,540 0.65…

    • 371 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Prg421 Week 2 Ia

    • 565 Words
    • 3 Pages

    SwingConstants; /** * PRG 421 Week 2 * Retail Calculator Application * Greg W. Stuart */ public class RetailCalculator extends JFrame implements ActionListener { //instance variables for GUI elements private JPanel jPanel1, jPanel2, jPanel3; private JLabel lbTitle, lbItemName, lbDepartment, lbOriginalPrice, lbDiscountRate, lbSalePrice; private JTextField tfItemName, tfOriginalPrice, tfDiscountRate; private JButton btCalculate, btExit, btReset; private JScrollPane jScrollPane; private JTextArea jTextArea; private JComboBox jComboBox; private String strResult; private NumberFormat numberFormat;…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    With the geographical areas the places in which they are made or grown are completely different. I say this because with Tesco their produce such as mangos and banana’s will come from countries such as tropical plantations such as central and South America and Africa. But the majority of where they will import their bananas are from Costa Rica. In most cases they source their product from abroad. Whereas with H&M they from places such as Bangladesh as their products do not need to be grown. With Tesco because their products are perishable With storage it is vital that both companies store their product with care. They are going to storeas a fridge as they do not have anything that will go off by the time it gets to England.…

    • 267 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Consumer Math test 2

    • 582 Words
    • 4 Pages

    3. How many liters will a U.S. 6-quart container hold? Round your answer to the nearest hundredth.…

    • 582 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    9. To solve a problem involving the area and/or circumference of a circle, which calculator key(s) would you most likely use? _______________________ (Hint: What color is the sun?)…

    • 641 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Business Math

    • 356 Words
    • 2 Pages

    Sullivan’s Handbags marks up their bags at 45% of the selling price. Pat Sullivan saw a bag at a trade show that she would sell to her customers for $85. What is the most she could pay for the bag and still retain the 45% markup of the selling price? 6. Jeff Jones earns $1,200 per week.…

    • 356 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Consumer Math

    • 269 Words
    • 2 Pages

    The journey that I have taken through this Consumer Math class has been educational and eye opening. I have come to find through my studies that the world of business and marketing is not as “nice” as it may seem. This course has thoroughly presented some ways that you can avoid being defeated by the system, and subsequently use these minor disadvantages to your advantage.…

    • 269 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    cost sheet basic

    • 521 Words
    • 3 Pages

    During the 18th century, spas where men and women engaged in public bathing began appearing in France and England.…

    • 521 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Business Math

    • 3371 Words
    • 14 Pages

    Which do you prefer: a bank account that pays 5% per year (EAR) for three years or…

    • 3371 Words
    • 14 Pages
    Good Essays
  • Satisfactory Essays

    "A Supermarket in California" by Alan Ginsberg addresses Walt Whitman, who as it becomes evident throughout the poem, is Alan Ginsberg's poetic hero. Ginsberg looked up to Whitman for many reasons. Ginsberg was a bisexual or homosexual Jewish man, and Whitman was also thought to have been bisexual or homosexual. Ginsberg portrays Whitman's style and his legacy of writing by continuing Whitman's poetic assault to industrialized society and corporate and industrial growth. This assault is made evident in the poem "A Supermarket in California" because Ginsberg talks of "neon supermarkets" and uses the groceries as family members to represent a industrialized society which demanded a perfect nuclear family.…

    • 341 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Retailco

    • 1601 Words
    • 6 Pages

    RetailCo is a "typically Dutch" retail organization, which takes good care of its employees. RetailCo is a centrally managed company with headquarters and various divisions like food, sales and distribution etc. This case study focuses on the sales division, which is the key division of RetailCo, in which the largest part of the employees (about 85%) work. RetailCo has a unique culture and a separate collective bargaining agreement, tailored specifically to the needs of this company with its pros & cons. RetailCo was recently taken over by a US-based investment firm with a lot of experience in the US retail industry. The predominant approach to HRM in The US and The Netherlands shows some major differences like HRM in the US is characterized by relatively low job security, focus on high performance work systems, and an increasing use of variable pay systems, contrary to Dutch HRM, with relatively higher job security, higher wages with less variable pay, and attention for employee wellbeing. Alongside these differences, there are also some differences specific to the two firms with RetailCo having stakeholder approach and Investment firm having shareholder approach. This takeover presents a dilemma for Retailco HR and the core issue is how to best fit Retailco values with shareholders approach of the Investment firm without comprising its stakeholders interests.…

    • 1601 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    Br Retail Perfomance

    • 2086 Words
    • 9 Pages

    BT’s new CEO, Ben Verwaayen, is placing major emphasis on enhancing customer satisfaction. This presentation demonstrates the extent to which corporate social responsibility contributes to customer satisfaction in BT. It builds on the work described in Enlightened Values and undertaken by BT Retail. This is also available for download from the Better World site: www.bt.com/betterworld…

    • 2086 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Business Math

    • 837 Words
    • 4 Pages

    Business mathematics is mathematics used by commercial enterprises to record and manage business operations. Commercial organizations use mathematics inaccounting, inventory management, marketing, sales forecasting, and financial analysis. Mathematics typically used in commerce includes elementary arithmetic,elementary algebra, statistics and probability. Business management can be made more effective in some cases by use of more advanced mathematics such as calculus, matrix algebra and linear programming.…

    • 837 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Business Math

    • 713 Words
    • 3 Pages

    b) Let matrix A represent the sales (in thousands of dollars) of motorcycle company in 2004 in three cities, and let B represent the sales in the same cities in 2006, where A and B are given by…

    • 713 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Retail

    • 504 Words
    • 3 Pages

    RLS 2014 commenced with the inaugural speech delivered by Mr BS Nagesh, Chairman, Retailers Association of India (RAI). Aligning with the core theme of the summit “Retailing in Emerging Markets”, the speech was focused on the evolution that the Indian retail market witnessed in the last 10 years. business expansion. Some retailers have used the slowdown of 2010-2013 to rectify the mistakes. More importantly, there are now thousands of companies and sub-segments of industry who have joined the retail “Entrepreneurs in retail should build businesses because they see value, not valuation” – B S Nagesh, Chairman RAI, Founder, TRRAIN bandwagon,” said Nagesh.…

    • 504 Words
    • 3 Pages
    Satisfactory Essays

Related Topics