Question: Assignment 2: Ice Cream Shop SUBMISSION INSTRUCTIONS For this assignment to be accepted, you must submit the following files 1. A zip file containing the

Assignment 2: Ice Cream Shop
SUBMISSION INSTRUCTIONS
For this assignment to be accepted, you must submit the following files
1. A zip file containing the your Android project. The file must be a zip, not a rar or 7zip
2. A screenshot of your app, running in either an emulator or real device. Accepted image types: png, jpg/jpeg. If you are using an emulator, please demo your app on a Pixel 3 (or similar) emulator.
File Naming Conventions
Zip file should be named: a2-studentname-studentid.zip
Screenshot should be named: a2-studentname-studentid.png
MARKING RUBRIC
Class definition of an ice cream flavour: 3 marks
Initializing and loading the flavour at app load: 2 marks
Updating the display with the the flavour information: 5 marks
Validating user input: 5 marks
Displaying the order summary: 5 marks
Total Marks: 20 marks
15% deduction will be applied to any submissions that have incorrect file naming.
ACADEMIC INTEGRITY
What is okay:
Using materials posted on the course website
Searching Google for syntax related to Android. Examples of acceptable searches include:
How to center an image in Android
How to change the font size in Android
Adding another screen to an Android app
What is not okay:
Using another persons solution as a reference/starting point for your solution
PROBLEM DESCRIPTION
In this app, youll be building a simple app that lets a customer order ice cream.
Here is an example:
DESCRIPTION OF APP FEATURES
REPRESENTING AN ICE CREAM FLAVOUR(10 marks)
The app displays the current ice cream flavour for sale.
Example of the ice cream flavour
The Ice Cream Flavour is represented in code as a custom Java class. The class has the following properties and methods:
Given a quantity, the getTotalCost() function returns the price of the ice cream as a double.
When you app loads,
Create an instance of the Brazillian Lighting ice cream flavour. Details on this flavour are shown in the following table
Update the user interface with the flavour name, flavour description, quantity remaining, and price.
flavor
description
quantityAvailable
price
Brazilian Lightning
Dairy-free vanilla ice cream mixed with acai, bananas, and a drizzle of strawberry syrup.
8
3.15
Description of the Brazillian Lighting ice cream flavour.
PLACING AN ORDER - VALIDATION(5 marks)
The user can place an order by pressing on the PLACE ORDER button.
There are two conditions that must be met before the sale can be made:
1. The user must enter a positive number in the quantity textbox. If the user enters 0 or a negative value into the textbox, display an error message
2. There must be enough ice cream to sell the customer. For example, if there are only 2 scoops of ice cream available; and the customer orders 5 scoops, display an error message.
Error messages should be shown in a Toast
Example of a Toast in Android
DISPLAYING AN ORDER SUMMARY(5 marks)
At the bottom of the app, there is a section for displaying the results of the order:
By default, this section should be hidden from the user.
If an order can be successfully placed:
1. the app should show the section. Example: https://stackoverflow.com/a/17076583
2. The section should be updated to display
the name of the selected flavour,
The number of scoops order
The price per scoop
The total cost of the ice cream (number of scoops x price per scoop). You must use the flavour objects getTotalCost() function to calculate and display the cost.
 Assignment 2: Ice Cream Shop SUBMISSION INSTRUCTIONS For this assignment to
be accepted, you must submit the following files 1. A zip file
containing the your Android project. The file must be a zip, not

