- HTM704 The Culture and Society in Tourism (F/616/7116) Assignment Brief 2026
- HTM702 Strategic Planning Facets in Hospitality and Tourism (D/616/7110) Assignment Brief 2026
- HTM703 Tourism Policy in International Context and Development (M/616/7113) Assignment Brief 2026
- HTM701 Marketing Approaches in Hospitality and Tourism (H/616/7108) Assignment Brief 2026
- OHS603 Risk Management and Control in Occupational Health and Safety (J/617/8568) Assignment Brief 2026
- OHS604 Working with Hazards and Emergencies in Occupational Health and Safety (L/617/8569) Assignment Brief 2026
- 5L4Z0002 Digital Skills Assessment Brief 2026 | Manchester Metropolitan University
- Information Management and Visualisation Assignment Brief 2026
- OHS602 Occupational Health and Safety in Organisations (F/617/8567) Assignment Brief 2026
- OHS601 Principles of Occupational Health, Safety and Environmental Management and Regulation (A/617/8566) Assignment Brief 2026
- MKT6045 One Planet Business Assessment Brief 2026 | BCU
- 5SSPP217 Microeconomics Assignment Brief 2026 | King’s College London
- HLT4066 Event Experience and Design Assessment Brief 2026 | CMU
- ARCH6003 Sustainable Building Technologies Assessment Brief 2026
- BUS100 Introduction to Business Assessment 1 Brief 2026 | Charisma University
- DHSM606 Development of the Health and Safety Practitioner (A/650/6696) Assignment Brief 2026
- DHSM604 Maintaining a Safe Workplace Environment (T/650/6694) Assignment Brief 2026
- DHSM602 Risk and Incident Management (M/650/6692) Assignment Brief 2026
- DHSM605 Health and Safety Law, Regulation and Influence (Y/650/6695) Assignment Brief 2026
- DHSM603 Promoting a Positive Health and Safety Culture (R/650/6693) Assignment Brief 2026
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


