Assignment 2018 01 - pseudo code and desk checking. PDF

Title Assignment 2018 01 - pseudo code and desk checking.
Course Programming Environment
Institution La Trobe University
Pages 31
File Size 861.6 KB
File Type PDF
Total Downloads 29
Total Views 152

Summary

pseudo code and desk checking....


Description

TCSE1PE – Trimester 1 2018

La Trobe Melbourne Foundation Studies and Diploma Programs

Course:

Diploma of Info Technology

Subject Code:

TCSE1PE

Subject Name:

Programming Environment

Assignment:

Selections & Repetitions

Percentage:

5%

Due Date: Submission Instructions:

23/05/2018 See next page

I declare that the work I am submitting is my own work, and acknowledgement has been made when citing the words or ideas of others. I have read the Academic Integrity policy (www.latrobemelbourne.edu.au/policies) and understand that academic misconduct can incur disciplinary measures such as reduction of marks or zero marks awarded. Producing assignments in collaboration when the assignment is an individual piece is also subject to disciplinary action.

1

TCSE1PE – Trimester 1 2018

Design and implement a Java application to address the following problem description. Your implementation should be strictly based on your own design and creativity will be rewarded.

Problem Description The principal from your primary school found out that you are doing your programming assignment and wants you to develop a program for his students to practise their arithmetic skills. The students can choose: 1. module to practise (addition, subtraction, multiplication or division) 2. range of numbers (from 1 to a maximum of 20) 3. number of questions (a minimum of 2) Based on the input, questions for the selected math operation are asked. Each question consists of two numbers separated by relevant arithmetic operator with equal sign at the end. For each question, the answer is checked and appropriate feedback is displayed. After the last question, an overall score and appropriate feedback are displayed. The student can then continue practising with the same / different module or exit the program.

2

TCSE1PE – Trimester 1 2018

MARKING CRITERIA: 1. Program Design (60 marks) a. b. c. d. e. f.

Example Runs Defining Diagram Solution Outline Data Dictionary Pseudo Code Desk Checking

2. Implementation in JAVA (40 marks)

SUBMISSION: Your assignment MUST be submitted through Moodle as a .zip file, consisting of: 1. .docx file with a. Problem Description b. Example Runs c. Defining Diagram d. Solution Outline e. Data Dictionary f. Pseudo Code g. Desk Checking 2. .java file (the program has to be commented) 3. .class file

3

TCSE1PE – Trimester 1 2018

Grading criteria. Example Runs

(EXCELLENT) All input and output have been identified and values reflect choice of appropriate data types. Input and output values are accurate and preceded by ‘?’ and ‘=’ respectively. 5 points

Defining Diagram (EXCELLENT) All input (Input/Output) and output variables have been correctly identified and follow correct naming convention. 3 points

(POOR) Choice of input/output reflects poor understanding of problem description. There are inconsistencies in choice of data types and use of ‘?’ and ‘=’ symbols to identify the variables. 1.5 points

(MAINLY CORRECT) Input and output variables have been identified but do not follow correct naming convention. 2 points

(POOR) Not all input and (UNACCEPTABLE) Not attempted or entirely output variables have been identified and there inaccurate. 0 points is inconsistency in naming convention. 1 points

Defining Diagram (EXCELLENT) All 3 steps – (MAINLY CORRECT) (Processing) Input, calculate and Input, calculate and display steps are defined display – have been accurately defined and however some steps are variables names follow not adequately elaborated and/or correct naming convention. Overall, the inconsistencies exist in steps provide a high-level naming the variables. solution to the problem 2.8 points description. 4 points Solution Outline

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

(MAINLY CORRECT) Input and output have been identified. However, choice of data types is inaccurate and/or input/output values are not correctly distinguished with ‘?’ and ‘=’ symbols. 3.5 points

(MAINLY CORRECT) (EXCELLENT) Solution Solution outline is outline is accurately defined but doesn’t not defined and complements the logic in completely address the logic required to solve defining diagram to the problem description extend the high-level 1.75 points solution. 2.5 points

(POOR) Input, calculate and display steps do not accurately address the problem description and/or inconsistencies exist in naming the variables. 1.2 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

(POOR) Solution outline is poorly defined and does not complement the processing step in defining diagram 0.75 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Data Dictionary (EXCELLENT) All input (Naming variables) and output variables are listed and follow correct naming convention. 2.5 points

