Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java language A2b - 1/0 and Arithmetic Assignment Instructions Make sure you review the Notes - Input and Output. In this part, you will solve

image text in transcribed
image text in transcribed
image text in transcribed
Java language
A2b - 1/0 and Arithmetic Assignment Instructions Make sure you review the Notes - Input and Output. In this part, you will solve a problem described in English. You are raising funds for a charity by selling items door-to-door. You can't figure out sales tax in your head, so you will use a program to do that. Assume each customer will buy 3 items. Your program will ask for the price of the first item and out the price of the first item. Then, the same for the second item, and then the third item. See the Sample Run below. Your program will then separately calculate the subtotal price without sales tax, the amoules of tax, i.e. assume you are in Orlando where the tax rate is 6,5%, and calculate the total price including the tax Then, output the subtotal, tax, and total. See the Sample Run below. Note: This program does not use any selection constructs, arrays, loops, or functions; just input/output, constants, variables, assignment statements, and arithmetic. Sample Run interaction with your program should look like this: (user input is bolded) Enter the price of the first item: 2.50 You entered $2.50. Enter the price of the second item: 8.00 You entered 58.00 Enter the price of the third item: 0 You entered 90.00 The subtotal of your order is $10.50 The subtotal of your order is: $ 20.50 The tax for your order is: s 0.68 The total with tax is: $11.18 Thanks for supporting >. Format your output like it is above in the Sample Run, es, with everything starting along the left margin, blank lines between each part, dollar signs lined up with each other, numbers displayed to two decimal places and lined up on the decimal point, number spacing should accommodate numbers in the thousands, scadd your favorite charity here>> including the chevrons replaced with the name of an actual charity, etc. In addition, you should format your code according to the Code Conventions for this course, e.g., putting comments at the beginning of your program, left braces at the end of the previous line, indenting properly, etc; alternatively, you could use JavaDoc comments; see the links in the Resources Overview and the Template. Make sure your code is well organized labeling each section with a single line comment, 8. // Packages, // Constants and Variables, // input. // Calculations, // Output, etc Once you have your program running and displaying output correctly, select all the code (press the Ctrl a key combination), copy it (ctrlc) from your development environment, and paste it (Ctrl + v) into this document Deliverables You must submit this completed document to Canvas. Code Replace this line with your code If you are stuck, search the Ask Questions Here discussion for an answer, or if appropriate, post a "new" message in the Ask Questions Here discussion

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago

Question

3 How the market system answers four fundamental questions.

Answered: 1 week ago

Question

5 The mechanics of the circular flow model.

Answered: 1 week ago

Question

1 The difference between a command system and a market system.

Answered: 1 week ago