0% found this document useful (0 votes)
607 views13 pages

Cloud Computing LAB Manual

The document provides steps to create a Google App Engine program that generates a given number of even numbers and deploys it to Google Cloud. It includes instructions on installing required tools, creating a Java servlet application that takes user input for the number of even numbers to generate and displays the output.

Uploaded by

Bhargav Rajyagor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
607 views13 pages

Cloud Computing LAB Manual

The document provides steps to create a Google App Engine program that generates a given number of even numbers and deploys it to Google Cloud. It includes instructions on installing required tools, creating a Java servlet application that takes user input for the number of even numbers to generate and displays the output.

Uploaded by

Bhargav Rajyagor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

RESULT

Thus the development of a Grid portal, where user can submit a job and get the result and to implement
it with and without GRAM is executed successfully

CLOUD COMPUTING

Programs on SaaS

1 Create an word document of your class time table and store locally and on the cloud with doc,and pdf
format . ( use www.zoho.com and docs.google.com)

Steps:

113
With Google Docs, you can create and edit text documents right in your web browser no special

changes as they make them, and every change is saved automatically.

To start, you need a document to work with.

In this section, you learn how to:

Create a new document


Import and convert old documents to Docs

Create a new document

You can create a new document right in Docs or in Google Drive.

In Docs, click Create new document.

In Drive, click New > Google Docs > Blank document or From a template.

Import and convert old documents to Docs

If you have existing text documents, such as Microsoft® Word® or Adobe®PDF files, you can import and
convert them to Docs.

Go to Drive.
Click New > File Upload and choose a text document from your computer. Supported
files include .doc, .docx, .dot, .html, plain text (.txt), .odt, and .rtf.
Right-click the file you want to convert and select Open with > Google Docs.
Converting your document from another program creates a copy of your original file in Docs format. You
can then edit it in your browser like any other document.

Create Class timetable

114
Share documents
1. Open the file you want to share.
2. Click Share .
3. Enter the email addresses or Google Groups you want to share with.
Note: If you can't add people outside your company, see your G Suite administrator.

4. Choose what kind of access you want to grant people:


o Can edit Collaborators can add and edit content as well as add comments.
o Can comment Collaborators can add comments, but not edit content.
o Can view People can view the file, but not edit or add comments.
Click Send.

Everyone you shared the document with receives an email with a link to the document.

2 Create a spread sheet which contains employee salary information and calculate gross

and total sal using the formula

DA=10% OF BASIC

HRA=30% OF BASIC

PF=10% OF BASIC IF BASIC<=3000

12% OF BASIC IF BASIC>3000

TAX=10% OF BASIC IF BASIC<=1500

=11% OF BASIC IF BASIC>1500 AND BASIC<=2500

=12% OF BASIC IF BASIC>2500

( use www.zoho.com and docs.google.com)

NET_SALARY=BASIC_SALARY+DA+HRA-PF-TAX

readsheet. Google Spreadsheet works

115
the same as Excel, and you can do most of the important spreadsheet tasks with it. You can use Google
Spreadsheet directly from your web browser or from its mobile app.

1. Sign into Google Sheets. Visit docs.google.com/spreadsheets and sign in with your Google or
Gmail account. Your Gmail account gives you free access to Google Sheets.

2. View your existing sheets. Upon logging in, you will be brought to the main directory. If you
already have existing spreadsheets, you can see and access them from here.

3. Create a new spreadsheet. Click the large red circle with a plus sign on the lower right corner. A
new window or tab will be opened with the web-based spreadsheet.

4. Name the spreadsheet. top left corner. This is the


current name of the spreadsheet. Click on it, and a small window will appear. Type in the name

5. Work on the spreadsheet. You can work on Google Sheets much like how you would work on

Microsoft Excel.
1. calculate gross and total sal using the formula
2. DA=10% OF BASIC
3. HRA=30% OF BASIC
4. PF=10% OF BASIC IF BASIC<=3000
5. 12% OF BASIC IF BASIC>3000
6. TAX=10% OF BASIC IF BASIC<=1500
7. =11% OF BASIC IF BASIC>1500 AND BASIC<=2500
8. =12% OF BASIC IF BASIC>2500
9. ( use www.zoho.com and docs.google.com)
10. NET_SALARY=BASIC_SALARY+DA+HRA-PF-TAX

6. Google Sheets as everything you do is automatically saved at


regular intervals.

7.
just simply close the window or tab. Everything is saved automatically. You can access your
document from Google Sheets or Google Drive.

