diff_months: 5

Introduction to Programming

Flat 50% Off Order New Solution
Added on: 2025-04-22 05:37:04
Order Code: LD525198
Question Task Id: 0

COM4011

Introduction to Programming

Date for Submission: Please refer to the timetable on ilearn

(The submission portal on ilearn will close at 14:00 UK time on the date of submission)

Assignment Brief

As part of the formal assessment for the programme, you are required to submit an Introduction to Programming assignment. Please refer to your Student Handbook for full details of the programme assessment scheme and general information on preparing and submitting assignments. The assignment brief will specifically give details and instructions for the assignment.

Module grade: Coursework 100%

Description: The assignment is given as three separate tasks. Each task is to be answered individually.

  • Task 1 develops an understanding of data structures and programming techniques in the context of a programming language.
  • Task 2 demonstrates an ability to write programs using appropriate structure and language rules.
  • Task 3 demonstrates an understanding of how programs are developed e. from concept to development and testing.

Note: The evidence for this assessment needs to be provided in different ways elaboration, screenshot, pictures, and java code in text.

Please ensure that you include your fully functional code in text in the appendix so it can be verified.

Learning outcomes:

After completing the module you should be able to:

  1. LO1 Develop an understanding of data structures and programming techniques in context of a programming language.
  2. LO2 Demonstrate an understanding of how programs are developed e. from concept to development and testing.
  3. LO3 Demonstrate an ability to write programs using appropriate structure and language rules.

Graduate attributes

  1. Discipline Expertise: Knowledge and understanding of chosen Possess a range of skills to operate within this sector, have a keen awareness of current developments in working practice being well positioned to respond to change.

All learning outcomes must be met to pass the module.

Guidance

Your assignment should include a title page containing your student number, the module name, the submission deadline and the exact word count of your submitted document; the appendices if relevant; and a reference list in AU Harvard system(s). You should address all the elements of the assignment task listed below. Please note that tutors will use the assessment criteria set out below in assessing your work.

You must not include your name in your submission because Arden University operates anonymous marking, which means that markers should not be aware of the identity of the student. However, please do not forget to include your STU number.

Maximum word count: 3000 words

Please refer to the full word count policy which can be found in the Student Policies section here: Arden University | Regulatory Framework

Please note the following:

Please refer to the full word count policy which can be found in the Student Policies section here: Arden University | Regulatory Framework

The word count includes everything in the main body of the assessment (including in text citations and references). The word count excludes numerical data in tables, figures, diagrams, footnotes, reference list and appendices. All other printed words ARE included in the word count.

Students who exceed the word count up to a 10% margin will not be penalised. Students should note that no marks will be assigned to work exceeding the specified limit once the maximum assessment size limit has been reached.

Scenario

A small retailer would like a Java program for managing their stock. Some items may be withdrawn from the stock while new items may be added periodically. The retailer wants a convenient way to store this information and manage it effectively. Any errors in the management of the stock should be avoided as they can create issues for sales.

During the working week, when items are sold, the stock is updated and reorders are placed daily to restock items that have fallen below their threshold. The value for the threshold indicated in Table 1 indicates the minimum current stock level needed below which a re-order is triggered. The reorder quantity indicated in Table 1 is used for each item being reordered.


Item#


Stock level


Unit cost


Unit price


Threshold


Reorder Qty


cd5751


21


2.45


4.59


12


30


bc4dd8


22


3.25


5.99


15


20


18b050


35


1.89


2.99


18


50


c47d16


6


9.75


13.79


2


5


6c1af3


14


5.78


8.79


10


10

Table 1. Stock table with typical items.

The retailer would like the programme to display the following menu:

Stock control menu

  1. Enter stock data
  2. Enter sales data
  3. Exit

Figure 1. Menu to be displayed for the program.

Typical sales data for a day has been provided in Table 2.


Item


Qty sold


bc4dd8


8


18b050


20


c47d16


4


6c1af3


5

Table 2. Typical sales for the day.

Based on the stock from Table 1 and sales from Table 2, reorder list would be tabulated as illustrated:


#


Item


Current level


Threshold


Reorder Qty


Unit cost


Subtotal


1


bc4dd8


14


15


20


3.25


65.00


2


18b050


15


18


50


1.89


94.50


3


6c1af3


9


10


10


5.78


57.80







Total cost


217.30

Table 3. Typical reorder list generated.

Assignment Task

Task 1

  • Provide a 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

    1. Explain how you have validated user input (choice selection) and checked for any possible logical errors, while justifying the data types you have used.

    1. Flowchart and pseudocode should use standard conventions and format such as indentations, capitalisation, descriptive names for variables/methods, keywords, operators etc.

    1. The program should take the user input for menu options and execute the appropriate When option 1 is selected the method StockData should be executed. When option 2 is selected the method SalesData should be executed.

    1. At this stage each method should only have a print statement such as Enter current stock data for each item or Enter sales completed for the day. No actual choices for the items in stock or sales values are required. The complete Java methods for the selection of option 1 and option 2 will need to be written in task 2 and task 3 respectively.
  • Write a Java program based on the algorithm with comments to illustrate the program flow.

    1. The program should take the user input for menu options and execute the appropriate method.
  • Test your program by displaying the menu and selecting the various options when the menu is Provide screenshots for the output of the program showing the correct execution of all menu options.
  • Provide the Java code for this task in the Appendix as text for

(30 marks)

(LOs: 1,2,3,4)

