Question: CGI create a CGI script called Gross_Pay.cgi. This script will calculate grossPay using hours and rate. As you may have guessed, hours and rate will
CGI
create a CGI script called Gross_Pay.cgi. This script will calculate grossPay using hours and rate. As you may have guessed, hours and rate will be extracted from the query string. NOTE: Overtime (hours over 40 is paid double).
To start it off, create a webpage called Gross_Pay.cgi .
After the 3 heading lines will be the section to process the QUERY_STRING
| # if QUERY_STRING exist, process and extract var_hours and var_rate - refer to Lab 14 If [ -n ${QUERY_STRING ]; then fi |
Start creating your document with the following characteristics:
| Cat
# Using embedded CSS, change the color of the webpage to an off-white color of #F2F2F2 # Give The Page A Title of Gross Pay # Add A H1 Heading Of Gross Pay Calculation
EOF |
sample of what it should look like:
G: ? C O O cit1 60lab.sandbox.csun.edu/~zart/cgi-bin/Gl ??: Gross Pay Calculation Hours Worked 10 ? Gross Pay: $300 Pay Rate 10 ? Calculate Gross Pay
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
