Others
1. You are expected to keep your code clean and simple, similar to the code from Murach
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
A2 Part 1: Simple web site using PHP
====================================
General requirements
- You are expected to keep your code clean and simple, similar to the code from Murach
- Part 1 of A2 is a standalone web application called "a2part1".
This should be the name of a folder in your Apache htdocs.
- Any reference to files in the PHP or html pages should be relative to the web application root
Any reference to a file, which is specified by absolute path will lower your mark.
Example: a reference of the form C:\3020\A3\myCss.css
is absolute and is not acceptable.
- Do not use graphics (graphical images).
The total size of the A2 files sent to the TA cannot be larger than 500 Kilo Bytes.
- Files in a2part1 folder:
- html : see 2. below
- php : see 3. below
- css : css file
Attention: do not use any external JavaScript files. Chances are you will not be allowed by the mail delivery system (google) to submit your assignment google flags .js files as potential viruses.If you need to use JavaScript, you can embed it in the .html and/or.php files.
- High level description
-------------------------
This is a PHP web application, which permits the user:
- to enter a float (real) number and
- to have a transformation applied on
Here transformation means:
T1. Standardize user number's decimal part length
T2. Reverse the digits of the given user number after standardization.
- Get a number from user (index.html)
--------------------------------------
This page is written in XHTML.
On top, the page displays:
"Input a number. It will be standardized and reversed."
The page has one XHTML form, which has :
- One text input field, allowing the user to enter a float/real number, expected to be in the format: 9999
We will call this number: User Number (UN).
- The text input is preceded (on the left) by a static text, explaining the expected
For example: "Enter a number (format : 999999.9999) : ".
- One drop-down control, which allows the user to select one of following options: 1, 2, or
These options will be user's choice regarding the decimal part length in the transformed UN.
We will call this field: ND_DP.
- The drop-down control is preceded (on the left) by a static text, explaining its
For example: "Standardized number of digits in the decimal part : ".
- One submit button, whose name is SubmitNumber
Requirements :
- the form is submitted to TransformNumber.php when the user presses the submit button ;
- the submission method can be either get or post
- Transform number page (TransformNumber.php)
----------------------------------------------
This page is written in PHP.
- The page retrieves:
- the user input from index.html's text input field (UN)
- the user input from index.html's drop-down control (ND_DP)
- b) the name of the button pressed in index.html
- The page validates that:
- the index.html form was submitted by pressing the button SubmitNumber
- the string entered in the form:
- is not empty,
- is numeric and
- has at most 3 digits after the decimal sign
Related Questions
. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java
CS 340 Milestone One Guidelines and Rubric
Overview: For this assignment, you will implement the fundamental operations of create, read, update,
. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class
Retail Transaction Programming Project
Project Requirements:
Develop a program to emulate a purchase transaction at a retail store. This
. The following program contains five errors. Identify the errors and fix them
7COM1028
Secure Systems Programming
Referral Coursework: Secure
. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer
CS 340 Final Project Guidelines and Rubric
Overview The final project will encompass developing a web service using a software stack and impleme