SOEN 287作业代写、代做HTML/CSS/JS语言作业、代写Software Engineering作业
Concordia University
Computer Science and Software Engineering Department
SOEN 287: Web Programming 1 – Fall 2018
Assignment 4
______________________________________________________________________
Due Date: By 11:55pm, Saturday, December 1, 2018
Type: Individual Assignment
Purpose: The purpose of this assignment is to have you to practice HTML, CSS, JS,
PHP and create a website
CEAB Attributes: This assignment is primarily evaluating your use of Web
programming
Skills (Knowledge base & design)
Exercise 1
The following set of short questions will focus on getting you familiar with how to write
PHP functions as well as how to make use of the pre-existing PHP functions. All your
PHP functions must be declared in the document body section and each functions
name must be as specified below. To demonstrate the functionality of each method, you
must make function calls in the document body. Include a heading (h1 … h6) that
indicates the function is being tested before the function demonstration.
The use of Global Variables is forbidden!
A. Function: findSummation
Parameter(s): A positive integer number (default value is =1)
Given the input positive number (N), find the summation of all positive integer numbers
from 1 to N (1+2+3+….+N) and return this summation. If the input parameter is not a
number, or if it is not a positive number return false.
B. Function: uppercaseFirstandLastSorted
Parameter(s): String
For each word in the input string, capitalize (uppercase) both the first letter and the last
letter, then sort the words alphabetically (assume all the words contains just letters) and
return the modified string.
C. Function: findAverage_and_Median
Parameter: An array of numbers.
Calculate the average and median of the numbers and return both values.
D. Function: find4Digits
Parameter: A string of numbers separated by spaces.
Return the first four-digit number in the string; false if none.
Exercise 2
Create a php page (name it numOfVisits.php) that uses cookies to record and track the
number of times a webpage has been visited. If the visitor is looking at the webpage for
the first time, it should display the following message: Welcome to my webpage! It is
your first time that you are here. If the page has been visited more than once, display:
Hello, this is the ## time that you are visiting my webpage (where ## shows the number
of visits). In this case you should also display a message that shows the day of the
week, date, time and the time zone on your server that the page was visited last time in
the following format (as an example):
Last time you visited my webpage on: Sat November 10 17:16:18 EST 2018
(EST= Eastern Standard Time Zone)
Exercise 3
Write an HTML document to provide a form that collects names and
telephone numbers. The phone numbers must be in the format ddd-ddddddd.
Write a PHP script that checks the submitted telephone number to
be sure that it conforms to the required format and then returns a
response indicating whether the number was correct.
Exercise 4: Project
In this exercise we continue the Cottage Search Problem (from
assignment 3) and will have the goal of building a website. (Note:
since this assignment introduces PHP into the project, it is likely
that some of your web pages will have to have their extensions
changed from .html to .php).
Cottage Search Website
Running Problem – Version 3
This version requires HTML, CSS, JS and PHP.
1) Create a template for your entire site such that you define the header and footer
once and include them in each page of the site. This should be done using PHP.
The following is just as a reminder of what the header and footer should contain.
2)
Header: It should include the name of your service and a logo/picture.
Clicking on the logo/picture should take you back to the home page. It
should also display the current date and time. The Time should
automatically refresh every second.
Footer: This should appear at the bottom of all your pages. Give it a
distinct background color and include links to a Privacy/Disclaimer
Statement which can either appear in the content area of the site or in an
alert or confirm box. It should display a message promising users that
their information will not be sold or misused, and protects the
website builder from any incorrect information.
3) You will manage 2 text files which will reside on the server.
A login file which will contain username and passwords. This file will be
consulted when a user is logging in. Each field should be separated by
colon (:) and each user info is in one line.
For example if I have a file with 3 accounts, the file will look like so:
user1:pass1
user2:pass2
user3:pass3
An available cottage information file that will store the information about
location, type, amenities, price, pet info. Design your own format and field
name for search.
4) Functionality of your site: Add the following functions to your site:
Search: enter some search criteria and submit the query to a server site PHP
program. This PHP program can search in the available Cottage information
file and find the matching cottages. Please notice that you can have none or
multiple matchings.
Login/Create New Account:
o Add a login button at the top-right corner of the search page.
o When a user clicks on this button, a login page loads into the content
area with text fields for a username and one for a password as well as
a login button. Below the login button, you can show a description of
the allowed formats for usernames and passwords. A username can
contain letters (both upper and lower case) and digits only. A password
must be at least 6 characters long (characters are to be letters and
digits only), have at least one letter and at least one digit. Before
sending this information to the server make sure that the entered
username and password satisfy the format criteria just listed.
o A user can input a username and a password on the login page. If the
username and the password is a match verified by a PHP program
against the log in file, redirect the user to the search page with
“welcome, username” at the top-right corner (besides the login button).
If the username exists and the password is not a match verified by a
PHP program against the log in file, stay on the login page and show
“invalid login” before the login button and allow the user to re-enter
inputs. If the username does not exist, write this new pair to the login
file following the format specified in bullet 3 and return a new page to
confirm that the account was successfully created and display a button
to redirect the user to the search page.
Connect the search page and the account login: if the user has logged in,
show the full search results – types, area, street address and price. If the user
does not login, the search results include only the area information, not the
street address and a button “login to show the address” besides each result
item. User can click the button to login. You do not need to cache the search
results. After the login, the search starts again.
Note:
1) Although it is not a functional requirement, your site should always be well
organized with properly named files and well defined directories.
2) Any pictures, graphics, text, code, you “borrow” from other sites, be sure to give
credit to. Be aware of plagiarism.
Submitting Assignment 4
Please give meaningful names to each html, js and php file to make the feedback
process easier.
Naming convention for zip file: Refer to assignment 3 handout.
For submission instructions please refer to the course web page.
Assignments not submitted to the correct location or not in the requested format
will not be graded.
Evaluation Criteria for Assignment 4 (20 points)
Exercise 1 – 4 pts.
a) findSummation()
b) uppercaseFirstandLastSorted
c) findAverage_and_Median
d) find4Digits
1
1
1
1
pt
pt
pt
pt
Exercise 2 - 4 pts.
a) Creating cookie
b) Storing the visits count using cookies
c) Showing the visits count and date & time
1
2
1
pts
pts
pts
Exercise 3 - 2 pts
a) Creating a form
b) Data validation on the form
1
1
pt
pt
Exercise 4 - 10 pts.
a) Header and footer
b) Search php
c) Login php
3
3http://www.6daixie.com/contents/21/2321.html
4
pts
pts
pts
TOTAL 20 pts

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

