Assignment No A-06 Aim A Pizza shop chain wants to automate dishes served with schemes or without scheme and delivered by the nearest shop in a chain. Use pervasive computing paradigm to develop a web-application using Embedded Java/ Python/ Scala so that the order be delivered to the customer within 10 minutes. Use XML/JSON to store the data. Pre-requisite 1. Android. Objective 1. To understand idea of pervasive computing. 2. To develop the application for pizza shop. Problem Statement Implement a pizza shop application to automate the delivery of an order. Hardware / Software Used 1. Android Studio. 2. Android Phone. 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Assignment No A-06
Aim
A Pizza shop chain wants to automate dishes served with schemes or without scheme anddelivered by the nearest shop in a chain. Use pervasive computing paradigm to develop aweb-application using Embedded Java/ Python/ Scala so that the order be delivered tothe customer within 10 minutes. Use XML/JSON to store the data.
Pre-requisite
1. Android.
Objective
1. To understand idea of pervasive computing.
2. To develop the application for pizza shop.
Problem Statement
Implement a pizza shop application to automate the delivery of an order.
Hardware / Software Used
1. Android Studio.
2. Android Phone.
1
Mathematical Model
M={ s, e, X, Y, fme;DD;NDD; Ffriend;Memshared; Fsuccess; Ffailure;CPUCoreCount }•s= Input the details•e= The order is placed successfully•X=Input of the program.
1. X1=name
2. X2=address
3. X3=phone number
•Y=Output of the program.The particular product is delivered
•Fme= Functions in the program.
1. Select the items.
2. Place the order.
•DD= Deterministic data
1. Input co-ordinates are the deterministic data.
2. Accept function to get the details of the customer
•NDD=Non deterministic data
1. The location is tracked and the time and distance is calculated.
2. Any one will not predict that what will be the path for given coordinates.
•Memshared=No use of shared memory.
•Fsuccess=Correct work type is estimated.
•Ffailure= Fail to predict work type if there is no detail available.
•CPUCoreCount=1
2
Theory
•Introduction:Data is stored on Parse cloud. Parse is a form of an application for the users to give the backend to launch an app. It provides its features for iOS, Android, and Windows applications.The Parse SDK offers all the elasticity of a cloud platform for the mobile applications that needto scale.
•Android SDK:The Android software development kit contains set of development tools used for the develop-ment. The tools consists of a debugger, libraries, documentation, sample code, and tutorials.Currently supported development platforms include computers running Linux (any moderndesktop Linux distribution), and Windows XP or later.•Steps:
1. Open the Pizza APP.
2. Enter the details.
3. Select the pizza from the menu.
4. Enter the address.
5. Post the order.
•Fetching of list:Gives the information about the address of the shops located in a particular city. The userselect the best destination to order the product which would be conventional to them to getthe best delivery. The list gets fetched from the parse cloud.
Procedure
Build and run the project in android studio.
Conclusion
We have studied to develop web application for a pizza shop with schemes or without schemeand delivered by the nearest shop in a chain using pervasive computing para dime.
3
Program
==============================================================================================================================GROUP AAssignment No : B1Elective II BTitle : A Pizza shop chain wants to automate dishes served with schemes or withoutscheme and delivered by the nearest shop in a chain. Use pervasive computing paradimeto develop a web-application using Embedded Java/ Python/ Scala so that the order bedelivered to the customer within 10 minutes. Use XML/JSON to store the data.Roll No :Batch : BClass : BE ( Computer )==============================================================================================================================
MainActivity.java
package com.example.windows.pizza;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.SaveCallback;
import java.util.Arrays;
import java.util.List;
import com.parse.FindCallback;
import com.parse.ParseQuery;
public class MainActivity extends AppCompatActivity {