logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

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

expert
Benard MainaFinance
(/5)

539 Answers

Hire Me
expert
Jihye KimHistory
(5/5)

889 Answers

Hire Me
expert
Taimoor IftikharComputer science
(/5)

617 Answers

Hire Me
expert
Ronni AnconaComputer science
(5/5)

643 Answers

Hire Me
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

  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

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