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

  Networking and types of networking

This assignment explains the networking features, different kinds of networks and also how they are arranged.

  National and Global economic environment and ICICI Bank

While working in an economy, it has a separate identity but cannot operate insolently.

  Ssh or openssh server services

Write about SSH or OpenSSH server services discussion questions

  Network simulation

Network simulation on Hierarchical Network Rerouting against wormhole attacks

  Small internet works

Prepare a network simulation

  Solidify the concepts of client/server computing

One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.

  Identify the various costs associated with the deployment

Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.

  Describe how the modern view of customer service

Describe how the greater reach of telecommunication networks today affects the security of resources which an organisation provides for its employees and customers.

  Technology in improving the relationship building process

Discuss the role of Technology in improving the relationship building process Do you think that the setting of a PR department may be helpful for the ISP provider? Why?

  Remote access networks and vpns

safekeeping posture of enterprise (venture) wired and wireless LANs (WLANs), steps listed in OWASP, Securing User Services, IPV4 ip address, IPV6 address format, V4 address, VPN, Deploying Voice over IP, Remote Management of Applications and Ser..

  Dns

problems of IPV, DNS server software, TCP SYN attack, Ping of Death, Land attack, Teardrop attack, Smurf attack, Fraggle attack

  Outline the difference between an intranet and an extranet

Outline the difference between an intranet and an extranet A programmer is trying to produce an applet with the display shown in Figure 1 below such that whenever one of the checkboxes is selected the label changes to indicate correctly what has..

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