微信:codinghelp

转载于:https://www.cnblogs.com/letsgoC/p/10078945.html

SOEN 287: Web Programming相关推荐

  1. [Share]10 Free EBooks for Web Designers

    Introduction to Good Usability This guide is especially handy if you haven't done a lot of webdesign ...

  2. Stanford CS107 Programming Paradigms 编程范式

    Directory Resource :https://see.stanford.edu/Course/CS107 Lower-level C constructs High-level C++ Co ...

  3. bootstrap网页模板源码_Go Web 编程--超详细的模板库应用指南

    如果你有过Web编程的经验,那么或多或少都听说过或者使用过模板.简而言之,模板是可用于创建动态内容的文本文件.例如,你有一个网站导航栏的模板,其中动态内容的一部分可能是根据当前用户是否登录显示登录还是 ...

  4. flask程序打包部署_如何使用Flask构建Web应用程序并将其部署到云中

    flask程序打包部署 by Salvador Villalon 萨尔瓦多·维拉隆(Salvador Villalon) 介绍 (Introduction) In each section, I wi ...

  5. Go Web 编程--超详细的模板库应用指南

    如果你有过Web编程的经验,那么或多或少都听说过或者使用过模板.简而言之,模板是可用于创建动态内容的文本文件.例如,你有一个网站导航栏的模板,其中动态内容的一部分可能是根据当前用户是否登录显示登录还是 ...

  6. java web 项目如何获取客户端登录帐号信息(用于SSO或其他)

    前言 在java 中可以通过System 获取操作系统的相关信息. 类似: String sys_user_name = System.getProperty("user.name" ...

  7. web编程开发_Web编程简介(Web设计和Web开发)

    web编程开发 为什么要进行网站开发? (Why web development?) The most important reason of why one should learn web dev ...

  8. 观光公交削弱_削弱Web开发人员和Internet的7大障碍

    观光公交削弱 As a web developer I periodically take a step back from the text editor and look at the lands ...

  9. ai人工智能开发_人工智能使Web开发的面貌发生变化

    ai人工智能开发 Long ago online developers created websites using HTML and a few lines of code as websites ...

  10. web开发技术和技术分享_2020年将改变Web开发的顶级技术

    web开发技术和技术分享 Web improvement encompasses a gigantic arrangement of rules and procedures each site en ...

最新文章

  1. Grafana Labs 携手阿里云,将提供国内首款 Grafana 托管服务
  2. java如何查看调用记录_查看Java记录
  3. 协同过滤推荐算法概括总结
  4. ESXI安装部署方法
  5. 数据抓取软件火车采集器如何导入TXT 、EXCEL数据
  6. English improvement of IT Test(2016)
  7. 计算机专业该如何找实习工作?迷茫、不知所措的你值得一看~
  8. Python制作酷炫的动画效果
  9. ubantu启动黑屏解决办法
  10. 谷歌浏览器关闭系统代理后断网问题
  11. 程序员只能在一线城市么?
  12. 47:WAF绕过-漏洞发现之代理池指纹被动探针
  13. 正则表达式:邮箱匹配
  14. spark task 任务状态管理
  15. 大周末的不休息,继续学习pandas吧,pandas你该这么学,No.7
  16. java 反射 set方法_java 反射调用set方法
  17. trip计算机英语作文,mytrip英语作文,my trip to英语作文80!
  18. python画羊_Artbreeder 给我画一只电子羊
  19. 高通MSM8953 LK阶段配置使用I2C8
  20. 什么是云原生数据库?

热门文章

  1. Numpy创建正态分布和均匀分布
  2. 微软开发的www服务器程序是,WebDeploy 微软开发的IIS6同步应用程序
  3. nvivo服务器项目,【NVivo教程】用Nvivo为研究团队设立主项目
  4. js多线程编程web worker
  5. latch mysql_关于MySQL latch争用深入分析与判断
  6. php apply filters,WordPress学习——apply_filters()详解
  7. so库生成和用法汇总
  8. 工作感受月记 201906月
  9. 实现营业执照注册号校验
  10. 营业执照注册号是不是统一社会信用代码?