Paa S
Paa S
google cloud.
INDEX.HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!--
/*globals nbsp */
var a = 1;
if(a%2===0)
{
//-->
</script>
App.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
2. Google app engine program multiply two matrices.
INDEX.HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!--
function multiply(a, b) {
return m;
function display(m) {
display(a);
display(b);
display(multiply(a, b));
//-->
</script>
App.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
3.Write a Google app engine program to display nth largest no from the given list of
numbers and deploy it into google cloud.
INDEX.HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!--
function nthlargest(arra,highest){
var x = 0,
y = 0,
z = 0,
temp = 0,
tnum = arra.length,
flag = false,
result = false;
y = x + 1;
temp = arra[z];
arra[z] = arra[x];
arra[x] = temp;
flag = true;
}else{
continue;
}
if(flag){
flag = false;
}else{
x++;
result = true;
if(result){
break;
document.write(nthlargest([ 43, 56, 23, 89, 88, 90, 99, 652], 4));
//-->
</script>
App.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)