CSCI 4000 Assignment 1 solution

$24.99

Original Work ?

Download Details:

  • Name: a1-2.zip
  • Type: zip
  • Size: 1.62 MB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (4 votes)

The main programming language for this assignment should be PHP (mixed with HTML and CSS). If you do not use PHP, you will get 0 points. When you see “Richard Ricardo” in the example screen captures, change it to . When you see “Richard” in the example screen captures, change it to . If you do not put / in the above-mentioned fields, you will get 0 points for the question(s). No two students should submit webpages with the same code, content, layout, or color combination. If found, both students will get 0 points. Create a folder on your hard disk, name the folder lastname_firstname_assignment1. Save all the files from this assignment in this folder. Create the following subfolders (in the folder lastname_firstname_assignment1): q1, q2, q3. As a result, you should have the following folder (directory) structure for this assignment: • lastname_firstname_assignment1\q1\ • lastname_firstname_assignment1\q2\ • lastname_firstname_assignment1\q3\ Use XAMPP web server solution stack package to help debugging PHP code. It will make your debugging process easier. All php files must not produce any error, or any warning (-2 points for each error, each warning). Your program must run. A program that does not run will get at most 50% of the possible points. All files must begin with a comment that identifies the author, the course code, and the program date (- 2 points each question if found missing). All html, css and php files must be clearly documented (commented). Points will be taken off (-2 points each question) for insufficient comments (, /* */, //). • Before adding PHP code, all html files must pass html validation at https://validator.w3.org/ without any error (and with only 1 warning). • When you view page source in a web browser, must be at the top of every page. In other words, all pages must be written in HTML5. (-20 points if not) o You can put php code before . o You cannot put html code before . • All css files must pass css validation at https://jigsaw.w3.org/css-validator/ without any error. (-2 points

Question 1 – PHP Chapter 2 (33 points) Estimated time: 3 hours • Save the files in subfolder “lastname_firstname_assignment1\q1\”. (1 point) • Create a web page to capture information about your movie. • The initial page should look like the one shown below. (3 points) • Allow the user to enter the information to the five textboxes. (5 points) • Create your pages using “’s Movie Page” as the page titles (

Question 2 – PHP Chapter 2 & 8 (33 points) Estimated time: 3 hours • Save the files in subfolder “lastname_firstname_assignment1\q2\”. (1 point) • Create web page(s) that displays the cost of a dance ticket as shown. (4 points) • The use should enter the customer’s age. (2 points) • The output should be a message telling the user what the customer’s dance ticket will cost, based on the following criteria: (12 points for logic) o Under age 4 (age < 4), cost is $3 o Between ages 4 and 16, cost is $7 o Older than 16 (age > 16), cost is $9 • Create your pages using “’s Dance Ticket Price” as the page titles (

Question 3 – PHP Chapter 2 & 8 (34 points) Estimated time: 3 hours • Save the files in subfolder “lastname_firstname_assignment1\q3\”. (1 point) • Create a web page that displays the default information (example shown). • The initial page and related outputs should look like the examples shown below. (4 points) • Create your pages using “’s Kung Fu Panda Po Power Level” as the page titles (

Important: 1. If you do not put / in the above-mentioned fields (as shown in the examples), you will get 0 points for the question(s). 2. No two students should submit webpages with the same code, content, layout, or color combination. If found, both students will get 0 points. 3. Before adding PHP code, all html files must pass html validation at https://validator.w3.org/ without any error (and with only 1 warning). Use the validator’s “File Upload” tab to check each file. a. index.htm file must be validated. b. When you view page source in a web browser, must be at the top of every page. In other words, all pages must be written in HTML5. (-20 points if not) c. You don’t need to validate index_process.php after adding php code. If any html error is found, 2 points will be deducted for each error. Please validate the file before adding PHP code. 4. All css files must pass css validation at https://jigsaw.w3.org/css-validator/ without any error. 5. If your files do not pass the html and css validations, 2 points will be deducted for each html or css error found (no deduction for php error at html validation). 6. Document (comment) your HTML files (), CSS files (/* */), and PHP files (/* */ OR //). Points will be taken off for insufficient comments (, /* */, //). Submission instructions: • You need to test all document(s). • Do screen capture(s) of the input and the related output(s). Use any graphic editing software (e.g. Microsoft Paint, Adobe Photoshop, or GIMP etc) to cut out the browser output (from the screen capture), paste them into a word document. • Provide 2 different test cases for each question. In other words, for each question, you may need to have 2 input screen captures and 2 related output screen captures. • Do screen capture(s) of html validation results (index.htm files only) and css validation results (style.css file only), cut and paste them into the word document. If you use the same style.css file, you only need to do screen capture of one style.css file. • Save the word document as a pdf file. You need to submit the following: 1. A pdf file containing the screen capture(s) of the web browser input and output pages, and the screen capture(s) of all html validation results (from https://validator.w3.org/) and css validation results (from https://jigsaw.w3.org/css-validator/), name the file lastname_firstname_assignment1.pdf. 2. All html file(s), php file(s), css file(s), and other related files (e.g. image files). Zip your file folder (lastname_firstname_assignment1) into a single zip file (or rar file) lastname_firstname_assignment1.zip. In the above example, the zip file should contain the following files and subfolders. If there is any image, there should be a \images\ subfolder. • lastname_firstname_assignment1\q1\index.htm • lastname_firstname_assignment1\q1\index_process.php • lastname_firstname_assignment1\q1\style.css // you may put style.css in a subfolder • lastname_firstname_assignment1\q2\index.htm • lastname_firstname_assignment1\q2\index_process.php • lastname_firstname_assignment1\q2\style.css • lastname_firstname_assignment1\q3\index.htm • lastname_firstname_assignment1\q3\index_process.php • lastname_firstname_assignment1\q3\style.css Please submit the above mentioned two files (.pdf and .zip) to D2L digital dropbox. 9 CSCI 4000 Grading guidelines (programming questions): Your programs will be judged on several criteria, which are shown below. • Correctness (50%): Does the program compile (run) correctly? Does the program do what it’s supposed to do? • Design (20%): Are operations broken down in a reasonable way (e.g. classes and methods)? • Style (10%): Is the program indented properly? Do variables have meaningful names? • Robustness (10%): Does the program handle erroneous or unexpected input gracefully? • Documentation (10%): Do all program files begin with a comment that identifies the author, the course code, and the program date? Are all the classes, methods and data fields clearly documented (commented)? Are unclear parts of code documented (commented)? (Some items mentioned may not apply to some languages) A program that does not compile (run) will get at most 50% of the possible points.