- NVQ Level 5 Unit 510: Understand how to make effective and positive decisions: Decision Making In Adult Care, Assignment, UK
- CIPD Level 7 7CO01 : June 2024 – Assess the trend towards greater globalisation of international business activity: Work and working lives in a changing business environment, Assignment, UK
- Level 6 NVQ : Describe the nature and role of a positive health and safety culture within the organisation: Diploma in Occupational Health and Safety Practice, Assignment, UK
- Review relevant organizational behaviour theories, such as conflict resolution strategies, leadership styles, and team dynamics: People and organisations, Assignment, UK
- 3CO02: Explain what evidence-based practice is and how it might be applied within an organisation : Principles of analytics CIPD Level 3, Assignment, UK
- Wind tunnel testing plays an important role in the design of aircraft. It provides a check on the accuracy of the initial design: Aerospace Engineering, Coursework, UOL, UK
- Select and apply appropriate computational and analytical techniques to model complex problems, recognising the limitations of the techniques employed :AHEP- Assignment 1 , UK
- Cipd level 5 5HR01 Assignment 3 June 2024 : Employment relationship management, UK
- Pearson BTEC Level 3 Unit 6: Website Development : Website evaluation, Assignment, UK
- BTEC Unit 20: Explain, analyze, optimize, and enhance the operation of a simple combinational logic circuit with three (03) fail-safe sensors and one (01) emergency shutdown switch- Digital Principles Assignment 1, UK
- Complete a report to compare three academic sources to identify levels of relevance and application: Health wellbeing and social care, Assignment, UK
- Fluid Power Diagrams – Applications Of Pneumatics And Hydraulics, Tutor Marked Assignment 2, TU, UK
- Fluid Power Diagrams – Applications Of Pneumatics And Hydraulics, Tutor Marked Assignment 1, TU, UK
- Pearson BTEC Level 3 Unit 8 Mechanical Principles of Engineering Systems : Statics, Assignment, UK
- CBB508 – Understand the structure of the eukaryotic cell and the functions of the different components: Cells Assignment, OCN, UK
- Unit4003: Engineering Science I : Examine scientific data using both quantitative and qualitative methods, Assignment, HNC, UK
- COM4007 – Identify design, usability and accessibility issues involved in delivering websites: Introduction to Web Authoring Assignment, AU, UK
- Access to HE Diploma Assessment Materials Sourcing and Reading Information (2024-25) : Computing, Assignment, OCN, UK
- Level 5 This unit will develop your knowledge of the importance of leadership and management theories and styles: The Principles of Leadership and Management in Adult Social Care, Assignment, UK
- Unit 4 – Identify indicators of your wellbeing and wellbeing deterioration: Promoting Personal Wellbeing, Assignment, UK
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