logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

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

  1. You are expected to keep your code clean and simple, similar to the code from Murach
  1. Part 1 of A2 is a standalone web application called "a2part1".

This should be the name of a folder in your Apache htdocs.

  1. 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.

  1. Do not use graphics (graphical images).

The total size of the A2 files sent to the TA cannot be larger than 500 Kilo Bytes.

  1. 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. 

  1. 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.

  1. 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 :

  1. 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).

  1. The text input is preceded (on the left) by a static text, explaining the expected

For example: "Enter a number (format : 999999.9999) : ".

  1. 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.

  1. 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 : ".

  1. 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
  1. Transform number page (TransformNumber.php)

----------------------------------------------

This page is written in PHP.

  1. The page retrieves:
  1. the user input from index.html's text input field (UN)
  2. the user input from index.html's drop-down control (ND_DP)
  3. b) the name of the button pressed in index.html
  1. The page validates that:
  1. the index.html form was submitted by pressing the button SubmitNumber
  2. the string entered in the form:
    • is not empty,
    • is numeric and
    • has at most 3 digits after the decimal sign
(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. 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. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

637 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

576 Answers

Hire Me
expert
Husnain SaeedComputer science

876 Answers

Hire Me
expert
Atharva PatilComputer science

614 Answers

Hire Me