程序代写 WCOM1000)

MACQUARIE UNIVERSITY COLLEGE ASSIGNMENT – 1 (T3, 2022)
Introduction to Computer Programming (WCOM1000)
ASSESSMENT DETAILS
Unit Name: Assessment Task: Total # of Pages:

Copyright By PowCoder代写 加微信 powcoder

Introduction to Computer Programming Assignment 1
Total Marks: 100
Unit Code: Term & Year: Weighting:
WCOM1000 T3, 2022 20%
6 Final Submission Due:
Week 3, Wednesday, 15/6/2022, 8:00 am (for integrity check)
Week 4, Monday, 20/6/2022, 8:00:00 am
Check Point Due:
INSTRUCTIONS
In this assignment, you are required to create a simple game based on the specifications. Use of images instead of shapes will result in automatic disqualification for marks for that task. Using any coding concepts not covered in WCOM1000 course, will be closely investigated.
MATERIALS REQUIRED / SUGGESTED RESOURCES
Lessons: Week 1 – 2
Coding examples from chapters 3, 4 and 5 at http://learningprocessing.com/examples/
Task A – Background (5 Marks)
1. The sketch is drawn in a window of size 600 W x 700 H resembling the image below (colours should be as close to reference image, as possible).
2. The sky is coloured a light blue.

3. The bottom 1/8th of the display window, depicting the ground, should be coloured deep brown, resembling the image above.
4. The text “Use the left and right arrow keys to move the launcher.” is displayed in the bottom, middle of the window.
5. The text “Use the space bar to shoot and destroy the asteroid.” is displayed in the bottom, middle of the window.
Task B – Launcher (20 Marks)
1. The sample video uses a simple green square as the launcher. You are required to generate a composite shape of your choice.
2. If a simple rectangle, like the one in the sample video is used, you shall only be eligible for 2/20 possible marks for this task.
3. To be eligible for the full 20 marks for this task, your composite shape must be drawn using the following –
o Rectangles,ellipses,andtriangles o Lines
o Changes in colour and stroke.
Task C – Launcher movement (17 Marks)
1. The launcher should move left, along the ground when the user presses the left arrow key.
2. The launcher should move right, along the ground when the user presses the right arrow key.
3. The launcher should only move left or right and never leave the ground.
4. At no point should any part of the launcher leave the screen.
5. If the launcher reaches any of the left or right edge of the screen, pressing the left or
right arrow key respectively, should not work since the launcher must always stay within the screen.
Task D – Asteroid (21 Marks)
1. An asteroid, drawn as a red circle should appear at the top of the screen.
2. The asteroid should move at a random speed and direction towards the bottom of the
3. If the asteroid disappears off the left or right of screen, before it hits the ground, a
new asteroid of random size, location, speed, and direction is generated.
4. If the asteroid hits the ground, it should disappear and a new asteroid of random size,
location, speed, and direction is generated.
Task E – Shooting the asteroid (21 Marks)
If the launcher has not been hit by the asteroid –

1. Pressing the space bar should release a small projectile, drawn as a black circle, from the centre of the launcher.
2. The projectile will always move straight upwards with a fixed speed.
3. If the projectile hits the asteroid, both projectile and asteroid should disappear and a
new asteroid of random size, location, speed, and direction is generated.
Task F – Casualty and reset (16 Marks)
asteroid hits the launcher, before it is hit by a projectile – A new window displays resembling the image below
The background is now a deep blue.
The ground, asteroid or launcher is not visible.
A purple rectangle is drawn in the centre of the screen.
A flashing yellow triangle with a black outline and an exclamation mark inside is dis- played in the centre of the purple rectangle.
The text “Launcher has been hit by the asteroid.” is displayed in the bottom, middle of the purple rectangle.
The text “Press the r key to restart.” is displayed in the bottom, middle of the purple rectangle.
At this point the left and right keys should not work
If the user presses the R key, the game should reset to the beginning of task A.
2. 3. 4. 5.
Marking rubric

