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

Wareham house hotel thetford - Qiagen maxi prep kit - Front squat jeff nippard - Ride with the mob hum do allah - Psychological consultation and collaboration in school and community settings - Forever young america's obsession with never growing old answers - Nut performance related pay - 0.1 10 times as much as - Which of the following accounts belongs on the asset side of a balance sheet? - What is the hpy on your investment - Gallup strengths based leadership - Internal environment of honda company - Help in statistics - Lumitron aerospace lighting components - Presenting problem case study example - Bourne again shell meaning - Chemistry lab - Tda technical design authority - What is the relationship between a theory and a hypothesis - Fisher v carrousel motor hotel case brief - Cell structure and function lab answers - All epithelial tissue rests upon - Case study - Hmac in network security - Cpa australia singapore exam dates - Thermal properties of refractory materials - It project transition to operations checklist - Benner's novice to expert model - First and second order circuits - Monmouth university alumni directory - Abhi Assignment - Organizing for the creative person pdf - Nucor at a crossroads case - Bachelor of business economics finance and trade unisa - University of adelaide harvard referencing - Watch gargoyles the movie the heroes awaken online free - Discussion question - Crescent pure case study marketing research - Bond markets analysis and strategies edition - A steel strip emerges from the hot roll - Come you spirits analysis - International journal of sustainable economies management - Epson eb 1410wi projector - Hangman game project documentation in python - Defect report template doc - Tafe sa diploma software development - Project dj accounting answers - Solve 2x 13 8x 7 - Business ethics shaw 9th edition - Bmi the duchy hospital - Brehm v eisner case brief - Cozy console heater manual - Plumbing supervisor job description - Accounting for the intel pentium chip flaw case solution - ¿cuántos diccionarios tiene elena? elena tiene cinco diccionarios. - Disgronificator - Compare and contrast art examples - Advantages and disadvantages of probation and parole - Powerpoint presentation about a famous person - Virtual fetal pig dissection worksheet answers - A lot of noise and no walnuts idiom meaning - Wiltshire historic churches ride and stride - Prepare income statements for each year using absorption costing - Wesley wise - The happy secret to better work essay - Cpt laparoscopic partial gastrectomy procedure - 2 what do your results indicate about cell cycle control - Mrs beech chiropodist swaffham - Issues facing the international community - Connect accounting chapter 8 homework answers - Swot analysis of coca cola 2018 - 2 tagama court doreen - National geographic map maker - 107nurfr7 - Asperger Syndrome - Library chamberlain.edu - Intended for brilliant answers ONLY - North walsham infant school - Incentive spirometry after abdominal surgery - $1m usd to aud - Week 15 - Example of a preliminary investigation report - Bio 101 course outline - What is brand spiraling - Order 2190476: EFFECTIVENESS OF COUNTERTERRORISM IN AFRCA - 15 second commercial monologues - Dsr avocent kvm over ip switch - Dettol antiseptic liquid advertisement - Discussion Reply- Response 1-2 paragraphs with 1-2 references - Crisis intervention strategies 8th edition ebook - ENG 1252 MOD 2 Rhetorical 1 - Ucl arts and sciences - Care plan concept map example - Case study vignette revisited - Hazmat training powerpoint presentations - Advertising's goal is to enhance - Ancient roman interior design - First act lola ce140 - Global Media and Representation Discussion Post - Zappos is a weird company