Starting from:

$25

CS213-Lab 4 Part 1 Solved

CS-213 : Lab 4 : PHP1 part 1 statement
 
1. Finding k-th smallest number:

Take some integers from the command line as input.

First element is parameter k.

Print the k-th smallest number.

Validate your input: For example if we feed strings instead of numbers your program should print a custom message, and in which argument it has occurred.

(A file called e2.php is given where such error handling is shown, in addition to an example given in the demos.)

(A file called argv.php has example showing how to access command line arguments in PHP).

(name of your file should be q1.php).

1

More products