0% found this document useful (0 votes)
111 views8 pages

CP40061E Programming Resit Assessment 20-21

Uploaded by

Amjad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views8 pages

CP40061E Programming Resit Assessment 20-21

Uploaded by

Amjad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

School of Computing and

Engineering

Title Resit Assignment

Module Programming (Level 4) (Full time)

Module Code CP40061E

Module Leader: Dr Ikram Rehman

Set by: Dr Ikram Rehman

Moderated by: Dr Nasser Matoorian

Type of assessment: Course work


For the given tasks (see Appendix), you are required to produce a logbook
document using the Java programming language.
Evidence of the working application in terms of screenshots of the code and
output must be submitted online via the UWL Blackboard portal
Please do not submit zipped files.
Due date: Tuesday 24th April 2021.
Marking grid:

Title Logbook coursework

Task details From the tasks (given in the appendix section), you will be
summary required to implement, test and document solutions to the
given tasks using Java programming language.
You will submit your logbook in a word or pdf format with clear
evidences in terms of screenshots of the code and output.
Program documentation should include:
 A header page with appropriate identification
 A contents list
 Introduction of your application and the features that
you have implemented
 Program listing with clear annotations to illustrate
features implemented
 Screen shots to illustrate testing/program output for
each of the required functionality
Criteria Issues Mark Marking
breakdown
(100
where
marks)
appropriate

Analysis of Clear understanding and analysis of the 10


problem/task.
given problem
(20 marks)
Coding Code illustrates overall understanding of 20
programming fundamentals and key
(50 marks) concepts.
10
Correct coding standards and
conventions.
15
Evidence of working program.
15
Meets all required functionalities.
Documentation is easy to read, amend 15
Documentation
or update by another programmer –
(30 marks) adequate use of comments and
correctly structured. 5
Work presented in a structured and
10
professional manner

Timing of feedback: within 15 working days

© Feb 2017 Page 2 of 8


Assessment Criteria and Grading:

Learning Weighting 70%+ 60% + 50% + 40%+ 20%+ 0 - 20%


Outcomes Assessment
Assessment Criteria:
Element 2
Clear analysis Good evidence Acceptable Satisfactory With help and No concrete
Analysis of given problem LO 1 20% of given of analysing approach to analysis of support, some analysis of
(20 marks) problems. given problems. analysing given attempt made given problems.
 Clear understanding and Effective use of Use of class given problems. at analysing
analysis of the problem/task. class diagram diagram has problems. Class diagram given
 Class diagram illustrates been Class partially problems.
overall structure. demonstrated. diagram correct.
acceptable.
Demonstrates Good attempt at Satisfactory Attempt made Application of Programming
Coding 50% excellent demonstrating attempt at at applying programming skills poorly
(50 marks) LO 3 understanding programming demonstrati programming skills and applied and do
 Code illustrates overall of programming techniques and ng skills. Some techniques not provide
understanding of programming skills and skills. programmin aspects of the are meaningful
fundamentals and key coding Demonstrates g skills and problem are inadequate solution to the
concepts. standards. key concepts. undeveloped and given problem.
 Correct coding standards and Satisfies all of requirements. All and do not inconsistent. There is overall
conventions. the required requirement provide Tasks have a weak
 Evidence of working program. functionalities. s have been satisfactory missing and understanding
 Meets all required addressed. outcome. incomplete of the
functionalities. Minor elements. assessment
inconsistenc requirements.
ies noted in
some areas.

Page 3 of 8
Documentation (30 marks) LO 1, 3 30% High standard Documentation Documentat Overall Documentatio Document does not
 Documentation is easy to read, of demonstrates ion presentation n does not conform to stated
amend or update by another documentation accurate demonstrate is acceptable address all of requirements.
programmer – adequate use of that knowledge and s basic but the stated
comments and correctly demonstrates understanding knowledge documentatio requirements. Poorly presented
structured. excellent grasp of programming and n is brief and and inadequately
Not much structured.
 Evidence of testing of programming concepts. understandi does not fully
concepts. ng of address all of thought given
 Work presented in a structured
Good standard programmin the stated to overall
and professional manner.
All requirements of presentation g concepts. requirements. structure and
clearly with most presentation.
illustrated. requirements Adequate
clearly presentation
illustrated. with most
requirement
s illustrated.

Page 4 of 8
Grade descriptors

In addition to the assessment criteria above the following table may assist you in understanding how we arrive at
your final mark. Indeed your final mark should agree with the following grade descriptors, but note that the
assessment criteria are the main means of assessment.

Mark Descriptor
0-39% Limited conceptual understanding with possible structural deficiencies. Restricted use of theory within
module. Inappropriate argument leading to unreliable and invalid conclusions/recommendations

