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

Alfie kohn beyond discipline - Discussion 2 Number 4 - Crime analysis strategies within Law Enforcement - What is the output of the following program segment - Environmental Science - Brunoli inc v town of bradford - Active listening skills handout - Project report on extension board - Birches robert frost theme - Harriet tubman conductor on the underground railroad book - Electromagnet experiment lab report - Network pro exam answers - A first amendment junkie pdf - Hydro 175 john deere - Mickey gilley and johnny lee dakota magic casino october 4 - Does target sell kindle fire hd - Pathophysiology (24 hours) - Ojala no sea demasiado tarde cuando te des cuenta - How do enterprise systems help businesses achieve operational excellence - Kmno4 and feso4 titration - International economics short essay - Ford motor company case study analysis - Pre-modern War - Hand gestures in art - All summer in a day worksheet pdf - Business Assignment - Deflection of simply supported beam - Misoprostol (Cytotec) 0835179056 DURBAN STANGER limpopo polokwane secunda witbank soweto musina - How would the following transactions affect us exports - Final Project - Obedience, Compliance, Conformity, and Group Think - Discontinuous variation in humans - National standards for mental health services 2010 - How to calculate the heat of reaction - Weather quotes in wuthering heights - Morang south primary school - Product line width length depth and consistency - Book bento - Principles of marketing assignment questions - History 100-45 History of the United States to 1877 - Standard first aid and cpr c test answers - Learner org ecology lab - Education Paper - What are some of the nutritional challenges for emerging populations - What type of seizure was this child probably experiencing - Product life cycle of colgate ppt - Topic 1: Accounting Research and the Codification -1 - Crewe and nantwich u3a - 20 units is how many ml - Project human resource management pmbok - Multiplier in three sector economy - Discussion - Open source incident management - Gordon wood the radicalism of the american revolution pdf - Texting and driving persuasive speech examples - Biome and Ecosystem - Nursing G P F (24 hours) - Answer the question, one page ,and reply - Hidden rules and expected and unexpected behaviors - Zinn chapter 1 questions and answers - #14 - Which defense mechanism aids children's resolution of the oedipus and electra complexes? - Writing Assignment - Their there they're worksheets - Chemistry in context answers - 8th grade book report - HRMT - Accounting chapter 14 on your own - What does laertes say must govern hamlet's marriage choice - Robbing the Dead: Is Organ Conscription Ethical? - Biology 130 - Future of life institute open letter - Brain case studies assignment answers - Betta grower mt waverley - Anti lock braking system research paper - Career break application letter sample - Baw baw frog facts - Mikes bikes strategic plan - Section review - The leadership challenge summary - Is kent pumpkin low fodmap - 31 twenty five boutique cookeville tn - Lausanne conference on world evangelism - Chain ratio method definition - Microsoft office leeds university - Rdbmss enforce integrity rules automatically - Hho dry cell wikipedia - Safety awareness for forklift equipment operator exam answers - Children literature & Psycholinguistic - Turnaround at the preston plant - Who is lucinda's employer answers - Separating sand and salt lab report - Sheryl hogan - Find and Review articles and summarize - History of tomato sauce mother sauce - Paper - Venturi meter experiment readings - Chadwell springs driving range - Stewardship and Human Resources - How to calculate full load current of 3 phase transformer