CMP1902M Programming Fundamentals, Assignment, University of Lincoln

Published: 08 Jan, 2025
Category Assignment Subject Programming
University University of Lincoln Module Title CMP1902M Programming Fundamentals

Learning Outcomes

On successful completion of this component a student will have demonstrated competence in the following areas:

  • [LO1] Identify, select, and apply appropriate data structures and operators in common programming solutions
  • [LO2] Implement control flow with decisions and loops using industry-informed programming practices and professional standards
  • [LO3] Using appropriate knowledge of programming concepts, construct code segments and functions to perform input and output operations with error handling

Description of assessment task

This is Assessment 2 and is an individual assignment that consists of two tasks. Task 1 contributes 20% of the assessment mark and Task 2 contributes 80%. You can use the provided code as a template to help you begin the implementation of the tasks. Please see the Criterion Reference Grid for details of how tasks will be graded.

Task 1 (20%): Number Statistics

In this task, you are asked to write a Python3 script (task1.py) that:

  • Prompts the user to input only positive integer numbers at the terminal (numbers with decimals, negative numbers or characters will not be accepted)
  • Assign those numbers to a list and removes any duplicate numbers and informs the user of the removed duplicates
  • Counts the number of unique numbers in the list.
  • Calculates their product, range and variance
  • Identifies the even and odd numbers from the list and stores them in separate lists. If the list of even numbers is empty, print a message saying "No even numbers were provided." If the list of odd numbers is empty, print a message saying "No odd numbers were provided."
  • Prints all the above information at the terminal

Important: The script should start and end without problems. There should be no ‘crashing’ or ‘unhandled exceptions’ due to erroneous input. The use of any bult-in method that performs the above operations is not allowed. Importing of modules is also not allowed. The code must be commented, including header comments and in- line comments. Comments in the code should follow the PEP8 style. Consideration must be given to the naming convention of variables and function names.

Task 2 (80%): Variant of the Wordle game
Background: Wordle is a word-based game released in 2013 and gained significant popularity since then. In the original version, a user must guess a 5-letter word with six tries. You can play the game here. For this task you are expected to develop a variant of the game as described below

Task: For this task you will have to implement a python3 script (task2.py) with multiple functions and appropriate comments at the code following the PEP 8, that enables a player to play a variant of the Wordle game using only the terminal (graphical user interface is not required) as follows:

Are you facing challenges in completing your CMP1902M Programming Fundamentals Assignment of computer science? we understand that computer science is a technical course so introducing you to our assignment help by UK writers service that provides help for every course and subject across the UK.  Whether you need help with programming assignments such as developing code, understanding algorithms, testing or debugging. We have delivered 500+ projects of python programming assignment help to UK students that are completely satisfying the university standards. You can also get free assignment examples better to understand the structure and requirements of your assignment. If your task involves essay writing about programming concepts, our essay writing services will deliver high-quality, well-structured essays. Let our professionals handle your programming challenges and help you achieve top grades effortlessly!

Online Assignment Help in UK