40-49% Some confusion in purpose & aims of evaluation. Some overall structure and conceptual
understanding. Fair use of theory but arguments sometimes irrelevant, illogical or with unsupported
assertions.

50-59% Demonstrates a limited but accurate level of understanding presented in a mostly descriptive manner.
The answer contains relevant interpretation and critical understanding especially at the upper end of
the marking range.

60-69% Demonstrates accurate knowledge and understanding of the subject presented in a coherent manner.
The answer contains evidence of application and interpretation. At the upper end there is evidence of
thoughtful and measured critical evaluation.

70-79% Demonstrates a clear, comprehensively researched understanding of relevant material with some
element of critical evaluation. Shows initiative in approach and rigour in the handling of information.
Demonstrates originality of thought together with interpretation and application to the relevant sector

80% or The answer is analytical and critical. The assignment demonstrates scholarship through a depth of
above insight and understanding of relevant material, which is logically structured, accurate and well
referenced. Originality of thought and application is evident.

Page 5 of 8
Appendix
The tasks listed below provide an informal specification of programs that you are asked
to develop, test and document. All these tasks must be included in the logbook with
appropriate coding standards and documentation.
Tasks:
Task 1: Write a Java program to declare integer, long and float data types. Following the
methods of type casting, demonstrate implicit and explicit type casting amongst the
declared data types.
Task 2: Write a Java program using string manipulations.
String p = Enter user input
String q = Enter user input
String r = Enter user input
Write code to work out and display:
• Concatenation (p+q+r) in capital letters
• Concatenation of (r + p) in lowercase
• total number of characters within (p+q+r)
Task 3: Create an interest calculator that will prompt the user to input a starting balance
(£1000) and an interest rate (5%) on the starting balance. Work out the balances after
the first, second, third year and fourth year.
Task 4: Write Java program to allow the user to input his/her age. Then the program will
show if the person is an infant, child, a teenager or an adult.
Task 5: Write a Java program that prompts the user to enter the number they wish to
see the multiplication table of. In addition, the program should prompt the user to enter
the length of multiplication table (i.e. counter) and displays the table on the screen.
Task 6: Write a Java program to make a calculator. The calculator should add, subtract,
multiply and divide the numbers inserted by the user. Feel free to add more operations
to your calculator, such as power, sqrt etc. (Hint: Use Switch)
Task 7: Create a class called GuessNum. Write code that randomly generates an integer
between 1 and 100, inclusive. The program prompts the user to enter a number
continuously until the number matches the randomly generated number. For each user
input, the program tells the user whether the input is too low or too high, so the user
can choose the next input intelligently. Display the number of attempts made for the
user to guess the number.

Page 6 of 8
Task 8: Write a program that sets a password as “changeme” and asks the user to enter
the password. The user gets only 5 attempts to get the password right otherwise the
program should display “Access denied. Please contact IT services to reset your
password”. Once correct password is entered within 5 attempts the program should say
“Password Accepted”.
Task 9: Write a Java method to check whether a year (integer) entered by the user is a
leap year or not.
Expected Output:
Input a year: 2017
False
Task 10: Write a Java program to calculate the average value of array elements. The
array contains 10 numeric values of your choice.
Task 11: Create a new NetBeans project. In this project, in a separate file from the
main() method, create a second Java class called Product, and in a third file create a third
class called Book.
Your Product class should have five private data fields:
A variable productID, of type String, to store the product ID
A variable price, of type int, to store the price of the product
A variable primeEligible, of type boolean, to indicate whether or not the product
is eligible for Amazon Prime
A variable numberInStock, of type int, to store the number of this product
currently in stock
A variable dateAdded, of type Date, to store the date when the product was
added to the Amazon website
1. Write a parameterised constructor for the Product class, to initialise its data
fields, and write setter and getter methods for each of the data fields.

2. Add the following private data fields to the Book class:


A variable title , of type String, to store the book title
A variable author, of type String, to store the name of the book’s author
A variable numPages, of type int, to store the number of pages in the book
A variable publisher, of type String, to store the name of the publisher
A variable publicationDate, of type String, to store the date when the book was
published.

Page 7 of 8
3. Write a parameterised constructor for the Book class, to initialise its data fields -
the constructor should call the Product class constructor by using the super
keyword. Then write setter and getter methods for each of the data fields.

4. In the main() method, create three objects of type Book – look on the Amazon
website to get the information you need to pass to the constructor. Then use the
getter methods to display the information about the products, including the data
fields that were inherited from the Product class. Use the setter methods to
change some of the data in your objects.

Example Output:

Page 8 of 8

You might also like