Assessment Student ___________________ Code solutions for dynamic web pages Competency: Weight: ICAWEB411A - Produce basic client-side script for dynamic web pages ICAWEB429A - Create a markup language document to specification 50% 50% Course: Diploma General (ICA50111) Teacher: Az de Silva Event No: 1 of 2 Event Location: DG11, D Block, Kingscliff Event Date(s): Part 1: (Week 5) Part 2: (Week 7) Part 3: (Week 9) Part 4: (Week 12) Part 5: (Week 14) Elements of competence: ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Submit the following items:– Code (electronic) Marksheet (printed, if you wish to retain a record of your results) Where professional presentation is required, marks may be lost for typos, spelling errors, and grammatical errors, difficult to use format or layout, and lack of references to external sources. Always keep a backup copy of your assignment. Loss of your assignment by either yourself or the teacher will not be accepted as an excuse for non-submission. NOTE: You must satisfactorily complete all tasks in this assessment to be deemed competent in this/these unit/s before additional grading is considered. Instructions Individual work only. Solve the following problems using algorithms and a language approved by the assessor with appropriate naming conventions for files and professional code comments. Either: • demonstrate to the teacher your algorithms and working programs with a verbal description of the problems you encountered OR • provide them on file with a written description of the problems you encountered as comments, with your name. All the criteria following a symbol must be present in your submission in order to pass this assignment. Created on 23/03/16 Last saved on 23/03/16 Document1 Page 1 of 7 Assessment Student ___________________ Part 1: Currency Conversion Submit by Week 5 Using the algorithm developed in class, write code that can calculate a currency conversion as detailed: You are travelling to Britain to embark on a rainy journey will some fellow adventurers, you will need to convert Australian dollars to British pounds. Your program should ask the user to input the following: The number of British pounds that $1AUD buys. The number of Australian dollars to convert. The program should then output a message telling the user: How many British pounds they would get for that amount of Australian dollars. Once your merry band has had its fill of overcast adventuring, with half the money you started with, you travel forth across the English Channel to seek treasure and conquest in the European countryside. Your program will now need to convert British pounds to Euros, and should ask the user to input the following: The number of Euros that 1£ buys. The program should then output a message telling the user: How many Euros they would get for the remaining amount of British pounds. Hint: If $1 buys 0.6250 Euros, then $10,000 would equal 6,250 Euros (because 10,000 x 0.6250 = 6,250). If the quote states that one Euro buys $1.60, then $10,000 still would equal 6,250 Euros (because 10,000/1.6000 = 6,250) ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Created on 23/03/16 Last saved on 23/03/16 Satisfactory Document1 Page 2 of 7 Assessment Student ___________________ Part 2: Roll for Initiative Submit by Week 7 Produce code that plays the user against the computer just once. To win, the player has to roll the highest number. You must: Create an algorithm using correct pseudocode and record it in script comments Demonstrate code that: Prompts the user to enter their character’s name, e.g. “Borgoth the Brave” Randomly assigns the user a number between 1 and 21 inclusively. Randomly assigns the computer a number between 1 and 21 inclusively. Displays both user’s and computer’s number Displays the player’s result: win, loss, or tie ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Satisfactory Part 3: HAL’s Game I Submit by Week 9 Produce code to create a number guessing game where the user plays against the computer. HAL9000 has decided to take control of the spacecraft, but there is a window of hope – guess the number of the manual override code and return ship control to the captain. Create an algorithm using correct pseudocode and record it in script comments. Ask the user for their name. Keep asking the user to ‘guess’ what number the computer is thinking of (a random integer between 1 and 100 inclusive), until they get guess correctly. If they guess correctly display a message congratulating them and exit the loop. If they guess wrongly five times display a message asking them if they give up, if they give up, tell them the number, if they don’t give up let them keep guessing for another five turns before asking again. Give the user a clue if they’re wrong e.g. “Your guess was higher/lower than the override code.” ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Created on 23/03/16 Last saved on 23/03/16 Satisfactory Document1 Page 3 of 7 Assessment Student ___________________ Part 4: HAL’s Game II Submit by Week 12 Based on your previous work in Part 3, produce code to create a number guessing game where the user plays against the computer and their guesses are recorded. The code should: Create an algorithm using correct pseudocode and record it in script comments. Ask the user for their name. Keep asking the user to ‘guess’ what number the computer is thinking of (a random integer between 1 and 100 inclusive), until they get guess correctly. Store each of the user’s guesses in an array of guesses. If they guess correctly display a message congratulating them and exit the loop. If they guess a number they’ve already guessed before, display a message notifying them that they have already previously guessed that number. If they guess wrongly five times display a message asking them if they give up; if they give up, tell them HAL’s set course for the sun, if they don’t give up let them keep guessing for another five turns before asking again. Give the user a clue if they’re wrong e.g. “Your guess was higher/lower than the override code.” ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Satisfactory Part 5: Computing Indices Submit by Week 14 Write code that computes XN in a function where N and X are two integers between 2 and 9 inclusively, entered by the user. E.g. User enters 3 and 4, which is 34 = 81, which is the same as 3 x 3 x 3 x 3. Your code must: First collect two integers between 2 and 9 from the user via input fields. Call a function to perform the calculation, using the two user inputs as parameters, returning the result to be displayed. Your page should contain a heading and suitable formatting. ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Created on 23/03/16 Last saved on 23/03/16 Satisfactory Document1 Page 4 of 7 Assessment Student ___________________ Part 6: Click Me If You Can Submit by Week 16 Write code that displays a simple web page with an exciting yet simple game: A heading and the author’s name in a tagline. An image that randomly jumps around the screen, fast enough to be challenging. The functionality should be written so that if the user manages to click on the image then: A pop-up message is displayed saying “Got Me!” The image speeds up if caught, slows down if not. The page should contain the following: A heading Instructions for the player A suitable image and theme to the game ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components Created on 23/03/16 Last saved on 23/03/16 Satisfactory Document1 Page 5 of 7 Assessment Student ___________________ Marksheet Competency Details ICAWEB411A - Produce basic client-side script for dynamic web pages ICAWEB411A EC1. Analyse requirements for web documents ICAWEB411A EC2. Design and produce web documents ICAWEB411A EC3. Test scripts and debug Parts 1, 2,3,4,5 ICAWEB429A - Create a markup language document to specification ICAWEB429A EC1. Analyse specifications and requirements ICAWEB429A EC2. Create document structure ICAWEB429A EC3. Incorporate web page components 1, 2,3,4,5 Competency Grade NYC MER C NYC MER C STUDENT FEEDBACK: STUDENT DECLARATION I declare the submitted assessment files are my own original work and I have cited references for any content therein which is not my own original work. Student’s Signature: ___________________________________________________________ TEACHER FEEDBACK: Teacher’s Signature: Created on 23/03/16 Last saved on 23/03/16 Document1 Page 6 of 7 Assessment Student ___________________ Assessment Overview These units are not graded. Your final result will be recorded as: o not competent (NC), achieved competence (AC) This unit will be assessed through [2] event(s). These are [Theory & Practical Tasks] Every assessment event must be successfully completed in order to demonstrate competence in this unit. If you are absent on the day of an assessment you must notify the teacher as soon as possible. It may be possible to negotiate assessment on another occasion. However, this will depend on the nature of the assessment task. If you do not successfully complete an assessment event you may be given the opportunity to undertake another assessment. This must be negotiated with your teacher. Should you be unsuccessful in the 2nd attempt, you may need to re-enrol in the unit the following semester. You will receive feedback on each assessment provided it is submitted on or before the agreed due date. Assessments completed after the agreed due date will need to be submitted directly to the Head teacher. In such cases, you will need to show cause as to why you are making a late submission. If the employability skills associated with the unit include punctuality, the late submission may not be accepted. As soon as you become aware of circumstance that may prevent submission on time, notify your teacher to request an extension in time. If you want to view your results at any time, your teacher can provide you with instructions on how to access your student record via student e-Services All TAFE students are eligible to apply for Recognition of Prior Learning (RPL). For more information go to http://northcoast.tafensw.edu.au/studentservices/futurestudents/RecognitionPriorLearning/P ages/default.aspx If you have a permanent or temporary condition that may prevent you successfully completing the assessment task(s) you should immediately talk with your teacher about ‘reasonable adjustment’. This is the adjustment of the way you are assessed to take into account your condition and may include providing a support person or extra time. The assessment criteria cannot be altered. If you do not agree with the mark/grade given for your assessment task, you may appeal the assessment decision. You should first discuss the assessment result with your teacher. If you are not satisfied with the outcome of that discussion you can access the appeal process through the staff in the campus administration office. For more information on assessment, refer to ‘Every Student's Guide to Assessment in TAFE NSW’ which is available on the TAFE internet site at: https://www.tafensw.edu.au/courses/assessment/assets/pdf/assessment_guide.pdf Created on 23/03/16 Last saved on 23/03/16 Document1 Page 7 of 7