- NCFE CACHE Level 3: Safeguarding and protection, children and young people in residential care and supporting children: Safeguarding, Assignment, UK
- 5HR03: focuses on how internal and external business factors influence reward strategies and policies, the financial drivers of the organisation: Reward for performance and contribution, CIPD level 7, UK
- LAW4007: English Legal System and Skills, Assignment, AU, UK
- 2021 saw the continuation of a decade of growth in the UK organic market. Whatâs the future of organic food in the UK? Use specific reasons and examples to support your answer, Assignment UK
- Level 6 NVQ: Promote a Positive Health and Safety Culture: Diploma in Occupational Health and Safety Practice, Assignment, UK
- EEE6015: Power World Simulation- Power Flow Analysis- Power Systems and Smart Grids, Assignment, UOB, UK
- SFM202407- Strategic Financial Management, Assignment, OTHM Level 7, EBIC, UK
- 3CO01: Business, culture and change in context, Assignment, CIPD Level 3, UK
- Academic Study Skills, S1. Individual Report, UK
- HSC Level 3 Unit 1 – Structure and Overview of the Health and Social Care Sector, Assignment, UK
- Qualifi Level 5 Business Models and Growing Organisations, Assignment, UK
- CIPD Level 3 3CO03: Core behaviours for people professionals, Assignment 1, UK
- Civil CEP: Numerical Analysis, Assignment, UOB, UK
- UNIT CMI 321: Managing Own Personal and Professional Development, Assignment, UK
- UNIT CMI 304: Channels and types of communication used in the workplace: Principles of Communication in the Workplace, Assignment, UK
- Features Of Partnership Working In Health And Social Care, Assignment, UP, UK
- OTHM level 3: Person-centred Approaches in Health and Social Care Settings: foundation Diploma in Health and Social Care, Assignment, LCPS, UK
- OTHM level 3: Health, Safety and Wellbeing in Health and Social Care Settings: foundation Diploma in Health and Social Care, Assignment, LCPS, UK
- OTHM level 3: Effective Handling of Information in Health and Social Care Settings: foundation Diploma in Health and Social Care, Assignment, LCPS, UK
- OTHM level 3: Effective Communication in Health and Social Care Practice: foundation Diploma in Health and Social Care, Assignment, LCPS, UK
COM4011: A florist would like a Java based software application to record customer orders, calculate prices of each bouquet ordered and statistics: Introduction to Programming, Assignment, AU, UK
University | Arden University (AU) |
Subject | COM4011: Introduction to Programming |
Assignment Task
Scenario
A florist would like a Java based software application to record customer orders, calculate prices of each bouquet ordered and statistics of the sales for each day.
The application should display a menu as shown in figure 1.
Flower shop menu
1. Order bouquet and get the price.
2. Display statistics
3. Exit
Figure 1. Menu for Flower shop.
The florist calculates the prices of bouquets ordered from local customers for collection based on the choice of three components: flower, colour and size. The price of each bouquet is calculated using the mark-up values as shown below:
đđđđđ = (đšđđđ¤đđ + đśđđđđ˘đ) Ă đđđ§
For example, the price of a medium bouquet of white roses can be calculated as
Price = (Rose + White) x Medium
Price = (1.2 + 1.3) x 7.5 = 18.75
1. Size â
At the end of each day the florist also records summary statistics of the sales for that day as shown below in table 2.
Learning outcomes:
After completing the module you should be able to:
1. Develop an understanding of data structures and programming techniques in context of a programming language.
2. Demonstrate an understanding of how programs are developed i.e. from concept to development and testing.
3. Demonstrate an ability to write programs using appropriate structure and language rules.
Task 1
1) Provide the flowchart and pseudo-code to display the menu as in Figure 1. Once an option is selected and the code for the option executed, the menu should be displayed again. The program should terminate only when the option for exit is selected.
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 program should take the user input for menu options and execute the appropriate method. When option 1 is selected the method âorderDetailsAndPriceCalculationâ should be executed. When option 2 is selected the method âsummaryStatisticsâ should be executed.
d) At this stage each method should only have a print statement such as âA bouquet has been orderedâ or âSummary statistics providedâ. No actual choices for the bouquetâs size/flower/colour, calculation and display of price or calculation of summary statistics are required. The complete Java methods for selection of option 1 and option 2 will need to be written in task 2 and task 3 respectively. 2) Write a Java program based on the algorithm with comments to illustrate the program flow. a) The program should take the user input for menu options and execute the appropriate method.
3) Test your program by displaying the menu and selecting the various options when the menu is displayed. Provide screenshots for the output of the program showing the correct execution of all menu options.
4) Provide the Java code for this task in the Appendix as text for verification.
Buy Answer of This Assessment & Raise Your Grades
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.
Task 3
In this task you will write the algorithm, code and test the working of the method âsummaryStatisticsâ. You will need to use the sample data and the additional five orders entered in task 2 including the price for each bouquet ordered to complete task 3.
1) Provide a flowchart and pseudo-code for when option 2 is selected. The algorithm should display the statistics as in table 2.
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.
2) Write a Java method âsummaryStatisticsâ 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) Test your program by embedding the complete Java code for the âsummaryStatisticsâ method in the program written in task 1 and printing the statistics (include the sample data shown in table 1 and the 5 additional bouquet orders) as shown in table 2
4) Provide screenshots for outputs of the Java method.
5) Provide the Java code for this task in the Appendix as text for verification. At this stage the program should include the code for the menu display and the completed methods âorderDetailsAndPriceCalculationâ and âsummaryStatisticsâ
Are You Looking for Answer of This Assignment or Essay
Do you need help with your COM4011: Introduction to Programming assignments? No need to worry! You’ve come to the right place. We offer specialized assignment writing services in the UK, tailored specifically for students like you. Our Professional Academic Writing Service is dedicated to providing bespoke solutions that match the unique requirements of your coursework. Whether you need assistance with coding, problem-solving, or documentation, our skilled team is here to support you every step of the way. Contact us today to discover why we’re a top choice for assignment help in the UK!