- SPS5055 Testing and Monitoring in Sport Assessment Brief 2026 | RCL
- Unit 1 Legislation and Security Standards Applied to Data Analytics (A/651/0924) Assignment Brief 2026
- SH4012 Human Growth and Development Assessment brief 2026 | LMU
- SH4011 Research and Academic Practice Assessment brief 2026 | LMU
- DIT402 Mathematics and Statistics for IT (R/617/6693) Assignment Brief 2026
- DIT509 Business to Business (B2B) E-commerce (T/617/6749) Assignment Brief 2026
- DIT507 Content Management Systems (H/617/6746) Assignment Brief 2026
- DIT505 Network Routing and Switching (Y/617/6744) Assignment Brief 2026
- DIT503 C#.NET Programming (L/617/6742) Assignment Brief 2026
- QUALIFI Level 5 DIT501 Technopreneurship (F/617/6740) Assignment Brief 2026
- DIT409 Graphical User Interface (GUI) (D/617/6700) Assignment Brief 2026
- Qualifi Level 4 DIT407 Web Design 1 (M/617/6698) Assignment Brief 2026
- DIT405 Logical IT Networking (H/617/6696) Assignment Brief 2026
- DIT403 PC Maintenance and Operating Systems Assignment Brief 2026
- DIT401 Information Technology and Related Ethics Assignment Brief 2026
- Unit 701 Research Methods (Y/506/9134) Assignment Brief 2026
- Engagement of Employees and Organisational Learning (A/618/1340) Assignment Brief 2026
- Global Resourcing, Talent and Reward Management (J/618/1342) Assignment Brief 2026
- Business Research Methods (T/508/0626) Assignment Brief 2026
- Leadership Development and Performance Management (F/618/1341) 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


