Programming Assignment
Design a pizza order mobile application. This application will need to allow the user to enter input to configure their pizza, inform the user what the total price of the order is. After the user submit the order, the order details will be stored in the database. Assume each customer can only order one pizza.
1. The user interface has the following options:
• Toppings must include but not limited to the following options (such as checkboxes): Pepperoni, Chicken, Mushroom, Green Pepper, Olive, Extra cheese
• Radio Buttons for the following: Small / Medium / Large Submit Button
After clicking the submit button, the interface will display the total price of the order and save order details in the database.
The students will decide the price for each option.
• Textboxes for the following options: Customer Name, Phone Number
2. Database design
Database table should be able to store the following data: order id, customer name, phone number and order price
3. Model
Create a separate class to store order details including: order id, customer name, phone number and order price.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

package com.dara.pizzaorder;

import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.RadioButton;

public class MainActivity extends AppCompatActivity {

    private CheckBox chicken, pepperoni,
            mushroom, green_pepper, olive, extra_cheese;

    private RadioButton small, medium, large;

    private Button sumit;

    private float price;

    protected void onCreate(Bundle savedInstanceState) {

       pepperoni = (CheckBox) findViewById(;
       chicken = (CheckBox) findViewById(;
       mushroom = (CheckBox) findViewById(;
       green_pepper = (CheckBox) findViewById(;
       olive = (CheckBox) findViewById(;
       extra_cheese = (CheckBox) findViewById(;

       small = (RadioButton) findViewById(;
       medium = (RadioButton) findViewById(;
       large = (RadioButton) findViewById(;

       sumit = (Button) findViewById(;

       sumit.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {

By purchasing this solution you'll be able to access the following files:

50% discount

$55.00 $27.50
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available App Development Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats