- Unit 2 Marketing Processes and Planning (A/618/5033) Assignment Brief 2026
- TMDIBS204 Managing people in a Multinational Context Assignment Brief 2026
- BMS508 Entrepreneurship Assessment 2 Brief 2026 | New College Durham
- BMS508 Entrepreneurship Assessment 1 Brief 2026 | New College Durham
- BUS6010 Business Transformation Assessment Brief 2026 | Arden University
- Unit 805 Strategic Communication (L/506/9129) Assignment Brief 2026
- Unit 803 Strategic Planning for Cross Border and Global Organisations (L/506/9132) Assignment Brief 2026
- Unit 806 Culture and its Impact on Strategy (J/506/9128) Assignment Brief 2026
- Unit 800 Leadership Qualities and Practice (A/506/9126) Assignment Brief 2026
- EFAW301 Emergency First Aid in the Workplace (R/650/4839) Assignment Brief 2026
- SOCI5006 Popular Culture, Media and Society Assessment 1, 2026
- Resource Management in Health and Social Care (A/618/5503) Assignment Brief 2026
- Health and Safety in Health and Social Care Settings (T/618/5502) Assignment Brief 2026
- Principles of Leadership and Management (M/618/5501) Assignment Brief 2026
- Unit 601 Developing Personal Effectiveness and Impact Assignment Brief 2026
- OTHM Level 3 Diabetes Awareness (D/651/7162) Assignment Brief 2026
- OTHM Level 3 Health Promotion (A/651/7161) Assignment Brief 2026
- Personal and Professional Development in Health and Social Care (F/618/5499) Assignment Brief 2026
- Managing Quality in Health and Social Care Settings (K/618/5657) Assignment Brief 2026
- BAM4052 Finance for International Business 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


