1. Homepage
  2. Programming
  3. CE243 C Programming and Embedded Systems Assignment 2: Guessing Game on ARM

CE243 C Programming and Embedded Systems Assignment 2: Guessing Game on ARM

Engage in a Conversation
EssexNWUCE243C Programming and Embedded SystemsGuessing Game on ARMCARM

School of Computer Science and Electronic Engineering CourseNana.COM

CE243 (NWU) Assignment 2 CourseNana.COM

1. Objectives CourseNana.COM

The objective of this assignment is to demonstrate your understanding of the embedded system that can be effectively controlled using C language and ARM mbed you have learnt in this module. CourseNana.COM

2. The task CourseNana.COM

To design and write a C program to implement a guessing game on the ARM mbed development kit provided in the lab. Your design should include the following main features. CourseNana.COM

  • -  The main body of the guessing game logic should be implemented on the ARM mbed development kit. CourseNana.COM

  • -  Develop a PC host program in C that can communicate with the game on the ARM mbed via UART interface. The messages of the game should be displayed on the host program. CourseNana.COM

  • -  Use the peripherals on the mbed extension board to give better user experience, e.g. LCD, keypad, etc. CourseNana.COM

  • -  Your game should be error free and have error checking function to avoid any crash caused by invalid user input or similar bugs. CourseNana.COM

    Game: The finished game will provide a user experience that looks something like this: CourseNana.COM

              What is your guess? 5
              You are way off.
              What is your guess? 8
              You are way off.
              What is your guess? 3
              You are less than 3 away!
              What is your guess? 4
              You are less than 3 away!
              What is your guess? 2
              You guessed correctly!
    

    The guessing number should be set by the user when the mbed is initialised. Please consider suitable user experience here to make that happen smoothly. The number should be set between 0-30. CourseNana.COM

    User input CourseNana.COM

    The game will need to get guesses from the user on the PC host. Your programme always ask the user “What is your guess?”, and you should use an infinite loop to ask the user for a guess. After it is entered, print out each guess. A session might look like this: CourseNana.COM

    What is your guess? 2
    2
    Note: there is a fixed number of guesses, determined by the user. In the real game, the loop will finish once the number has been guessed correctly.
    CourseNana.COM

    Check proximity CourseNana.COM

School of Computer Science and Electronic Engineering CourseNana.COM

The game will give the user a hint when a guess is close to the correct answer. In other words, with each guess the game has to determine the proximity of the guess to the randomly generated correct number. Write a function within(value, goal, n) that return 1 if value is within n distance of goal. For example, within(2, 5, 2) would return 0 but within(4, 5, 2) would return 1. CourseNana.COM

Scoring CourseNana.COM

One can think of a “score” in this game as the number of guesses made before getting the number right; a lower score is better. Once the user has guessed the number, print a line saying how many guesses were made (something like “Your score is 4”). CourseNana.COM

The first row of the LCD should always show the secret number you set, and the second row of the LCD should show the current user guess. Once the user has the guessed number, the second row of LCD should show a message indicating the completion of the game and the final score of the user. CourseNana.COM

Keypad: The keypad should be used to set the secret number. CourseNana.COM

3. Deadline and submission requirements CourseNana.COM

The deadline for the electric submission of your Assignment 2 report and associated C programs is as given on the submission system (i.e., FASER, also note that it is GMT time). Please email your assignment as ONE attachment to ce243assignment@163.com prior to the above submission deadline. Please merge everything listed below into one .doc or .pdf file and submit. The filename shall take the following format: Surname_Firstname_RegistrationNumber_A2, all in English. Your email subject shall use exactly the same format. No email content is necessary. In the meanwhile please ALSO upload the same file to FASER. CourseNana.COM

  •   Your assignment shall be written in such a way that it is clear, concise and easy to read. CourseNana.COM

  •   Write your name (both English and Chinese), registration number and module code CourseNana.COM

    (CE243-NWU) clearly on the cover page, including a ToC (Table of Contents) (1 page). CourseNana.COM

  •   You shall use a flow chart to outline your software design and use text to explain how it CourseNana.COM

    works (2 or 3 pages). CourseNana.COM

  •   You should run your code for testing different scenarios. The results of testing should be CourseNana.COM

    presented in the report and explain how you fix it if any bugs have been found. (2 or 3 CourseNana.COM

    pages). CourseNana.COM

  •   Your C program should be printed at the end of the report (3 or 4 pages). CourseNana.COM

