首页 > > 详细

COMP101编程辅导、讲解Programming程序语言、辅导Python设计编程辅导R语言编程|解析C/C++编程

COMP101 2020-21 Assignment-06: Page 1
COMP101
Introduction to Programming 2020-21
Assignment-06
Issue Date: Thursday 3
rd December 2020
Submission Date: Monday 14th December 2020 noon
1. Overview
a) Summary:
This assignment is worth 16% of the total marks for COMP101.
You must submit an attempt at this assignment else a fail grade for the module
will be awarded. Plagiarism and collusion guidelines apply throughout.
b) Guidance:
Assessment is based on solving the problem specification in terms of design,
clarity, accuracy and appropriate use of code and documentation.
See below for assignment advice:
 No test table is needed
c) Submission (one file to be submitted):
a) Submit one .py file with filename in format of:
familyName_givenName-CA06.py e.g. Smith_John-CA06.py
Within the code, the first lines should be comment lines as follows:
#familyName_givenName University id filename Month and Year of coding, filename.py
#Brief description of the problem solved, e.g.
#Smith_John 20141234 December 2020 CA-06.py
#Description here (keep it clear but brief)
b) Submit your document electronically via the department submission server:
https://sam.csc.liv.ac.uk/COMP/Submissions.pl
Earlier submission is possible, but any submission after the deadline attracts the
standard lateness penalties, see:
http://www.csc.liv.ac.uk/department/regulations/practical.html
Because submission is handled electronically any file submitted past the
deadline will be considered one day late. Late submissions are subject to the
standard University Policy.
COMP101 2020-21 Assignment-06: Page 2
2. Assessment Information
Assignment Number 06 (of 07)
Weighting 16%
Assignment Circulated See front page
Deadline See front page
Submission Mode e-submission
Learning outcome assessed 1, 4, 5, 6, 7, 8
Purpose of assessment Using lists to transform input data
through a series of list processing to
output data
Marking criteria Total marks over seven questions as a
percentage
Submission necessary in order Yes
to satisfy module requirements? Assignments are not marked
anonymously
Late Submission Penalty Standard UoL Policy.
COMP101 2020-21 Assignment-06: Page 3
Requirements:
Design, implement and test a program using lists to transform given input to
output data based on a sequence of list manipulation.
Problem Specification:
In film-making, directors, producers and casting staff have to think up character
names for actors in the film. To avoid this time-consuming problem, the
problem domain lends itself to automation.
For the latest production of the next mega fantasy film ‘Bilbo of Hogwarts’, the
casting producers have already chosen character names for the leading actors.
But there are several support actors who need a name for their alien character.
This can be automated by using the actors’ real names and manipulating them to
produce alien-sounding character names.
Taking each actor name in the form:
given_name family_name
to produce the following output after successful processing:
e.g.
Actor name: john smith
Alien character: smioj
Or
Actor name: haoting wang
Alien character: wanah
etc
COMP101 2020-21 Assignment-06: Page 4
Input:
1. First list (actor list full):
Use either the table as given or the Python code as given to produce two
separate lists – one for given name and one for family name.
given_name family_name
andrei stephens
harry venables
phillipa blythe
yuan spield
sadiq elbahi
stephanie wynne
zeng ergan
Or
def create_actor():
actor_list = ["andrei stephens",
"harry venables",
"phillipa blythe",
"yuan spield",
"sadiq elbahi",
"stephanie wynne",
"zeng ergan"]
return
Do not prompt your user to input these names themselves (for accuracy
purposes). You can hard-code them into the program yourself (as the
programmer, not the user) by either method above.
Keep the names in the order shown.
No validation is required – double-check for accuracy if you type these in
yourself.
COMP101 2020-21 Assignment-06: Page 5
Process:
2. Second list (alien list):
From the actor list(s) in (1) above, process each actor name for conversion to an
alien name: Use the algorithm below - you don’t have to follow it exactly - the
idea is to create the ‘alien list’ accurately:
i) i/p actor family name
ii) Concatenate the first three characters of family name with first two
characters, reversed, of given name – see samples above
3. Third list (alien non-vowel list) and fourth list (shortened alien list)
From the second (alien) list in (2) above, search for alien names that do not have
a vowel in them. Remove them from the list and store them in a separate list.
Remember your original alien list is now shortened.
4. From the fourth list in (3) above, (shortened alien list - the ones with vowels
in them), extract the first three characters of each alien name.
Concatenate these characters into a string.
COMP101 2020-21 Assignment-06: Page 6
Output:
5. Prepare your presentation to your client where you show your ideas:
Output a banner heading and the actor credits, followed by an echo of the lists
created in producing this output.
Output design and enhancement is at your discretion
e.g.

Presents
Bilbo of Hogwarts
Actor-list Alien –list
Lists used in creation of initial draft of credits:
Actor list
Alien list original
Alien list used
Alien list not used
COMP101 2020-21 Assignment-06: Page 7
NOTES:
No test table is required – submit one .py only
No menu interface is required
No validation is required – final o/p will be correct or not (if you manually add
the actors, just make extra sure your typing is correct)
Mark scheme:
Analysis and Design: 25%
Implementation: 60%
Quality of coding: 15%
Assessment looks for:
Accurate processing of the transition from actor name to alien-name, with a
series of supporting lists as needed;
Consideration of discreet functions with parameter passing, i/o design in
relation to the problem domain, clarity and appropriate use of code and
structures.

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!