Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Calculating total cost in java

07/10/2021 Client: muhammad11 Deadline: 2 Day

Java I: Create a Java program that will accept the price of an item and the quantity being purchased of that item. After accepting the input, calculate the amount of the purchase (based on the price and quantity), calculate the sales tax on the purchase, then output the product price, quantity, subtotal, sales tax, and the total sale based on the output format shown below.

Structure your file name and class name on the following pattern:

The first three letters of your last name (begin with upper case.).

Then the first two letters of your first name (begin with upper case.).

Follow this with the name of the program: ProductSales.

For a student called ’John Doe,’ the class name and file name would be: DoeJoProductSales

--------------------------------------

Name the program ProductSales and format the title as described above by incorporating your name.

Use good comments:

Write a good description of what the program does.

Use comments within the code as well, especially on calculations and other areas that might need some explanation.

Think about the problem and decide what type each of the input numbers should be. Also, think about the calculations and decide what type the variables should be that will hold the results of the calculations.

Use camel casing for variable names, and use descriptive variable names. This time I will take points off for variable names like "tax" or "total."

Prompt the user with a statement asking for each of the input values. Clearly express what the user is to enter. Each prompt will be a simple text statement that will appear just prior to the input of the number.

Label all output to match the Output Format section below.

Use the printf() method to format the output of the dollar amounts.

Tip

Tip #1

The sales tax amount should be a constant in the program and does not need to be input. Set that constant equal to 0.06 and use that constant variable in the calculation.

Tip

Tip #2

Other than the quantity, the variables in this program will hold dollar amounts. Therefore, be sure that your variable types will hold dollar amounts (dollars and cents), and that the variables to hold the results of calculations will hold those types as well.

--------------------

3.2. Output Format

Format the output to look similar to the following:

The 9s simply indicate where numbers will be. There will not always be a number for each 9, except for the cents in the dollar amounts.

***** Product Sale Calculations *****

Product price: $9.99

Number of units purchased: 9

Subtotal: $99.99

Sale tax on purchase: $99.99

Final Sale amount: $99.99

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Quality Homework Helper
Solutions Store
Professional Coursework Help
Finance Homework Help
Premium Solutions
Engineering Help
Writer Writer Name Offer Chat
Quality Homework Helper

ONLINE

Quality Homework Helper

I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$33 Chat With Writer
Solutions Store

ONLINE

Solutions Store

Give me a chance, i will do this with my best efforts

$41 Chat With Writer
Professional Coursework Help

ONLINE

Professional Coursework Help

Give me a chance, i will do this with my best efforts

$45 Chat With Writer
Finance Homework Help

ONLINE

Finance Homework Help

I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$33 Chat With Writer
Premium Solutions

ONLINE

Premium Solutions

I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$38 Chat With Writer
Engineering Help

ONLINE

Engineering Help

I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$36 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Social work role play scenarios - Which portion of the microsoft baseline security analyzer (mbsa) scan takes the longest? - CMGT/445 - Mansa musa pilgrimage primary source - Intuitive decision making meaning - Aliant payment systems inc - Path of exile checking resources forever - Assignment - El enfermero le la temperatura al paciente. (tomar, ir) - No mobile phones in school - Early Childhood Education Essay specifically for kindergarten - Elements of film powerpoint - The electron dot structure for ascl3 - Discussion - Separation of a mixture of solids lab report - Fate and free will in antigone - Drugged high on alcohol summary - What was the ghazu what was the ummah - Pine brush rest area - Writing Assignment: Media Analysis - Delivering bad news to employees letter - Youtube budweiser lost dog commercial - Information technology for the health professions 5th edition - Unscramble words with answers - Bim bom song lyrics - Essay - Tropicana fishing lodge - What does instantaneous rate of change mean - Nctsn pfa online post test answers - A 20 kg loudspeaker is suspended 2.0m below - Discussion: Searching Databases - Pre and clr jk flip flop - Executive decision making at general motors case analysis - HW - Suppose you manage a 4 million fund - How long is 65 feet - 1560 kj to cal - Organizational Behaviour MGT-301 - Boston globe kenken - Medical law ethics & bioethics for the health professions pdf - Environmental health great yarmouth - Intel xeon 7500 wiki - Jumper cables and ohm's law - Round orange pill 10 dan 5554 - TRAUMA - Lesson plan template australia - WEEK VIII PT 2A - Smallpox risk today - How many miles are in 8800 yards - Blue ridge daycare dubbo - Ni pv pmt fv calculator - PSY 2000 Film Evaluation - Copper cycle lab report example - Payroll program c++ source code - Disaster Management - Ebrary berkeley - Anne boykin and savina schoenhofer nursing as caring - FOR MOKUL NETW 230 - Gilly hicks store australia - Acetxt promo code - Easy cello pieces pdf - Examples of verbal false limbs - Managerial Accounting: DQ1 - Nurs 6650 midterm exam questions and answers - Scott rosen solar capital - Introduction to data mining pang ning tan vipin kumar pdf - Ap chem score calculator - David jones $10 welcome reward - Decision support system for restaurants - Www biologyjunction com cell functions htm - Bathe in reeking wounds - How early years settings meet children's rights to play - Wms iv index scores - Every organization has its own organizational culture - Dennis rader paula dietz - British computer society code of ethics - Respiratory soap note example - Issa specialist in fitness nutrition final exam answers - Facts about the twelve apostles - Annotated bibliography and outline leadership behavior - So easy three day cleanse - Harry potter lesson plan pdf - Financial accounting tools for business decision making edition - Dissertation Research topic for approval - Human Resource Mang. (for tutorjass) - Intercultural Competence Worksheet - Financial managerial accounting 14th edition answers - MM_ Service Marketing Report - Bobcat lift actuator not in neutral - A clear conscience is a soft pillow essay - Nab small business plan template - Charisma lafayette la homecoming dresses - Discussion - 26 l of the a - U verse channel lookup - Principle of lateral continuity geology - Assignment. - External environmental factors affecting mcdonalds - Response to Week Discussion 7 - Week 2 Research Paper: Mastering Blockchain