Reference no: EM132285646
Overview
You are required to create an app that utilises concepts taught up to (including) week 3 to meet a provided problem specification.
Learning Outcomes
The following course learning outcomes are assessed to some degree by completing this assessment:
K1. Understand constructs typical of many programming languages such as: variables, expressions, assignment, sequence, selection, iteration, procedures, parameters, return values.
A1. Design, develop, test and debug mobile apps from a given textual program specification.
S1. Analyse the input, processing and output needs of small programming problems.
Assessment Details
Overview of Situation
A event organiser service charges customers based on several different factors, which they want you to incorporate into an app that can be used to calculate how much they should charge a customer.
The first factor that matters is the attendees count of the event. If the attendees are less than 20, then the base rate will be $100.00, but if the attendees are 20 or more, but less than 35, then the base rate will be $150. If it is 35 or more, the base amount charged is $200 plus $5.00 for each attendee by which the parcel exceeds 35. (For example, an event that has 40, exceeds the 35 by 5. So $25.00 is added to the base amount for this event).
The second factor is distance from the organiser. If the distance is less than 50km, then the rate of additional charges is $0.50 per total kilometres. But if the distance is 50km or more, then the rate of additional charges is $4.20 per total kilometres.
Customers using the event organiser service can also optionally pay a very important persons (VIPs) fee to ensure greater care is taken with their experience of the event. The cost of this fee if it is chosen, is $530.
Required Behaviour of the App.
The app you design needs to address all of the following:
1. The user must be able to enter the attendees of the (next) event, and the distance from the event organiser.
2. The user must be able to indicate whether the event is a VIPs event (and thus be charged the VIPs fee).
3. The user must be able to request a quote of what the cost will be, but without actually going ahead with submitting the event. The rules given above must be followed to calculate the price. The user is not obliged to go-ahead with booking the event.
4. After seeing the proposed cost, it must be possible for the user to actually go ahead with submitting the event booking for it to be organised. When this occurs, the app needs to:
a. increase a variable noting the total cost of all events that have been actually submitted for organising, since the app started running.
b. increase a counter noting how many totally attendees have been actually submitted since the app started running.
c. display a message saying how many events have been submitted and what the total cost of those events has been, since the app started running.
d. Clear/Reset the input components so that they are ready for the next event's details to be entered.