Write the class implementation

Assignment Help Computer Networking
Reference no: EM132848232

QUESTION 1

MyCab is a private transport company which offers taxi service in Mauritius. In order to attract more clients, it would like launch a new mobile application to allow users to easily book a ride with the company. As an android mobile developer, you have been assigned on this project.

(a) Explain, showing your reasoning and by highlighting the importance of API level, which API level would you use to create this app.

The main feature of the app is to allow users to book a ride by providing the following information:
- First name and last name of the user
- Date and time of the ride
- The pick up location
- The drop off location
- The email and phone number of the user

The information would be stored on the device. A built-in algorithm will then use this information to determine the price of the fare. The app should also allow the user to cancel his ride.

(b) By making an analysis of existing mobile storage solutions, explain which one would you use to store this information.

(c) (i) Write the java code to create a class called Ride with setters and getters for the following properties:

Property Datatype

rideId int
firstName String
lastName String
date String
time String
pickUp String
dropOff String
email String
phone String

(ii) Write the class implementation that allows you to perform the create ride and delete ride operation mentioned above using an SQLite database. You may use the code snippet as per Figure1 in Annexure sent by mail.

(d) The company has asked to add a new feature: from the main activity, the user should be able to view all the rides he has booked and cancel them. Your co-worker Sam is working on this feature. However, when he runs the app, the list of booked rides does not appear.
The main activity has only two methods as shown in the code snippet as per Figure2 in Annexure sent by mail.

Using your knowledge about activity lifecycle, explain what is he doing wrong and how can he solve this problem. You may use diagrams and code snippets to support your answer.

Attachment:- Assessment Annexure.rar

Reference no: EM132848232

Questions Cloud

HI6006 Competitive Strategy Assignment : HI6006 Competitive Strategy Assignment Help and Solution - Holmes Institute, Australia - Assessment Writing Service - Essay - Key Strategy Development Tools
Calculate the correlation between x and y : a. Calculate ¯ mean of xand ¯y as well as standar deviation of (x) ands(y). b. Calculate the correlation between Xand Y.
Find the characteristic function of an average of n : The characteristic function of the standard Cauchy distribution is c(t) = e-It. Use rule (iv) from lecture 3 (which works for both MGFs and CF's)
What is the percentile rank for a student : a. What percentage of students will score 339or better on the verbal subtest of these entrance exams? b. What is the percentile rank for a student with a score
Write the class implementation : Write the class implementation that allows you to perform the create ride and delete ride operation mentioned above using an SQLite database
Find the expected count and the contribution : Find the expected count and the contribution to the chi-square statistic for the (Treatment, Strongly Agree) cell In the two-way table below.
Describe the sample space of experiment : Suppose that a fair coin is tossed repeatedly and independently until both a head and a tail have appeared at least once.
Probability that the sample proportion will differ : The analyst plans to select the random sample of 500 pairs of jeans and note the proportion of imperfect pairs. If the actual proportion
What are moving averages in forecasting : Why most forecasting error measures use either the absolute or the square of the error?

Reviews

Write a Review

Computer Networking Questions & Answers

  Technical term paper -network design

The Technical Term Paper will include the detailed response to the network design request. The document will be submitted in MS Word and will be between 10-15 pages with graphics embedded within the document.

  Discuss about the communication protocols

Folklore says that operating systems come and go while protocols last forever. Test this axiom by surveying your local computing site to see whether operating.

  Find a bit-inverter turing machine

Find a Turing machine that recognizes the set of palindromes on {0, 1}*, that is, the set of all strings in {0, 1}* that read the same forward and backward.

  Define an extended service set

Define an extended service set. Is a distribution system a wireless network? Briefly describe the five IEEE 802.11i phases of operation.

  Configure packet analysis tool to analyze wireless traffic

Configure your chosen packet analysis tool to analyze wireless network traffic. Only capture legally permissible traffic such as your own home wireless traffic.

  Research network simulation software tools

Why the software you consider to be the best from a learning perspective and What this product might be missing that others

  Display the color graph of the monastery liking network

Display the color graph of the monastery liking network in which you modified the nodes to indicate the novice monks' attributes. Describe what you observe

  Identify the various uses for http and https

Identify the various uses for HTTP and HTTPS, and justify the use of one over the other. Include two examples to demonstrate the use of each protocol.

  Paper on ethernet networking

Research paper should be on Ethernet Networking related to my specific subject which is Telecommunications and networking

  Estimate the maximum aggregate io transfer rate in this

question a 32-bit computer has two selector channels and one multiplexor channel. each selector channel supports two

  Describe the company network and interconnection

Describe the company network and interconnection

  Give an illustration of a software system for which

question 1 give an example of a software system for which developing a prototype would result in saving a significant

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd