0% found this document useful (0 votes)
334 views7 pages

Information Technology Bait2073 Mobile Application Development

The document contains details of an exam for the course BAIT2073 Mobile Application Development held on 21 December 2021. It includes a student declaration signed by Yap Wai Yen with student ID 21WMR04792. The exam contains two questions, with space below each for answers and examiner marks. Question 1 asks about appropriate data storage methods for different types of data in a mobile application called iPasar. Question 2 asks about uses of sensors in a mobile device for functions in the iPasar application.

Uploaded by

WAI YEN YAP
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
334 views7 pages

Information Technology Bait2073 Mobile Application Development

The document contains details of an exam for the course BAIT2073 Mobile Application Development held on 21 December 2021. It includes a student declaration signed by Yap Wai Yen with student ID 21WMR04792. The exam contains two questions, with space below each for answers and examiner marks. Question 1 asks about appropriate data storage methods for different types of data in a mobile application called iPasar. Question 2 asks about uses of sensors in a mobile device for functions in the iPasar application.

Uploaded by

WAI YEN YAP
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

KOLEJ UNIVERSITI TUNKU ABDUL RAHMAN

FACULTY OF COMPUTING AND INFORMATION TECHNOLOGY

ACADEMIC YEAR 2021/2022

DECEMBER EXAMINATION

INFORMATION TECHNOLOGY BAIT2073


MOBILE APPLICATION DEVELOPMENT

21 DECEMBER 2021 TIME: 9.00 AM – 12.00 NOON (3 HOURS)

STUDENT’S DECLARATION OF ORIGINALITY


By submitting this online assessment, I declare that this submitted work is free from all forms of
plagiarism and for all intents and purposes is my own properly derived work. I understand that I have
to bear the consequences if I fail to do so.

Final Online Assessment Submission

Course Code: BAIT2073

Course Title: Mobile Application Development

Signature: yif

Name of Student: Yap Wai Yen

Student ID: 21WMR04792

Date:21/12/2021

QUESTION FOR EXAMINER’S USE ONLY


NUMBER

Total
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
Question 1

ANSWER MARKS

Share Preference
The user's email can be stored through Share Preference, because Share
Preference is used to store a small collection of key values. Shared privately or
publicly. For example, when users register for an iPasar application account, they
need to register with their email and password to log in. Therefore, we can use
Share Preference to store 1 user account by 1 email and 1 password, so each user
will have their own unique account. In addition, the data remains the same
throughout the session, so when the user exits the application and logs in again
next time, the system will automatically fill in the input fields so that the user can
log in to the system very quickly.
Data Files
Images of all live animals, plants, and fresh food sold in the iPasar app can be
stored using data files. This is because the data file can read and write large
amounts of data sequentially from beginning to end without skipping. It can store
text, video, image, etc. For example, when we open the iPasar app, we can see
many recommended products' pictures on the screen. Users are able to view these
images to find what they want and decide which one to buy among the different
sellers, because some products are more attractive and prominent in design. In
addition, data files can also be used to store user receipts. For example, various
receipt information such as the total amount to be paid, the amount of changes,
and the amount paid can be stored in a PDF file and sent to the user after the user
completes the purchase. As a result, the users can download their receipt on the
phone to view their payment details.
Database
We can use the database to store records of reserves or purchases of products.
One type of database is called SQLite. This is recommended because the
purchase history or purchase record involves many different data, such as product
name, seller name, etc. All these types of data are repeated for each user, which
means that each user stores the same type of data, such as the number of
purchases, the name of the item paid for each time, etc. Therefore, using a SQLite
database can help users store data in a structured format. For example, the user's
first purchase on December 21, 2021 will be stored at the top, and subsequent
purchase history records (December 22, 2022 and after) will be stored in
sequence. Therefore, the stored data will look like a form of record, so users can
easily view their purchase history and understand which goods or products they
have purchased before, because all records are well structured.
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT

(i) Async tasks are defined by calculations that run on a background thread and
whose results are published on the UI thread. It takes an Input , performs Progress
and gives an Output. Async tasks are used to avoid running heavy tasking on a
background process before returning the result to the UI.

(ii) Volley is an HTTP library that makes the network connection of Android
applications easier and, most importantly, faster. Volley is available on GitHub. For
example, when displaying search results, it is not suitable for large downloads and
streaming. The application can determine and cancel the priority of the request
through interception.

Foreground processes contain the applications that the user is working on while
the background processes contain the applications that are behind the scenes,
such as certain operating system functions,accessing the network or printing a
document. For example, when the user registers a new account into iPasar, they
need to key-in their email address or user name and password, this is a foreground
process. Meanwhile, the database will store their security details for further login
purposes and this is the background process. Beside that, the farmers that give live
streaming to consumers, they must switch on wifi to share the real-time connection.
The wifi connection is such a background process and the live steaming is such a
foreground process.

Mix-and-bang is the combination of the do-it-yourself (DIY) and Subscribe where it


contains both DIY and Subscribe features. For Do-it-yourself (DIY), it is a server
that you build your own. Since it is an own-built server, it provides greater security
to protect the data. Those who want to access the data need to pass through the
owner's security gateway. Users who purchase goods online may reveal most of
their personal information, such as work location, residence, email, phone number,
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
etc. All this information is the user's private information, and other people cannot
easily obtain it. Otherwise, malicious people may use this information to do bad
things that can benefit them but harm users.

At the same time for Subscribe, it allows suppliers to increase or decrease


