- T313 Renewable Energy Tutor-Marked Assignment – 01
- Pearson BTEC Level 4 Unit 4014 Production Engineering for Manufacture Assignment
- B99TG Introduction to Process Technology Assignment 1 – Mass Balances
- Financial Management Assignment 02 : Deira Trading Plc, Palm Properties Plc & Lux Cars
- Construction Project Management (CMP) Assessment 2
- Level 4 Skills Formative Writing Assessment Brief AY25-26
- Unit 2 70158R Patient Monitoring and Clinical Skills Level 4 BTEC Assignment Brief
- 603/3106/9 Level 6 NVQ Diploma in Occupational Health and Safety Practice Qualification Specification
- BTEC Level 3 UNIT 2 Communications for Engineering Technicians U2A1 Assignment Brief
- Unit L/650/1136 Level 4 Assessment Processes in Health and Social Care Settings Assignment Brief
- Unit M/6501137 Level 4 Resource Management in Health and Social Care Assignment Brief
- Finance Assignment : Infographic on the Importance and Development of Trust in Retail Finance and Benefits that Can be Attained
- M/6501119 Level 4 Principles of Health and Safety for Health Professions Assignment
- Technical Report Assignment – Maintenance Workshop Evaluation (C11b)
- HSC301 Qualifi Assignment Worksheet: An Introduction to Health and Social Care
- M/650/1119 Principles of Health and Safety for Health Professions Assignment Brief
- Data Science Project Assignment Brief: A Practical Approach to Solving Real-World Problems Using Machine Learning and Data Analysis Techniques
- CACHE Level 3 Awards in Health and Social Care – Tutor Marked Assignment 3A.
- SWK.248 Social Work Communication Techniques Assessment Essay- University of Nigeria, Nsukka
- 3CO03 Core Behaviours for people professionals Learner Assessment Brief
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
