Assignment 1 Total Marks:

Assignment 1 Total Marks: 100

Page 1 of 5 700008 Programming Fundamentals 2018.2 Assignment 1 Total Marks: 100 Assessment Weighting 10% Due 9am, 17th September, 2018 Learning outcomes assessed: 1-5 Submission: Via vUWS, under Assessments, into the Assignment 1 submission box. Submission must be a compressed folder of Greenfoot scenario and a MS Word file that contain the data used in the program. Data should be documented using the template given in Table 1. Please name the compressed folder that you submit according to the following format: o FirstNameLastNameAssessmentName e.g. JoeSmithAssignment1. MS Word document must have a header on each page with your name, student ID and page number. Greenfoot scenario must contain .Java file for the Actor subclass that you program. Fill in and submit the assignment cover sheet available in vUWS under Assessments. Anything submitted after the due date and time, will incur a penalty of 10% per day (includes weekends). The percentage will be taken off the mark you score for the assignment. Before you start working on the assignment please take time to read and understand the academic misconduct policy available in vUWS under assessments or simply click on the link below: Click to access APP_Academic_Misconduct_Policy.pdf NOTE: Please note there are two versions 1 and 2 for this assignment: version 1 without using arrays and version 2 with arrays. You should create version 1 as it will help you complete some functionality earlier and also it will allow you to ask questions/ clarify the requirements and seek feedback from the teacher before you start on the final submission. Please note that you are only required to submit the version 2 only as a part of this assignment. Page 2 of 5 Task: Real or Fake News Test Your task is to design and write two programs which check if users can tell the difference between real and fake news. You should come up with your own news items for the program. List your news items using the below template in the MS Word file. News Item Fake/Real Table 1: Data template Version 1 (without using arrays): Store news items and their Fake/Real status for 5 unique news items. (You are expected to use variables to store data in the version 1) The default number of news items to use in the game is 3. However, the program should allow the user to select a different number of news items to be quizzed in either game. The maximum number is 10. Each news item presented in a game must be unique. When a user adds an instance of an actor sub class to the Greenfoot scenario and clicks on the act button, the program should ask the user to choose one of the two games: News Quiz Game or Fake Count Game. Fake Count Game [Challenge difficulty: Easy to Medium] Display the news items to the console window or using a dialog box. Each news item presented in a game must be unique. Ask user to count fake news items. If the user correctly guesses the number of fake news items, the program should display a congratulation message. If not, the program should display each individual news items presented in the game along with its true/fake status to the command window. News Quiz Game [Challenge Difficulty: Medium to Hard] User has to guess true/false for each of individual news items presented to the user using a dialog box. Once the quiz ends, program should print the percentage of correct answers followed by a quiz report card with the following headings: News Item Fake/real User Choice The Fake/Real and User Choice columns can contain TRUE/FALSE values. The Fake /real column should contain values according to the data stored in the separate variables to store their status. The User Choice values should be according to the user input during the game. Page 3 of 5 Version 2 (using arrays) Use parallel arrays to store news items and their fake/Real status for 10 unique news items. The default number of news items to use in the game is 3. However, the program should allow the user to select a different number of news items to be quizzed in either game. The maximum number is 10. The program should present random questions from the list of news items. Each news item presented in a game must be unique. When a user adds an instance of an actor sub class to the Greenfoot scenario and clicks on the act button, the program should ask the user to choose one of the two games: News Quiz Game or Fake Count Game. Fake Count Game [Challenge difficulty: Easy to Medium] Display the news items to the console window or using a dialog box. Each news item presented in a game must be unique. Ask user to count fake news items. If the user correctly guesses the number of fake news items, the program should display a congratulation message. If not, the program should display each individual news items presented in the game along with its true/fake status to the command window. News Quiz Game [Challenge Difficulty: Medium to Hard] User has to guess true/false for each of individual news items presented to the user using a dialog box. Use arrays to store user choices/answers. Once the quiz ends, program should print the percentage of correct answers followed by a quiz report card with the following headings: News Item Fake/real User Choice The Fake/Real and User Choice columns can contain TRUE/FALSE values. The Fake /real column should contain values according to the data stored in the parallel arrays to store the news status. The User Choice values should be according to the user input during the game. Page 4 of 5 Marking Criteria Page 5 of 5 Marking Guide (for final submission) Applying top-down modular Design Principles and Use suitable data types and data structures such as arrays to store relevant data ( 15+10 =25 marks) Data file (MS word file) with 10 news items in the given template 5 Store the news items, their status and other relevant data using arrays 10 Good decision on local and field variables 4 Good decision on constants 2 Using appropriate methods and efficient program with code reuse 4 Develop an algorithm that applied structured programming techniques that solve the given problem (45 marks) Get User Input to choose one of two games: News Quiz Game and Fake Count Game. 2 Get the user input to ask number of News Items the user wants to play with: both for different number of questions and default number of questions. 4 Convert the user input to appropriate data type. 4 Input validation: keep displaying the input dialogue box, if user entered an invalid inputs 10 Present random unique questions for each game 5 Display list of questions appropriately for each game 6 Display results according to the specification for the Fake Count game 7 Display results according to the specification for the News Quiz Game 7 Code compiles free of syntax errors & runtime errors (15) No compiling errors 7.5 No runtime errors 7.5 Good coding practices (15) Meaning full names for identifiers 5 Indented and easy to read the code 5 Each method is documented 5

Pssst…Are you looking for assignment help?

We have experienced native experts to complete any assignment you may have. Plagiarism Free & Great Quality. (Full Refund Provided)

<< SAVE15 >>

Place your first order with code to get 15% discount right away!

Impressive sample results