Task 2

In this task you will write the algorithm, code and test the working of the method StockData. You must also create a suitable data structure to store the details of the stock items to be provided with their current stock among other details. This data structure should be accessible to read and write in both task 2 and task 3.

    1. After entering all the stock data, the total cost of the stock should beProvide a flowchart and pseudo-code for when option 1 is

      1. The algorithm should demonstrate the acceptance of the user input for the items in stock. The algorithm should accept the data from Table 1, along with appropriate data for an additional 5 items of your choice.

e.g. for the stock data in Table 1, the message to be displayed would be The total cost of stock is 328.52.

  1. Then the menu should be displayed for further user
  2. Explain how you have validated user input (choice selection) and checked for any possible logical errors, while justifying the data types you have used.
  3. Flowchart and pseudocode should use standard conventions and format such as indentations, capitalisation, descriptive names for variables/methods, keywords, operators etc.
  4. The subroutine should take user input from the keyboard for the choices and data
  5. The user input for items in stock should be stored using a suitable data
  • Write a Java method StockData based on the algorithm with comments to illustrate the program flow.

    1. The method should employ only fixed arrays where necessary dynamic arrays (i.e. ArrayList, vector, HashMap, etc.) are not to be used.
  • You will need to enter all the stock data from Table 1, and an additional 5 new items with appropriate stock data values of your choice. All this data should be entered using the keyboard as user input.
  • Test your program by embedding the complete Java code for the StockData method in the program written in task 1.
  • Provide screenshots for outputs of the Java method for the user input you have
  • Provide the Java code for this task in the Appendix as text for

(30 marks)

(LOs: 1,2,3.4)

Task 2

In this task you will write the algorithm, code and test the working of the method SalesData. You will need to use the data stored in task 2 to complete task 3.

  • Provide a flowchart and pseudo-code for when option 2 is
    1. The algorithm should take the sales data from Table 2, with appropriate sales values for the additional 5 items you entered in task 2.
    1. Once the sales data is entered, the total sales amount should be e.g. for the data in Table 1 and Table 2 the message to be displayed would be The total sales amount is 206.83. Then the reorder list should be displayed as in Table 3.
    1. Then the menu should be displayed for further user
    1. Explain how you have validated user input (choice selection) and checked for any possible logical errors, while justifying the data types you have used
    1. Flowchart and pseudocode should use standard conventions and format such as indentations, capitalisation, descriptive names for variables/methods, keywords, operators etc.
  • Write a Java method SalesData based on the algorithm with comments to illustrate the program flow.
    1. The method should employ only fixed arrays where necessary dynamic arrays (i.e. ArrayList, vector, HashMap, etc.) are not to be used.
  • You will need to enter all the sales data from Table 2, and appropriate sales values of your choice for the additional 5 items you entered in Task All this data should be entered using the keyboard as user input.
  • Test your program by embedding the complete Java code for the SalesData method in the program written in task 1.
  • Provide screenshots for outputs of the Java
  • Provide the full Java code in the Appendix as text for At this stage the program should include the code for the menu display and the completed methods StockData and SalesData.

(40 marks)

(LOs: 1,2,3,4)

End of questions
As technology and platforms may change, your module tutor will provide you with up-to-date details.

Formative Feedback

You have the opportunity to submit a draft report to receive formative feedback. You are encouraged to submit your assignment for feedback once and it is 30% of your entire submission. You, the student, are to choose 30%, not the tutor. The last day for guaranteed feedback hand in is up to 2 weeks on Friday before submission week. No formative feedback will be given after the time specified above, either blended, or distance learning.

The Feedback is designed to help you develop areas of your work, encouraging academic skills and independent learning.

If you are a Distance Learning student, then you are encouraged to send 30% of your assignment for feedback by email to your tutor, no later than two weeks before your final submission week. Dates will be given to you by your tutor on a module-by-module basis.

Your work will be assessed according to the rubrics provided at the end of this brief.

Referencing Guidelines

You MUST underpin your analysis and evaluation of the key issues with appropriate and wide ranging academic research, ensuring all cited literature is referenced using the AU Harvard system(s).

Follow this link to find the referencing guides for your subject: Arden Library

Submission Guidance

Assignments submitted late will not be accepted and will be marked as a 0?il. Your assessment should be submitted as a single Word document with the Arden cover sheet (MS Word with your student number as the file name). Do not zip/compress the file in any way. If you submit your work in any other format, the submission will not be accepted and will be awarded 0 marks.

The submission for each task should be presented under a relevant heading. Screenshots, algorithm, and inserts should be legible, and provided with suitable captions. Flowchart should be presented in an appropriate pictorial format using appropriate page size and orientation to make it legible.

The code should be clearly presented in text so that it can be copied and pasted into a suitable coding platform to be executed and verified. For more information, please see the Submitting an Assignment - Guide document available on the A-Z key information on iLearn.

You must ensure that the submitted assignment is all your own work and that all sources used are correctly attributed. Penalties apply to assignments which show evidence of academic unfair practice. (See the Student Handbook which is available on the A-Z key information on iLearn.)

Object-oriented paradigm (abstraction, inheritance, encapsulation and polymorphism) is outside the scope of the module and thus should not be used in completing this assessment. You should only use procedural paradigm when completing the assessment.=

  • Uploaded By : Akshita
  • Posted on : April 22nd, 2025
  • Downloads : 0
  • Views : 97

Order New Solution

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more