- D/618/7406 Unit 5: Challenges of IT Security in Modern Organizations – Risks, Solutions & Best Practices
- HSC Level 2/3 Unit 012 Assignment: Care Worker Responsibilities and Ways of Working
- CIPD Level 5HR03 Assignment: Understanding Reward Approaches and Their Impact on Performance and Contribution
- CIPD level 5HR02 Assignment: Talent Management and Workforce Planning Unit Guide
- Level 3 D/615/3823 Assignment: Regulation, Protection, and Collaborative Practice in Health and Social Care
- PGM216D Assignment: Bicycle Store Sales Management Application
- MATH6033 Assignment: Epidemiological Investigation of Cardiovascular Health and Tea Consumption Risks
- EH6147 Assingment: Stakeholder Analysis for Quality Improvement in Hand Hygiene Compliance
- Assignment: Investigation of Solution Concentration Through Standard Preparation, Titration, and Colorimetry Techniques
- MATH6033 Assignment: Cardiovascular Risk and Tea Drinking: Epidemiological Analyses
- CIPD level 3 3CO03 Assignment: Core behaviours for people professionals
- DAC4B1: Personal development in adult care settings
- Unit 19 Research Project Assignment 1: Impact of Corporate Social Responsibility on Business Success & Community Wellness
- EG5022 Assignment: Georeferencing and Accuracy Assessment of a Quarry 3D Model Using Photogrammetric GCPs
- Assignment: Financial Performance and Strategic Analysis of a UK Listed Company: A CORE Evaluation and Reflective Review
- 5CNMN002W Assignment: Advanced measurement- Major measurement taking off
- K/650/2298 Level 3 Understanding Roles, Responsibilities, and Effective Partnerships in Health and Social Care
- Understanding Information and Knowledge Management in the Workplace: A Briefing for HR Professionals
- HRM7010D Strategic Use of People Analytics in Enhancing Organisational Value and Agility
- TOWN1060 Urban Planning in the UK History Sustainable Design and Future City Development
COM4011: In this task you will write the algorithm, code and test the working of the method ‘orderDetailsAndPriceCalculation’: Introduction to Programming, Assignment, AU, UK
University | Arden University (AU) |
Subject | COM4018: Introduction to Programming |
Task 2
In this task you will write the algorithm, code and test the working of the method ‘orderDetailsAndPriceCalculation’. You must also create a suitable data structure to store the details of the bouquet including the price. This data structure should be accessible to read and write in both task 2 and task 3.
1) Provide a flowchart and pseudo-code for when option 1 is selected. The algorithm should demonstrate the reading of the user input for the three components of the bouquet type of flower, colour of the flower and size of the bouquet. The algorithm should also demonstrate the calculation and display of the price of the bouquet.
a) Explain how you have validated user input (choice selection) and checked for any possible logical errors, while justifying the data types you have used.
b) Flowchart and pseudocode should use standard conventions and format such as indentations, capitalisation, descriptive names for variables/methods, keywords, operators etc.
c) The subroutine should take user input from the keyboard for the choices and data entry.
d) The user input for bouquet orders should be stored using a suitable data
structure.
2) Write a Java method ‘orderDetailsAndPriceCalculation’ based on the algorithm with comments to illustrate the program flow.
a) The method should employ only fixed arrays where necessary – dynamic arrays (i.e. ArrayList, vector, HashMap, etc.) are not to be used.
3) Include 5 additional bouquet orders (rows) to the sample data shown in table 1.
4) Test your program by embedding the complete Java code for the
‘orderDetailsAndPriceCalculation’ method in the program written in task 1 and
printing the price of each bouquet ordered.
5) Provide screenshots for outputs of the Java method for the additional five entries of bouquet orders.
6) Provide the Java code for this task in the Appendix as text for verification.
Are You Looking for Answer of This Assignment or Essay
