ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 2 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 27 Apr 2017 My Price 9.00

use the default file for your code

This is my Java/NetBeans assignment. I am going to try to work it out on my own, but if my code doesn't work, I'd like to have the correct code to reference:

  • Only use the default file for your code - do not create a new class!
  • Add a constant value for the tax rate - 8%
  • In the 'main' method file add the following:
    • Using the JOptionPane Class, ask the user for the cost on an item.
      • Use this answer for the rest of the program 
      • Do not create three JOptionPanes, only one for user input and one for output.
    • Convert the users answer to a double number.
    • Create one string that has results from all three methods (method requirements are below)
    • Create one JOptionPane to display the results. For example - if the user enters 35.25, the output could look like this:
  • Create three overloaded methods each with the name ComputeBill that will do the following:
    • First overloaded method - Calculate the cost including tax
      • Pass the cost of the item
      • Calculate the taxes on the item based on the tax rate.
      • Return thecost including tax
    • Second overloaded method - Calculate the cost including tax for 4 items
      • Pass the cost of the item and the number of that item sold
      • You do not have to ask the user for this number, just pass 4 for the quantity.
      • Calculate the taxes on the items based on the tax rate.
      • Return thecost including tax for 4 items
    • Third overloaded method - Calculate the cost including tax for 4 items with a $20 coupon
      • Pass the cost of the item, the number of that item sold, and the the coupon value.
      • You do not have to ask the user for this number, just pass 20.00 for the coupon value.
      • The coupon amount is removed from the cost BEFORE you calculate the tax.
      • Calculate the taxes on the items based on the tax rate.
      • Return thecost including tax for 4 items with a $20 coupon.

Answers

(11)
Status NEW Posted 27 Apr 2017 06:04 AM My Price 9.00

-----------

Attachments

file 1493274899-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)