Your task is to create a program that could be used to calculate the cost of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Your task is to create a program that could be used to calculate the cost of purchasing several items. Your program should include: 1. The name for your store. 2. Accept the quantity the user wants to purchase for 5 items. You will decide what those items are and the price. 3. Calculate the cost of each item. 4. Calculate the subtotal. 5. Calculate the discount for subtotal. You decide on the discount percent. E.g. 5 % - 0.5 * subtotal 6. Calculate the discounted subtotal. E.g. subtotal - discount 7. Calculate the HST. remember to use the discounted subtotal to calculate HST 8. Calculate the total cost. 9. Commenting and appropriate spacing. Add Program header to top of code 10. Round the total cost to two decimal places. 11. Constants for all variables that will not change as the program is run. (Price for items and percentages) Remember to add a welcome message, instruction for the user and thank you message -spacing the text on the screen to make it easy to read. Hint use in to give spacing on screen Note: To create a blank program 1. Click the plus on the top right or sandbox on the top left. 2. Type the name of the program(FirstnameLastintital Assignment#2). 3. Choose Java (Console) This assignment will be evaluated using the following rubric. Category Knowledge Thinking Application Communication Level 4 6/6 Correctly uses various concepts from unit 1. No bugs Correctly solves the problem(s) using efficient algorithms and choice of programming tools. Excellent style Level 3 4.5/6 Almost always correctly uses various concepts from unit 1, but there is a case where a concept is missed. 1 bug Correctly solves the problem(s). A few slips in style. Level 2 4/6 Mostly correctly uses various concepts from unit 1, but there are 2 cases where concepts are missed. 2 bugs One problem is correctly solved, and the other is at least half correct Or One problem is missing at few areas of the solution. One aspect of style is often missing. Level 1 3/6 Correctly uses some concepts from Unit 1. 3+ bugs, but the program does work in some cases. Problem(s) is(are) at least half solved. One aspect of style is missing. Your task is to create a program that could be used to calculate the cost of purchasing several items. Your program should include: 1. The name for your store. 2. Accept the quantity the user wants to purchase for 5 items. You will decide what those items are and the price. 3. Calculate the cost of each item. 4. Calculate the subtotal. 5. Calculate the discount for subtotal. You decide on the discount percent. E.g. 5 % - 0.5 * subtotal 6. Calculate the discounted subtotal. E.g. subtotal - discount 7. Calculate the HST. remember to use the discounted subtotal to calculate HST 8. Calculate the total cost. 9. Commenting and appropriate spacing. Add Program header to top of code 10. Round the total cost to two decimal places. 11. Constants for all variables that will not change as the program is run. (Price for items and percentages) Remember to add a welcome message, instruction for the user and thank you message -spacing the text on the screen to make it easy to read. Hint use in to give spacing on screen Note: To create a blank program 1. Click the plus on the top right or sandbox on the top left. 2. Type the name of the program(FirstnameLastintital Assignment#2). 3. Choose Java (Console) This assignment will be evaluated using the following rubric. Category Knowledge Thinking Application Communication Level 4 6/6 Correctly uses various concepts from unit 1. No bugs Correctly solves the problem(s) using efficient algorithms and choice of programming tools. Excellent style Level 3 4.5/6 Almost always correctly uses various concepts from unit 1, but there is a case where a concept is missed. 1 bug Correctly solves the problem(s). A few slips in style. Level 2 4/6 Mostly correctly uses various concepts from unit 1, but there are 2 cases where concepts are missed. 2 bugs One problem is correctly solved, and the other is at least half correct Or One problem is missing at few areas of the solution. One aspect of style is often missing. Level 1 3/6 Correctly uses some concepts from Unit 1. 3+ bugs, but the program does work in some cases. Problem(s) is(are) at least half solved. One aspect of style is missing.
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner public class ShoppingCart public static void mainString args Constants final ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
L = {w| L2 = {w| Two languages L1 and L2 are defined by symbols = {0, 1}, written as w contains 00 as a sub-string and the length of w is even number} w begins with 0 and ends with 1} (i) Write two...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
1. a) Fill in the missing numbers in the inventory schedule using the weighted-average cost inventory valuation method. This company uses the perpetual inventory system. Do not enter dollar signs or...
-
Find the volumes of the solids in Problems 4952 correct to the nearest unit. 4 cm -6 cm 8 cm
-
To test the strength of a 25 20- in. suitcase, forces are applied as shown. If P = 18lb, (a) Determine the resultant of the applied forces, (b) Locate the two points where the line of action of the...
-
Carbon dioxide is throttled from 20C, 2000 kPa to 800 kPa. Find the exit temperature, assuming ideal gas, and repeat for real gas behavior.
-
DOUG: Now that it looks like we are going to get approval on these two new cancer drugs, we need to get a sales force out there selling them for us and we need to do it quickly. HAROLD: I agree. Weve...
-
A machine is purchased January 1 at a cost of $77,000. It is expected to serve for eight years and have a salvage value of $5,000. REQUIRED Prepare a schedule showing depreciation for each year and...
-
please name one digital/social media invention/trend that you are grateful for and could not live without. Give 3 reasons why and support your opinion with data, statistics or a newsletter article....
-
The financial statements at the end of Wolverine Realtys first month of operations are as follows: Instructions By analyzing the interrelationships among the four financial statements, determine the...
-
Begin by selecting the formula to compute the earnings per share of common stock. Earnings per share =Market price per share of common stock + Earnings per share Now, compute the earnings per share...
-
The table lists the state income tax rates for a single person earning $50,000 per year for several states in 2019. State Income Tax (%) Arizona 3.34 California 8.00 Hawaii 8.25 Georgia 5.75 New...
-
What are the current trends and future prospects in the field of separation science and engineering, including advancements in materials design, process modeling, and systems integration, as well as...
-
the above On January 11, ABC Company borrowed $20,000 from XYZ and gave a 90-day, 9% note. On January 31, XYZ should record: (use 360 days or 12 months during your calculation)
-
The following are probable salvage value estimates for an asset: $4,500 with a probability of 33%, and $7,800 with a probability of 67%. Compute the "expected" salvage value of the asset.
-
How do advancements in materials science and nanotechnology enable the development of innovative separation membranes, adsorbents, and catalysts with tailored pore structures, surface chemistries,...
-
Attend charity fund raiser $300 Provide 30 hours of service Pay $65 in tolls Provide 11 hours of service Pay $1,560 for computer software to simplify tracking customer information and scheduling...
-
l ask this second time correnct answer is 38,01 can we look pls Consider a non-conducting rod of length 8.8 m having a uniform charge density 4.5 nC/m. Find the electric potential at P, a...
-
Jenny earns $34,500 in 2012. Calculate the FICA tax that must be paid by: Jenny: ..............................Soc,Sec. ..................$______________...
-
In 2012, Michael has net short-term capital losses of $2,000, a net long-term capital loss of $45,000, and other ordinary taxable income of $45,000. a. Calculate the amount of Michael's deduction for...
-
William sold Section 1245 property for $25,000 in 2012. The property cost $35,000 when it was purchased 5 years ago. The depreciation claimed on the property was $16,000. a. Calculate the adjusted...
-
Use Minitab to obtain the results of Tukey's test for the shear bond strength data from Example 1 in Section 13.1. Approach The steps for obtaining the results of Tukey's test using Minitab, Excel,...
-
Another scientist examines how the presence of a nonnative bird species, the starling, affects other species of birds. Is this a population-level study, a community-level study, or an ecosystem-level...
-
What is the function of the placenta?
Study smarter with the SolutionInn App