BlueJ is a java IDE could you please do the assignment in that, because the teacher wants to see the code run inside BlueJ, its a free IDE. Please read the word doc and instructions carefully when...

1 answer below »
BlueJ is a java IDE could you please do the assignment in that, because the teacher wants to see the code run inside BlueJ, its a free IDE. Please read the word doc and instructions carefully when doing the assignment. This is one of the instructions :

a) By having only 5 products that can be ordered it allows students who want to use arrays to do so, and those who don’t will need a switch or set of if statements.


Please also read all the instructions. And please do all the documentation as told in the word doc




Java Assignment Warehouse Manager’s Pricing Assistant GENERAL INSTRUCTIONS This assignment should be done individually. The assignment consists of two parts. One part is a written submission of code you have written, test plan and test runs (Part A, worth 25 marks, details in this document), the other part is writing a swing program and demonstrating it (part B worth 5 marks, details yet to be provided). You can ask for help during the tutorials and your tutor will be happy to assist; but they are instructed to try to guide you through finding a solution yourself rather than giving you an answer. Students should be aware that I may do some kind of plagiarism check. Note: code must be in BlueJ, code written and submitted in any other Java environment may not be able to be marked. This assignment is marked by as a submission of a single zip file. It should be submitted to Canvas by its due date (see above). You need to submit: · The java program code as a Bluej project directory; · A test plan; · Documented results of your test plan; · The results of mandatory test runs; and finally · A short reflection report on what you learned. There are no resubmission options for this assignment. The grade you will achieve will depend on the functionality of the submitted program as shown in the marking rubric later in this document. Assignment Briefing: The main purpose of this assignment is for you to code a program in Java that solves a problem; in this case a somewhat fictional one from the wonderful Elon Musket, in the nation of ‘Tisisoddistan’. As his space program progresses, he is considering a business to supply meals to tourists in space. Surprisingly the cost of the actual meal is quite cheap compared to the cost of lifting it into space. This cost is about $18,000 per kilogram. It’s critical to be able to get a quote for any customer. Each quote includes three costs for a set of meals: 1) The cost of the food, 2) the cost of packing it into a spaceship (hereafter packing cost) and finally 3) the to-orbit cost which is the $18,127 per kilogram (Adjusted upwards to the nearest kg as an integer) For the purposes of the assignment we will assume the following: a) The companies are the same as those in MT2, quotes will always be for one of those companies. b) Food is tax exempt (no tax calculation needed) c) You are writing a program To produce quotes for potential customers which print out to the console screen d) A menu option will allow the quote to be written to a data file (a text file) e) There are only 5 possible meal products f) Tourists are limited to 24 meals in space so no one food needs to be ordered more than 24 times. This limit should be checked by your program. Your program should also check for negative entries and disallow them. Note: this means you could have up to 24 of each food product. g) There are only 5 food products (see list below); each has a name, id, cost and weight h) Your program must correctly compute the weight of the entire order (the sum of all meal weights) i) The packing cost is given in the table below j) Your accuracy needs to be Dollars and cents k) By having only 5 products that can be ordered it allows students who want to use arrays to do so, and those who don’t will need a switch or set of if statements. The cost of packing Weight of total order Cost< 5kg="" $3,192="" 5kg="" to="" 15="" kg="" $6,823.50="">15 kg $457 per kg Integer kg (rounding up) What you must do: a) Write a test plan with enough test cases to convince yourself that the code works; b) Write the code; c) Test the code and document the results of the test d) Debug the code e) Test the code again and document the results of the test f) Debug the code again g) Repeat steps E and F till you are confident of your program’s accuracy h) Finally when you are happy with it, run the mandatory test cases and document the results i) Write a report (or reports) that contain the following a. Your test plan; b. Documentation of your test plan, and documenting its results; c. Evidence of you running the mandatory test runs and screenshots of the results; d. A short reflection report-on what you have learned; and e. An optional feedback paragraph to me which is not marked. j) Finally zip all documents (including your source code and the Bluej project directory) into a single zip file and load them onto Canvas. Space food (image from NASA) Space Food Items Meal Description Id Weight (grams) Cost Date cake DC 134 $59 Beef sandwich BEEF 164 $49.50 Cheese sandwich CS 206 $93.70 Strawberry desert STRAW 177 $157.05 Scrambled eggs EGG2 112 $77.15 What your program must do: 1. It must display a menu with 3 options (shown below). You can add extra debugging options if you desire; 2. It must have an exit option; 3. It must have a compute Quote option; 4. It must have a compute Quote option to file 5. The menu must loop so it can do repeated calculations without restarting; 6. The output must be well formatted 7. It should edit check all input and handle exceptions, so it does not crash on an error but instead gives a suitable error message. 8. The quote must show the full company name, as well as the pickup bay (known as assembly bay or Pickup Bay Id) NOTE i): I chose to input each item in 5 inputs (which causes you to specifically input 0’s), but you could have item number pairs (eg DC,4 to represent 4 date cakes) or prompt first for the food item then the number; this design choice is up to you. NOTE ii): You do not need a company table or product table but in my example answer I put them in as extra options to assist testing. You can add extra options for testing. From MT2 Company Id Full Name Pay Tax Pickup Bay Id BFSC Blue Fish Space Co No MERCY ECP Elon Cannon Personal Yes KIT NAASA NAASA Yes MERCY AARG AARG Yes KAT PUB General Public Yes MAIL NOTE 1: No special processing for PUB is necessary in this assignment. NOTE 2: No Tax processing for is necessary in this assignment. Example Test Case 1 Company:ECP Date cake: 0 Beef sandwich: 1 Cheese sandwich: 0 Strawberry desert: 0 Scrambled eggs: 0 Cost Cost Total Weight Weight total Date cake: 0 Beef sandwich: 1 49.50 49.50 164 164 Cheese sandwich: 0 Strawberry desert: 0 Scrambled eggs: 0 Totals 49.50 164 grams Rounding (up to nearset KG) 1 kg Cost of Packing 3,192.00 Cost To Orbit 1*18,127 18,127 Total cost of meal $21,368.50 Test Case 2 Company: BFSC Date cake: 0 Beef sandwich: 1 Cheese sandwich: 10 Strawberry desert: 21 Scrambled eggs: 0 Cost Cost Total Weight Weight total Date cake: 0 Beef sandwich: 1 49.50 49.50 164 164 Cheese sandwich: 10 10*93.70 937.00 10*206 2060 Strawberry desert: 21 21*157.05 3,298.05 21*177 3717 Scrambled eggs: 0 Totals $4,284.55 5941grams Rounding (up to nearest KG) 6kg Cost of Packing $6,823.50 Cost To Orbit 6*18,127 $108,762 Total cost of meal 119,870.05 Mandatory Testing You must run and evidence the output of the following tests: Mandatory Test 1 – Produce Quote To console do a screen capture to evidence it Company:ECP Date cake: 0 Beef sandwich: 1 Cheese sandwich: 0 Strawberry desert: 0 Scrambled eggs: 0 Mandatory Test 2 - Produce Quote To console do a screen capture to evidence it Company: NAASA Date cake: 2 Beef sandwich: 1 Cheese sandwich: 2 Strawberry desert:24 Scrambled eggs:0 Mandatory Test 3 - Produce Quote To File To console do a screen capture to evidence it; and Preserve the file as test3.txt (submit it) Company:ECP Date cake: 0 Beef sandwich: 1 Cheese sandwich: 20 Strawberry desert: 0 Scrambled eggs: 1 Mandatory Test 4 – Produce Quote To File To console do a screen capture to evidence it; and Preserve the file as test3.txt (submit it) Company: BFSC Date cake: 0 Beef sandwich: 1 Cheese sandwich: 25 Strawberry desert: 2 Scrambled eggs: 0 Mandatory Test 5 - Produce Quote To console do a screen capture to evidence it Company:PUB Date cake: 24 Beef sandwich: 23 Cheese sandwich: 22 Strawberry desert: 21 Scrambled eggs: 20 Marking (This assignment part is worth 25 marks). Marking Rubric Marks Feature 7 Good test plan with calculated results 6 Your program code, functionality, comments, structure and formatting 3 Reflection Report 5 Results of mandatory testing 2 Tidiness of the Quote, commas in thousand fields correct decimals and text alignment 2 Documented results of extra testing -1 to -3 if the program fails to edit check the its input -2 For the first mandatory test that’s wrong -5 If more than 1 mandatory test is wrong (not cumulative with the -2 above) -5 Option Write Quote to file is missing -2 Program crashes during our testing but it’s an isolated case Maximum of 12.5 marks for assignment overall Program fatally crashes, wont compile or has a significant number of gross errors Minimum of 12.5 marks for assignment overall Program and test plan is truly horrible but it is basically correct Late submission 5% per day up to 1 week then a mark of 0 Watch the web site for late class wide extensions that may be given Sample runs Contents of test.txt |----------------------------------------------------------------| | Quotation For ECP Elon Cannon Personal (pack at dock KIT) | |----------------------------------------------------------------| | Item | Num | Cost | Weight | Tot Cost | Tot Weight | |-------|-----|--------|--------|----------|------------| | BEEF| 1| 49.50| 164| 49.50| 0.16 kg | |-------|-----|--------|--------|----------|------------| | Total Weight g : 164 | Billing Weight kg : 1.00 | Total Food Cost : 49.50 | Packing Cost : 3,192.00 | To Orbit Cost : 18,127.00 | Total Meal Cost : 21,368.50 |----------------------------------------------------------------|
Answered Same DayOct 20, 2020

Answer To: BlueJ is a java IDE could you please do the assignment in that, because the teacher wants to see the...

Vidhi answered on Oct 21 2020
137 Votes
Updated Code/SpaceFood/Warehouse.java
Updated...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here