machine capacity based on usage. For example, the widespread adoption of the
application will greatly increase usage, so suppliers can add machine functions like
a New Year celebration. The number of people buying fresh food will definitely
increase a lot. Some people will install this app on purpose to purchase it. As a
result, the usage of iPasar applications will increase dramatically. At the same time,
the supplier can also reduce the capacity of the machine when the utilization rate is
low. As a result, iPasar can pay suppliers even less after New Year’s celebrations
and weekdays without promotions. The utilization rate must be lowered a lot,
because many people are unwilling to buy so much fresh food to stock up at home.
They would rather wait for another celebration and buy a lot of fresh food to cook at
home.

Question 2

ANSWER MARKS

Fingerprint sensor (Screen)


This sensor can be used for login purposes, which means that users of the iPasar
app (including farmers) can choose to login to the app using their fingerprint or ID
and password. If the user chooses to use the fingerprint sensor function to log in to
the system, the user needs to save his fingerprints in the system database first,
and then the system backend will store the fingerprints identified on the screen
before the fingerprint is detected when the user touches his fingerprints. The
fingerprints obtained are similar to the fingerprints stored in the database. If they
are the same, the user can successfully log in to the system, otherwise the login is
refused. Therefore, it is safer to log in to the application with a fingerprint sensor,
because fingerprints are unique, and everyone’s fingerprints are different.
Therefore, users don’t need to worry that others can log in to the app to view their
details when they lose their phone

Camera (image sensor)


iPasar app can use the camera of a smartphone to further enhance the farmer
experience. The sensor can be used to display the farmers’ live streaming that the
farmer wants to sell with providing the item details also, which means that the
iPasar application provides the function of an AI virtual shopping assistant chatbot,
and it supports image search. For example, if the user sees something very
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
interesting from the live streaming, but he or she does not know what the item is
called, he or she can capture a picture of the item and send it through AI Chatbot.
Then, the AI chatbot will help find a list of items that are very similar to the items in
the picture sent by the user, and then send it as a link to the user when found. After
that, the user can click on the link to view all the items he is interested in, but he
does not know what it is called. Therefore, the farmer does not need to reply all the
audiences who are facing the problem of not being able to identify the item.

Voice Sensor
The sensor can be used to answer various questions that the farmer needs to
search for orders, which means that the iPasar application provides the function of
AI Virtual Shopping Assistant chatbot where it supports the function of voice
recording and not only restricted to text message only. For example, the farmers
want to check their monthly total sales revenue, users can record the messages
they want to query, such as "Can you please show me the total sales of last
month?" by using the virtual shopping assistant AI chatbot. Then the AI chatbot will
display the farmer’s total sales revenue with all the orders made by last month.
Therefore, farmers who are not good at typing or writing in any language can
directly record voice messages for help.

(i) The location service allows consumers to purchase the products they want by
just staying at home(delivery).The application can roughly detect the location of the
item so that the consumer can always look at their orders. Therefore, the
application can immediately update these address locations in the UI to notify the
user that his items have arrived at the address location, and then the user can
know that his items are approaching his home.

(ii) I would recommend iPasar to use a wireless network compared with the
Global Positioning System(GPS). This is because iPasar is not a turn-by-turn
navigation application.
Accuracy
iPasar does not need to know that the user wants to send his items to his house or
office at the exact location in front of his house, behind his house, or a few meters
away. It only needs to know that the user wants the address of the location where
the item was sent. For example, the address of his house and office. Therefore, the
wireless network is more than enough for accuracy.
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
Power consumption
GPS consumes about the same amount of power, but it is obviously more accurate
than WiFi, and searching for unconnected WiFi hotspots also requires power.
However, as we mentioned above, iPasar does not need to have that kind of high
accuracy to know the exact location to deliver. Therefore, wireless networks which
consume lower power consumption is a better choice than using GPS.
Update interval
The wireless network can detect the location faster than GPS. When the items
purchased by the user are sent from the starting location (farmers location) to the
destination (the user's location), the application can roughly detect the location of
the item. Walk all the way until you reach your destination. Therefore, the
application can immediately update these address locations in the UI to notify the
user that his items have arrived at the address location, and then the user can
know that his items are approaching his home. For example, the item will pass
through locations A, B, and C before reaching the user's home. If the item arrives
at location B, the application will record and update the location of the Vesco retail
store and the address of B in the UI.

(i) Network card. The farmers need internet connection to post all their products
into the apps and also provide live streaming to promote their products. Besides
that, they also need a wireless network to view consumers’ location for the delivery
purpose. Meanwhile, the consumers also need a network to access the iPasar app
even for the login part, searching part, and order parts.

(ii) Yes. Since the iPasar has a live streaming selling feature, therefore, the farmers
have high battery usage to go through their live streaming. They need to switch on
the wifi and camera at the same time. Meanwhile, their live stream might be 2hours
and above, therefore, the desktop operating system is suitable for farmers. Besides
that, the consumer is also more convenient and efficient to use iPasar since it is
not only processed on mobile which means they have multiple devices can use
iPasar.
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT

E-commerce
The iPasar mobile app is an app that focuses on buying and selling fresh food,
allowing users to place orders through this mobile app. The user can use this
application to search for the food he or she wants to buy. If he or she is worried
that the product he or she wants is sold out, he or she can also use this application
to pre-order the product. In addition, he or she can also Use the artificial
intelligence virtual shopping assistant chatbot service to query any information
about the product to learn more detailed information about the product he or she
wants to buy. If he or she finds a cheaper or better quality product in the same
category than what he or she wants, he or she can switch to the new product he or
she found. Finally, the user can place an order for the goods he or she wants
through the payment method he or she wants.

You might also like