- OTHM Level 5 Unit H/650/1142 Professional Supervision Assignment: Health & Social Care Case for Managing Supervision and Performance
- ATHE Level 4 Unit 15 Software Testing Frameworks Assignment: TDD and BDD Strategy for Medical Data Validation Script in Python
- ATHE Level 4 Unit 12 Web Design and Programming Assignment: CTO Birdwatching App Development for Urban Wildlife Insights
- ATHE Level 4 Unit 21 Synoptic Computing Project Assignment: Smart Parking App Design for Urban Mobility Solution
- ATHE Level 4 Unit 1 IT Systems Development Assignment: The World of Art Case Study for Global Online Sales Expansion
- CYP6032 Leading Multi-Agency Health & Social Care Assignment: Vulnerable Groups Literature Review and Reflective Evaluation
- Unit 21 – L/618/8101 Geotechnical Design Assignment 1: Scunthorpe Station Overpass & Bridge Infrastructure Proposal
- Y/616/7445 Unit 039 Diabetes Awareness Assignment: Understanding, Managing and Supporting Individuals with Diabetes
- DHCS 12 (M/650/5189) Understand Mental Ill Health Assignment: Explore DSM/ICD Disorders, Discrimination & Capacity
- Unit 8 Social Media Strategy Assignment 2: Planning, Execution & Evaluation for Organisational Growth
- CIPD Level 7CO01 Strategic People Management Assignment: Demographic Trends, Legal Reforms, Innovation & Resilience in the Workplace
- Financial Accounting Assignment: Lee’s Sole Trader Transactions & Cash Flow Analysis
- L/508/4603 NCFE Level 3 Sport and Exercise Massage Assignment 3: Consultation & Technique Review for Two Contrasting Athletes
- F/650/1141 Unit 4 Team Management and Recruitment Assignment: Health & Social Care Case Study for Effective Leadership and PDPA-Compliant Hiring
- R/650/1138 OTHM Level 5 Assignment: Working in Partnership in Health and Social Care
- NVQ Level 3 Health and Safety Risk Management Assignment: Practical Assessment and Workplace Application
- MBA7068 Strategic Portfolio Assignment 1: Global Business Trends and Managerial Skill Development
- Mechanical Services Innovation: Hotel Rotation Case Study for Energy-Efficient Heat Pump Integration
- K/618/4170 ATHE Level 3 Unit 4 Assignment: Working in Health and Social Care
- T/618/4169 ATHE Level 3 Unit 3 Assignment: Human Growth and Development in Health and Social Care
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