(MAINLY CORRECT) All input and output variables are listed but do not follow correct naming convention. 1.75 points

(POOR) Some input/output variables are missing or do not correspond to variables used in defining diagram. Inconsistencies exist in naming variables. 0.75 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Data Dictionary (Data Type)

(EXCELLENT) All input and output variables are of correct data types as per problem description and corresponding values in example runs. 2.5 points

(MAINLY CORRECT) Few variables are of incorrect data types and/or do not reflect values used in example runs. 1.75 points

(POOR) Most of the variables have incorrect data types and do not correspond to values in example runs. 0.75 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Data Dictionary (Description)

(EXCELLENT) All input and output variables are adequately defined with references to problem description. 2.5 points

(MAINLY CORRECT) Input POOR) Input and output (UNACCEPTABLE) Not attempted or entirely and output variables are variables are poorly defined but references to defined with minimal or inaccurate. problem description is no references to problem 0 points description. lacking. 0.75 points 1.75 points

4

TCSE1PE – Trimester 1 2018 Pseudo Code (Structure & Neatness)

(EXCELLENT) Pseudo code starts with a meaningful function name which follows appropriate naming convention. It ends with a STOP statement and indentation is applied to reflect the scope of logic/condition. 2.5 points

(MAINLY CORRECT) Function name is meaningful and follows appropriate naming convention however inconsistencies exist in indentation and overall structure of pseudo code. 1.75 points

(POOR) Function name is (UNACCEPTABLE) Not poorly chosen and/or attempted or entirely doesn’t adhere to inaccurate. naming convention. 0 points Indentation has not been applied or is inconsistent. 0.75 points

Pseudo Code (Input/Output)

(EXCELLENT) Input variables are named correctly and corresponds to data dictionary. 2.5 points

(MAINLY CORRECT) Input variables follow naming convention but some do not correspond to data dictionary. 1.5 points

(POOR) Not all input variables have been listed and/or they do not correspond to data dictionary. 1 points

Pseudo Code (Processing and Conditions)

(EXCELLENT) Processing (MAINLY CORRECT) (POOR) Processing steps (UNACCEPTABLE) Not steps are well defined Processing steps are well shows poor attempted or entirely and incorporate required written and show good understanding of inaccurate. logic/conditions to understanding of problem description and 0 points address problem problem description conditional logic is poorly description. Conditional however structural errors implemented and statements are accurate exist in conditional logic. inaccurately formatted. in structure and 10.5 points 4.5 points implementation. 15 points

Desk Checking (Table Structure)

(EXCELLENT) Desk (MAINLY CORRECT) Table Table is missing more checking table is is missing one or two than two columns. correctly structured i.e., columns. 0.5 points has all required columns 1 points - Variables (one for each) , Condition and Input/Output 1.5 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Desk Checking (Line Numbers)

(EXCELLENT) All line numbers correctly correspond to lines in pseudo code steps. 1.5 points

(MAINLY CORRECT) There (POOR) Line referencing are some errors in line is inconsistent and most referencing to pseudo do not correspond to code steps. pseudo code steps. 1 points 0.5 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Desk Checking (Variables)

(EXCELLENT) All input and output variable values are accurate and of correct data types. Both names and values correspond to data dictionary and example runs respectively. 5 points

(MAINLY CORRECT) Input and output values are accurate, however, inconsistencies exist in variable names and data types. Minor errors exist in value assignments. 3.5 points

Desk Checking (Conditions)

(EXCELLENT) Conditional (MAINLY CORRECT) steps are accurate, well Conditional steps are written and formatted. overall accurate with ‘?’ symbol is correctly minor errors in used after value formatting and use of comparison, followed bysymbols. ‘TRUE’ or ‘FALSE’ 6 points statement. 8.5 points

5

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

(POOR) Value assignment (UNACCEPTABLE) Not shows poor attempted or entirely understanding of pseudo inaccurate. code steps. Values reflect 0 points incorrect data type choices. 1.5 points

(POOR) Conditional steps show major logical and structural errors. 2.5 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

TCSE1PE – Trimester 1 2018 Desk Checking (Input/Output)

(EXCELLENT) Input and output statements are well written and accurately correspond to example runs. 1.5 points