Assignment 2: Ice Cream Shop SUBMISSION INSTRUCTIONS For this assignment to be accepted, you must submit the following files 1. A zip file containing the your Android project. The file must be a zip, not a rar or 7zip 2. A screenshot of your app, running in either an emulator or real device. Accepted image types: png, jpg/jpeg. If you are using an emulator please demo your app on a Pixel 3 (or similar) emulator File Naming Conventions Zip file should be named a2-studentname-studentid.zip Screenshot should be named a2-studentname-studentid.png MARKING RUBRIC Class definition of an ice cream flavour: 3 marks Initializing and loading the flavour at app load: 2 marks Updating the display with the the flavour information: 5 marks Validating user input: 5 marks Displaying the order summary: 5 marks Total Marks20 marks 15% deduction will be applied to any submissions that have incorrect file naming, ACADEMIC INTEGRITY What is okay Using materials posted on the course website Searching Google for syntax related to Android Examples of acceptable searches include: How to center an image in Android How to change the font size in Android Adding another screen to an Android app What is not okay Using another person's solution as a reference/starting point for your solution 2 PROBLEM DESCRIPTION In this app you'll be building a simple app that lets a customer order ice cream, Here is an example A2 Starter A2Starter Ice Cream Shop Ice Cream Shop Today's Moon Track Today's favour, Moose Tracks 10 bet bunu Pre 10 Het want to 2 2 PLACE PLACE ORDER More he Total: 59.34 DESCRIPTION OF APP FEATURES REPRESENTING AN ICE CREAM FLAVOUR (10 marks) The app displays the current ice cream flavour for sale, Today's Flavour: Moose Tracks 10 Vanilla ice cream with peanut butter chocolate chunks left Price: $4.67 Example of the ice cream Navour The Ice Cream Flavour is represented in code as a custom Java class The class has the following properties and methods Ice Cream Flavour favor String desorption Sering Quantity Remaining in pro souble golfo Coutine quartty: double Given a quantity, the getTotalCost() function returns the price of the ice cream as a double When you app loads, Create an instance of the Brazillian Lighting ice cream favour Details on this favour are shown in the following table Update the user interface with the flavour name, flavour description quantity remaining. and price Assignment 2: Ice Cream Shop SUBMISSION INSTRUCTIONS For this assignment to be accepted, you must submit the following files 1. A zip file containing the your Android project. The file must be a zip, not a rar or 7zip 2. A screenshot of your app, running in either an emulator or real device. Accepted image types: png, jpg/jpeg. If you are using an emulator please demo your app on a Pixel 3 (or similar) emulator File Naming Conventions Zip file should be named a2-studentname-studentid.zip Screenshot should be named a2-studentname-studentid.png MARKING RUBRIC Class definition of an ice cream flavour: 3 marks Initializing and loading the flavour at app load: 2 marks Updating the display with the the flavour information: 5 marks Validating user input: 5 marks Displaying the order summary: 5 marks Total Marks20 marks 15% deduction will be applied to any submissions that have incorrect file naming, ACADEMIC INTEGRITY What is okay Using materials posted on the course website Searching Google for syntax related to Android Examples of acceptable searches include: How to center an image in Android How to change the font size in Android Adding another screen to an Android app What is not okay Using another person's solution as a reference/starting point for your solution 2 PROBLEM DESCRIPTION In this app you'll be building a simple app that lets a customer order ice cream, Here is an example A2 Starter A2Starter Ice Cream Shop Ice Cream Shop Today's Moon Track Today's favour, Moose Tracks 10 bet bunu Pre 10 Het want to 2 2 PLACE PLACE ORDER More he Total: 59.34 DESCRIPTION OF APP FEATURES REPRESENTING AN ICE CREAM FLAVOUR (10 marks) The app displays the current ice cream flavour for sale, Today's Flavour: Moose Tracks 10 Vanilla ice cream with peanut butter chocolate chunks left Price: $4.67 Example of the ice cream Navour The Ice Cream Flavour is represented in code as a custom Java class The class has the following properties and methods Ice Cream Flavour favor String desorption Sering Quantity Remaining in pro souble golfo Coutine quartty: double Given a quantity, the getTotalCost() function returns the price of the ice cream as a double When you app loads, Create an instance of the Brazillian Lighting ice cream favour Details on this favour are shown in the following table Update the user interface with the flavour name, flavour description quantity remaining. and price

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!