Marking criteria
Marks allocated
Task A – Background
Sketch size 600 x 700 1 Light blue background 1 bottom 1/8th brown 1 2 lines of text appear 2
composite shape includes rectangle 5 composite shape includes ellipses 5 composite shape includes triangle 5 Composite shape includes lines 1 Shape has changes in colour 2 Shape has changes in stroke colour and stroke weight 2
Left arrow makes launcher move left 4 Right arrow makes launcher move right 4 No other arrow keys or the r key should work. 1 All the launcher always stays within the screen. 3 At either of the edges, pressing the arrow keys to force launcher
to move off screen should not work 5
Asteroid is drawn as a red circle 1 Asteroid appears from the top of the screen at a random loca-
tion 1 Asteroid has random size 2 Asteroid has a random direction 4
If asteroid moves off the screen (either left or right side) a new
asteroid is generated 2 If asteroid hits the ground a new asteroid is generated 2 At any given time, there is only 1 asteroid visible on the screen 2 The new asteroid that is generated has a random origin, size,
and direction EVERY time 6 Using the arrow keys or mouse does not have any effect on the
asteroid. 1
Pressing the space key releases, a projectile drawn as a small
black circle 2 Projectile always travel straight upwards with a fixed speed 1 Projectile is only released from the centre of the launcher 3
If the projectile hits the asteroid, both projectile and asteroid
disappear 10
Task B – Launcher
Task C – Launcher movement
Task D – Asteroid
Task E – Shooting the asteroid
If the projectile does not hit the asteroid it travels towards the top of the screen until, either it disappears, or another projectile is released

If asteroid disappears after being hit, a new asteroid with ran-
dom origin, size and direction should appear 4
When the asteroid hits the launcher background changes to
dark blue 1 Purple rectangle is drawn in the centre 1 No ground, asteroid or launcher is visible. 1 Yellow triangle with black outline and exclamation mark is
drawn 5 Triangle flashes 2 2 lines of text appear 1 Left, right or spacebar keys do not work 2 Pressing the r key (both upper and lower case accepted) resets
the game 3
NATURE OF THE TASK / HURDLE ASSESSMENT
This is an individual task. This is NOT a hurdle assessment.
SUBMISSION INSTRUCTIONS
Students to submit the Assignment as ‘StudentName_StudentID.pde’ on iLearn under the As- signment 1’s Submission Link. Hard copies will not be accepted or marked.
Penalty would be applied if the submitted file does not possess the correct name, i.e., Stu- dentName_StudentID.pde. Any submission with compilation error(s) would also not be marked. It is the responsibility of the students to ensure that their code has zero syntax error.
LATE SUBMISSIONS
Late submissions are possible but would be penalised unless the student has been granted an approved extension (please refer to Macquarie’s Special Consideration Policy). Late penalties would be calculated depending on the marks allocated to the specific assessment task. The penalty for the late submission is as follows:
• 5% of the total possible marks would be deducted if it is late up to 30 minutes.
• 10% of the total possible marks would be deducted if it is more than 30 minutes late
and up to 24 hours late.
• A further 10% of total possible marks would be deducted for each 24-hour period for
up to a total of 3 days (i.e., including weekends); and
• 100% of the marks would be deducted after 3 days and zero marks would be accord-
ingly awarded. Please note that online submissions are electronically tracked, and the electronic record of submission would be used to determine any late penalties.
Note: The terminology, total possible marks, here refers to the total marks of the Assessment. 5|Page
Task F – Casualty and reset

RETENTION OF RECORDS
Students are required to keep a copy of all items submitted or completed for the purpose of this assessment or evaluation until the end of the grade appeal period.
INFORMATION ABOUT HOW AND WHEN FEEDBACK WILL BE PROVIDED
Marks and feedback would be provided via iLearn.
ACADEMIC HONESTY
Using the work or ideas of another person, whether intentionally or not, and presenting them as your own without any clear acknowledgement of the source is called Plagiarism. Macquarie University promotes awareness of ethics via its Academic Integrity Policy. This means that:
• All academic work claimed as original must be the work of the person making the claim;
• All academic collaborations of any kind must be acknowledged;
• Academic work must not be falsified in any way; and
• When the ideas of others are used, those ideas must be acknowledged appropriately.
All breaches of the Academic Integrity Policy are serious, and penalties apply. Students should be aware that they may fail an assessment task, a unit or even be excluded from the University for breaching the Academic Integrity Policy.
EXPECTATIONS OF STUDENTS
Students are responsible for their learning and are expected to:
• Actively engage with the assessment tasks, including a careful reading of the provided guidelines, understanding criteria, spending sufficient time on the tasks, and submit- ting work on time;
• Read, reflect, and act on provided feedback;
• Actively engage in activities designed to develop assessment literacy, including taking
initiatives where appropriate (e.g., seeking clarification or advice, negotiating learning
contracts, developing grading criteria, and rubrics);
• Provide constructive feedback on assessment processes and tasks through the student
feedback mechanisms (e.g., student surveys, suggestions for future offerings, student
representation on committees);
• Ensure that their work is their own; and
• Be familiar with university policies and faculty procedures and act in accordance with
those policies and procedures.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com