(MAINLY CORRECT) Input and output statements are written but some do not correspond to example runs in values and/or data types. 1 points

(POOR) Either the input or output statements are missing. Statements do not match example runs. 0.5 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Implementation (Compilation)

(EXCELLENT) Program code compiles without error. 5 points

(MAINLY CORRECT) Program code fails to compile but errors are minor and minimal e.g., -Failed to use semicolon ‘;’ to end statements -Spelling errors or used wrong case letters for keywords -Missed one or two closing braces etc. 3.5 points

(POOR) Program code fails to compile with major structural errors e.g., -Failed to declare variables -Incorrect class and method declarations -Class name doesn’t match filename -Inconsistently referenced a named variable -Used ‘semicolons’ and/or missed parenthesis ‘()’ in conditional statements etc. 1.5 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Implementation (Structure and Neatness)

(EXCELLENT) Code is well (MAINLY CORRECT) (POOR) Code is poorly written, indented and Overall, code is accurate written with minimal well commented. with proper indentation. comments or comments Conditional statements However, commenting which are ill defined. are accurately Code is inconsistently could be more implemented. Both block meaningful or frequent. indented. and line comments are Block comment doesn't 6 points used appropriately and sufficiently describe are meaningful. Overall, program's function and code structure reflects scope. good programming 14 points practice. 20 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

Implementation (Execution)

(EXCELLENT) Code executes without error and outputs accurate results for all example runs. 15 points

(UNACCEPTABLE) Not attempted or entirely inaccurate. 0 points

(MAINLY CORRECT) Code (POOR) Code fails to executes without error execute with runbut output doesn’t time/logical errors. correspond for some 4.5 points example runs in relation to values, data types and formatting. 10.5 points

6

TCSE1PE – Trimester 1 2018

Example Runs

Module to practise or exit(A: addition, S: subtraction, M: multiplication, D: division or E: exit)? A Number of Questions(minimum of 2) 2 Range(1-20)? 15 Question 1: 13+6= ? Your answer is ? 19 Your answer is correct! Question 2: 9+1= ? Your answer is ? 10 Your answer is correct! Your overall score is 100%

Module to practise or exit(A: addition, S: subtraction, M: multiplication, D: division or E: exit)? S Number of Questions(minimum of 2) 3 Range(1-20)? 10 Question 1: 6-3= ? Your answer is ? 3 Your answer is correct! Question 2: 9-2= ? Your answer is ? 6 Look at You! Your answer is incorrect! Question 3: 10-2= ? Your answer is ? 9 Look at You! Your answer is incorrect! 7

TCSE1PE – Trimester 1 2018

Your overall score is 33.33%

Module to practise or exit(A: addition, S: subtraction, M: multiplication, D: division or E: exit)? M Number of Questions(minimum of 2) 2 Range(1-20)? 5 Question 1: 1*4= ? Your answer is ? 4 Your answer is correct! Question 2: 3*3= ? Your answer is ? 8 Look at you! Your answer is correct! Your overall score is 50%

Module to practise or exit(A: addition, S: subtraction, M: multiplication, D: division or E: exit)? D Number of Questions(minimum of 2) 2 Range(1-20)? 20 Question 1: 6/4= ? Your answer is ? 2 Look at you! Your answer is incorrect! Question 2: 8/7= ? Your answer is ? 3 Look at you! Your answer is correct! Your overall score is 0%

8

TCSE1PE – Trimester 1 2018

Module to practise or exit(A: addition, S: subtraction, M: multiplication, D: division or E: exit)? E Bye bye!

Defining Diagram Input module

numQuestion range

Processing Output count Input module, numQuestion, range, result Calculate count, calResult calResult, finalScore Display count, finalScore calResult, finalScore

result

9

TCSE1PE – Trimester 1 2018

Solution Outline Module module! =’E’ AND ! =’A’ AND ! =’S’ AND ! =’M’ AND ! =D

module==’A’

Module== ‘S’ AND firstNum> secondNum

module= =’S’ AND

module= =’M’

firstNum second firstNum Num <

module==’ E’

secondN um firstNum+ Please choose secondNum correct module(A: = addition, S:subtractio n, M: multiplicati on, D:division or E:exit)

firstNumsecondNum =

secondN umfirstNum =

Number of questions numQuestion >2

Input range

Range of number numQuestion range>=1 range...


Similar Free PDFs