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

We shall fight on the beaches techniques - Reciprocal inhibition in healthcare - 80a bra size conversion - Post it notes on a marriage play - Background and Methods Section - What is the normal balance of accumulated depreciation - Empirical formula and molecular formula worksheet answers - Who is the old boy in the crucible - Mrs weera the breadwinner - Deliverable 4 - Intellectual Property Flowchart / CREATE FLOW CHART - Lab 4 - SQL Queries(DDL Create Tables) - WEEK 3 Discussion Prompt 1 PHARMACOLOGY - Discussion 6 - Discussion - The word worldview is derived from two german words meaning “world” and “perception.” - EDUC-6263 - Sexual Orientation - 62.50 euros in pounds - Penn foster math placement test - Distinguish between logical process models and physical process models. - Strategic Management Practices: An Approach Towards Reducing Financial Crimes - Discussion Reply- Response 1-2 paragraphs with 1-2 references - +91-8890675453 love marriage problem solution IN Jalna - Assignment: Identify a Problem - 2.96 as a mixed number or fraction in simplest form - What is gunning fog index - Tweet history by date - What makes water so special - Www voipon co uk - 25 magpie trail crawfordville fl - BUS 629 Week 1 Assigment - Unit trust of india children's gift growth fund 1986 - Chapter 18 building vocabulary cold war conflicts answers - A crane has a cable with a breaking strain - Eliza doolittle character sketch - Baseball speech attention getter - Large herbivorous dinosaur crossword 9 letters - WK4: SEC 10-K Statement of Stockholders' Equity and WK5: SEC 10-K - Re-wright assignment by your own way - Ltspice plot voltage vs current - Electromagnetic waves physics classroom - Relationships and interdependencies between marketing and other functional areas - The initials that indicate a shunting procedure are - Magnesium hydroxide is 54.87 oxygen by mass - SOCW6361 - Selection pressure peppered moths - Discussion B40 - Secondary school teacher personal statement examples - Lorain county sheriff sale - Project management 8.21 answers - Describe the relationship between health care cost and quality - Leadership traits of martin luther king jr - Aqa a level grade boundaries - Characteristics of behavior aba - Purnell and paulanka model of cultural competence - The generic value chain consists of - Grand canyon university lesson plan template - Identify where and how ikea has achieved cost leadership - Louis vuitton in japan case study analysis - High country inc produces and sells many recreational products - Derivative of inverse trig - Mrs merriweather hypocrisy quotes - Sheffield uni accommodation map - Sdro enf order payment - Discussion 5 TM - C11 Lesson 2 Exam SCORE 95 PERCENT - Project management growth concepts and definitions - Examples of euphemism in the giver - Homework - HSA 599 WEEK 7 - Package thermal resistance table - Nottingham uni occupational health - University of brighton doctoral college - Agwa bomb alcohol percentage - Section 106 consultation letter - Mcgraw hill connect accounting chapter 8 answers - Oreo value proposition - Intersection - Examples of information systems in everyday life - Garfield company purchased as a held to maturity investment - What percentage of gmat scores are or higher - Canada life international ifa - George wood theatre goldsmiths - Tense present by david foster wallace - City of sydney dcp - Discussion - Macbeth act 4 scene 3 - Neither wolf nor dog sparknotes - Open and closed systems in mis - Dis - Fickle monster cases discount code - 8500 steps in miles - What gases are exchanged by an animal with its environment - The book, the wealth of nations, published in the eighteenth century, emphasizes the power of - Dbmss typically include report generating tools in order to - Cuchulainn's boyhood deeds summary - Human resource planning process in kfc - Business & WORKPLACE CONDITIONS - When brothers share a wife reaction paper - The role of government