No extensions of the deadlines will be given. If, for any reason, you do not submit your code, there will be no record of the submission time and you will automatically get a zero mark. You shall submit your work through the proper channel (electronic submission) and on time, even if it is incomplete - something is better than nothing. CourseNana.COM

This assignment is to be completed individually, i.e. whatever you hand in must be your own individual work. Any software or any other materials that you use in this assignment, whether previously published or not, must be referred and properly acknowledged. CourseNana.COM

4. Assessment CourseNana.COM

You will be assessed on the source code you submit and the performance of your code.
(i) Marks will be awarded for programming style and the number of features implemented.
CourseNana.COM

CourseNana.COM

School of Computer Science and Electronic Engineering CourseNana.COM

(ii) You are expected to show the performance of the programs during demonstration in the 10th lab (Week 11). The demonstration session is mandatory to this assignment, and it is worth 50% of the overall mark of this assignment. CourseNana.COM

(iii)You are expected to answer some questions about the main aspects of your work during your demonstration. CourseNana.COM

(iv)More specifically, your Assignment 2 will be assessed as follows: CourseNana.COM

Excellent (70 - 100%)
All features have been implemented. The program is well-structured and commented. Your game is well functioned and playable during your demonstration. All questions are answered correctly. The report is well written and structured, and only contains minor mistakes and all requirements for the report are met.
CourseNana.COM

Good (55 - 69%)
The program implements all of the required features, but has not well structured and commented. Your game is functional and reasonable playable your demonstration. Not all questions are answered correctly. The report is written reasonable well, but it contains some mistakes and/or few requirements are not met. The report was good structured, and it has many mistakes, but the overall requirement are mostly met.
CourseNana.COM

Poor (40 - 54%)
The program implements less than 50% of the required features, but has poor structure and comments. Your game is not functioned well and barely playable during your demonstration. Most of the questions are not answered correctly. The report was poorly structured, and it has many mistakes, but the overall requirement are mostly met.
CourseNana.COM

Awful (0 – 39%)
The program does not work. It has poor structure and comments. Your game is not functioning at all during your demonstration. No question is answered correctly. The report was poorly structured, and it contains many fundamental mistakes, the overall requirements are not met.
CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Essex代写,NWU代写,CE243代写,C Programming and Embedded Systems代写,Guessing Game on ARM代写,C代写,ARM代写,Essex代编,NWU代编,CE243代编,C Programming and Embedded Systems代编,Guessing Game on ARM代编,C代编,ARM代编,Essex代考,NWU代考,CE243代考,C Programming and Embedded Systems代考,Guessing Game on ARM代考,C代考,ARM代考,Essexhelp,NWUhelp,CE243help,C Programming and Embedded Systemshelp,Guessing Game on ARMhelp,Chelp,ARMhelp,Essex作业代写,NWU作业代写,CE243作业代写,C Programming and Embedded Systems作业代写,Guessing Game on ARM作业代写,C作业代写,ARM作业代写,Essex编程代写,NWU编程代写,CE243编程代写,C Programming and Embedded Systems编程代写,Guessing Game on ARM编程代写,C编程代写,ARM编程代写,Essexprogramming help,NWUprogramming help,CE243programming help,C Programming and Embedded Systemsprogramming help,Guessing Game on ARMprogramming help,Cprogramming help,ARMprogramming help,Essexassignment help,NWUassignment help,CE243assignment help,C Programming and Embedded Systemsassignment help,Guessing Game on ARMassignment help,Cassignment help,ARMassignment help,Essexsolution,NWUsolution,CE243solution,C Programming and Embedded Systemssolution,Guessing Game on ARMsolution,Csolution,ARMsolution,