116
3. Prepare a ppt on cloud computing introduction , models, services ,and Architecture ppt should
contain explanations, images and at least 20 pages ( use www.zoho.com and docs.google.com)

Step 1: Login with your gmail id, at http://docs.google.com/

Step 2: Once you login, you will have a workspace area to work with your documents, spreadsheets and
presentations. Just below the logo
will have all the available options. Select Presentation there.

Step 3: Now you have an empty presentation being created in your workspace.The look and feel doesn t
look like a web application at all!

Step 4: You can goto the Format Menu item and change the presentation Theme or Background. There
are lots of templates and themes available!

Step 5: As you would do on any desktop office client, you can click on the new slide button, and select
the Slide Design.

Step 6: If you need to insert a drawing, Shape or an Image, You can goto the Insert Menu item and select
the same. Once you select image, You have options to select the image as a URL image or even a web
upload!

Step 7: If you need to insert Tables to your slide deck, you can use the Table Menu item, and select the
number of Rows and Colums.

Step 8: Following the above steps prepare presentation on cloud computing.

Step 9: You can now share the presentation through email attachment, give a link to the presentation..
so that one can watch it online in Google Docs and even Embed this presentation to your website too..!
117
4. Create your resume in a neat format using google and zoho cloud Programs on PaaS

Steps:

With Google Docs, you can create and edit text documents right in your web browser no special

changes as they make them, and every change is saved automatically.

To start, you need a document to work with.

In this section, you learn how to:

Create a new document


Import and convert old documents to Docs

Create a new document

You can create a new document right in Docs or in Google Drive.

In Docs, click Create new document.

In Drive, click New > Google Docs > Blank document or From a template.

Import and convert old documents to Docs

If you have existing text documents, such as Microsoft® Word® or Adobe®PDF files, you can import and
convert them to Docs.

Go to Drive.
Click New > File Upload and choose a text document from your computer. Supported
files include .doc, .docx, .dot, .html, plain text (.txt), .odt, and .rtf.
Right-click the file you want to convert and select Open with > Google Docs.
118
Converting your document from another program creates a copy of your original file in Docs format. You
can then edit it in your browser like any other document.

Create / design a neat resume

Share documents
1. Open the file you want to share.
2. Click Share .
3. Enter the email addresses or Google Groups you want to share with.
Note: If you can't add people outside your company, see your G Suite administrator.

4. Choose what kind of access you want to grant people:


o Can edit Collaborators can add and edit content as well as add comments.
o Can comment Collaborators can add comments, but not edit content.
o Can view People can view the file, but not edit or add comments.
Click Send.

Everyone you shared the document with receives an email with a link to the document.

1 Write a Google app engine program to generate n even numbers and

deploy it to google cloud

Steps:

1. Install Eclipse IDE for Java EE Developers, version 4.6 or later:

2. If you have the Google Plugin for Eclipse installed, complete the migrating from GPE procedures.

3. Installing Cloud Tools for Eclipse


4. To install the plugin:
119
5. Drag the install button into your running Eclipse workspace:

6. Or from inside Eclipse, select Help > Eclipse Marketplace... and search for Google Cloud.
7. Restart Eclipse when prompted.

App engine Program to generate n even numbers using java servlet application

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>

<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />

<title>Hello App Engine</title>

</head>

<body>

<h1>Hello App Engine!</h1>

<form action="/hello" method="get">

Enter 1st Number <input type="text" name="n1"><br>

<input type="Submit" value="Submit">

</form>

</body>

</html>

import java.io.IOException;

120
import javax.servlet.annotation.WebServlet;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

@WebServlet(

name = "HelloAppEngine",

urlPatterns = {"/hello"}

public class HelloAppEngine extends HttpServlet {

@Override

public void doGet(HttpServletRequest request, HttpServletResponse response)

throws IOException {

response.setContentType("text/plain");

response.setCharacterEncoding("UTF-8");

int a1= Integer.parseInt(request.getParameter("n1"));

for (int i = 0; i < a1; ++i)

if(i%2==0)

response.getWriter().print("\t"+i);

121
}

2 Google app engine program multiply two matrices

[ Refer Program 1 Steps to perform matrix multiplication ]

122
3 Google app engine program to validate user ; create a database login(username, password) in mysql
and deploy to cloud

[ Follow the program 1 steps to deploy fexible user validation sample program from git repository ]

123
4 Write a Google app engine program to display nth largest no from the given list

of numbers and deploy it into google cloud

[ Refer Program 1 Steps to find nth largest no from the given list of numbers ]

124
5. Google app engine program to validate the user Use mysql to store user info and deploy on
the cloud

125

You might also like