- Financial Mathematics and Investment Valuation Assignment: Practical Concepts of Loans, Bonds, Interest Rates, Returns, Convexity, and Equity Valuation
- Level 5 Certificate in Aesthetic Practice Assignment 2 : A Comparative Analysis of Healthcare and Non-Healthcare Professionals With Guidelines
- Pearson BTEC Level 5 Higher National Diploma in Engineering : Unit 4019 Electrical and Electronic Principles Assignment Final Report with Practical Labs, Circuit Analysis & Simulations
- Business Data Analytics and Decision Making TMA-02 : A Consulting Approach for Maria’s Eco-Friendly Product Line
- CIPD Level 7 Strategic Management Assignment Question 2 : Impact of Globalisation, Tech, Ageing & Economy
- CIPD Level 7LD02 Leadership & Management Development Assignment: CIPD Case Study for CPD Planning
- B00807007 Retail Theory Evaluation Assignment 1: Cyclical, Non‑Cyclical Models & Modern Retail Strategies
- OTHM Level 5 (D/650/1140) Health Education and Promoting Wellbeing Assignment: Approaches, Behaviour Change & Campaign Strategies
- Unit 3 SEM201HSC (D/615/3823) Health and Social Care Assignment : Roles, Regulations & Interprofessional Teamwork Case Study for Quality Care Delivery
- CMI 508 Assignment: Developing a Skilled and Talented Workforce for Organisational Success
- Level 5 Unit 10 Partnership Working Assignment: Adult Care Case Study on Integrated Practice, Legislation & Collaborative Relationships
- Level 5 Effective Communication, Information Handling & Complaints Management Assignment: Health and Social Care Case Study
- Business Introduction Assignment: Ownership & Stakeholder Engagement in Two Organisations
- OTHM Level 5 Unit H/650/1142 Professional Supervision Assignment: Health & Social Care Case for Managing Supervision and Performance
- ATHE Level 4 Unit 15 Software Testing Frameworks Assignment: TDD and BDD Strategy for Medical Data Validation Script in Python
- ATHE Level 4 Unit 12 Web Design and Programming Assignment: CTO Birdwatching App Development for Urban Wildlife Insights
- ATHE Level 4 Unit 21 Synoptic Computing Project Assignment: Smart Parking App Design for Urban Mobility Solution
- ATHE Level 4 Unit 1 IT Systems Development Assignment: The World of Art Case Study for Global Online Sales Expansion
- CYP6032 Leading Multi-Agency Health & Social Care Assignment: Vulnerable Groups Literature Review and Reflective Evaluation
- Unit 21 – L/618/8101 Geotechnical Design Assignment 1: Scunthorpe Station Overpass & Bridge Infrastructure Proposal
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
