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

Ax 2012 deploy reports - Management decision problem in marketing research - Calculating degree of static indeterminacy - Social work skills for process recordings - ONLINe LOVE ((USA)))*+91-9924492424 Love Problem Solution Specialist Baba Ji - Pathophysiology (24 hours) - Larry's tax basis in his partnership interest - Gerald graff disliking books summary - Organelles and illness activity case - Budget & Stress for Police Officers - 17 caroline street redfern - Discussion - Web analytics at quality alloys inc case summary - Argument - Dc offset removal filter - Who are the stakeholders in nursing education curriculum development - Information System Question Help - Bending light simulation lab answers - Cyber Law - Discussion: Wireless Networking - Analytical crm tools can slice and dice - Mary kay sales tax - What are the disadvantages of budgeting - Hillyard company an office supplies specialty store coursehero - Icd 9 gunshot wound leg - Work breakdown structure hospital management system - Basic forms of ownership - Bbc co uk dance mat typing - Restrict the domain of the quadratic function - Adios mama short film english translation - Run lola run jump cuts - January brings the snow poem - Capacitor charging voltage graph - Tests for visual agnosia - One page - General Chemistry - Can c&h recover the liquidated damages from sun ship - Behind closed doors imma fall for your love song - Bcg problem solving test - Product oriented layout example - How to do limiting reagent questions - Week 4 nurs 340 b dis - BUS Analytics II - Ip sla threshold timeout - What channel is hgtv on cox - Drive reduction theory of motivation pdf - Lord we worship you - Global health training center gcp - Module 01 Discussion - Conflicts of Actuarial Fairness - Moat farm infant school - What does the weight of an object depend on - Point hicks lighthouse cottage - R pod 176 specs - 956a appointment or withdrawal of an authorised recipient - 4-5 page corporate fraud - C++ programming from prob ll w mindtap - Repetition and parallelism in i have a dream - Jeff nippard push pull legs - Report paper - What is the use of delphi method in demand forecasting - Interim report meaning school - Database Project design - Unit III Discussion Board - The american promise volume 2 6th edition pdf - Controversial Art and Censorship - Thesis Draft - A consumer's optimal choice when buying a flat screen tv - Carine senior high school map - Write an algorithm to brush your teeth - Elements of drama tension - Efficient frontier analysis in srm - Curtin specialist mentoring program - Ibm tivoli directory integrator - Produce visualizations and then tell the story of your visualizations - Centrelink rockingham opening hours - Creating outline for essay - Fire sprinkler control valve - Synopsis for microbiology. - Capstone Research Companion - Cognitive psychology attention quiz - Is the bayeux tapestry a primary source - Digestive System - Hastings macleay speech pathology - University of birmingham map - Week 7 Discussion NURSING LEADERSHIP AND MANAGEMENT - Mid square method in hashing - Why is atp considered the energy currency of the cell - Preliminary investigation report sample - Goods with many close substitutes tend to have - Cassius speech to brutus rhetorical devices - How to use junket rennet tablets to make cheese - Database system - Mcq on demand and supply with answers pdf - Hris needs analysis - Abc3 shaun the sheep game - What is structural frame - Human Relations 3-4 Pages Not Including Title Page. Sources Must Be 8 Years Or Less! - Absolute change and relative change - Anecdotal observation example in childcare - Pr 2 3a journal entries and trial balance