- Level 3 Diploma in Business Management – Marketing Assignment: Understanding Principles, Research, and Campaign Planning for Business Growth
- Level 3 Diploma in Business Management – Finance in Business Assignment : Recording, Reporting, and Financial Decision Making
- Level 3 Diploma in Business Management – Customer Service Assignment : Understanding, Delivering, and Enhancing Customer Experience
- People Management in Level 3 Diploma in Business Management Assignment: Understanding Motivation, Employee Relations, Performance, and Leadership in Business
- The Business Environment Assignment: An In-Depth Analysis of Business Structures, Functions, and Economic Influences
- Communication for Business Assignment: Developing Effective Skills for Professional Interaction and Success as Part of the Level 3 Diploma in Business Management
- Planning for Growth Assignment: Evaluating Opportunities, Securing Funding, Developing Strategies, and Exploring Exit Options for SMEs
- Communication in the Caring Professions Assignment: Exploring Effective Methods, Barriers, Partnership Working, and Legal Aspects of Information Management in Health and Social Care
- Level 3 Diploma in Adult Care Assignment – Unit: Understand How to Promote Own Personal Wellbeing
- Level 3 Diploma in Adult Care Assignment – Unit: Promote Person-Centred Practice, Choice and Independence in Adult Care Settings
- Level 3 Diploma in Adult Care Assignment – Unit: Promote and implement health and safety practices in adult care settings
- Level 3 Diploma in Adult Care Assignment – Unit: Promote Own Continuous Personal and Professional Development
- Level 3 Diploma in Adult Care Assignment – Unit: Handling Information in Adult Care
- Level 3 Diploma in Adult Care Assignment – Unit: Promote Equality, Diversity, Inclusion and Human Rights in Care Settings
- Level 3 Diploma in Adult Care – Unit: Support the health and wellbeing of individuals in an adult care setting
- Level 3 Diploma in Adult Care Unit: Promote effective communication in adult care settings
- Level 3 Diploma in Adult Care Assignment Unit : Understand how to safeguard individuals in adult care settings
- Level 3 Diploma in Adult Care Assignment – Responsibilities and ways of working of an adult care worker
- Human Resource Management Assignment: Understanding, Communicating, and Managing Business Information
- SWE6204 Machine Learning Assignment: A Comprehensive Analysis of Machine Learning Algorithms and Their Application in Predicting House Prices Using Regression Techniques
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
