Given Case Scenario: "Suppose you are leading a project team to develop a “funny” mobile app upon a client request. This
Posted: Mon May 09, 2022 5:58 am
Given Case Scenario:
"Suppose you are leading a project team to develop a “funny” mobile
app upon a client request.
This app will be used by both the running coaches and their
coaching kids in primary schools, for
analyzing kids performance when they are learning running in both
indoor and outdoor sports
centers. In particular, the client wants to build the Android app
running on smartphones
supporting 5G and smart watches with GPS location tracking"
Java classes below are also given to be used in the implementation
stage:
public class AnaModel {// Model for data analysis
double[] aData; // Data for analysis
public double[] getData(){ // get and return analyzing data
//.. More details hidden, ignore these details
} public boolean anaData(){ // start analyzing data
//.. More details hidden, ignore these details
}
//.. More other details hidden, ignore these details
}
public class DView { // Class for viewing data
public void showData(double[] vD){ // showing data
//.. More details hidden, ignore these details
}
}
Your project team needs to further implement an Android activity
class in Java for analyzing
many runners, based on the Java RAM class above and the DView class
(code given in the given
case scenario section above, with some information comments).
Write this public Android activity class in Java, which:
o Has the class name RunAnaAct, and inherits from the class
AppCompatActivity
o Has two specific fields:
o The first one is a model field (an array of RAM type, named rDM)
representing models
for analyzing many runners.
o The second one is a view field (named rV of type DView) for
viewing runner data.
o Overrides the related callback method, when the activity is newly
created and launched, to
be the following:
o Create a proper object to assign to the first model field, an
array with size of your SID
for this field. Create and assign a new RAM object (use your
surname as the name and
your SID as the type of the object) ONLY to the first element in
this array.
o Overrides the related callback method, right before the activity
is being active and
interacting with user, to do the following:
o Create a proper object to assign to the second view field above,
and then show only the
first runner data of the model field (the first array element) with
this view field.
"Suppose you are leading a project team to develop a “funny” mobile
app upon a client request.
This app will be used by both the running coaches and their
coaching kids in primary schools, for
analyzing kids performance when they are learning running in both
indoor and outdoor sports
centers. In particular, the client wants to build the Android app
running on smartphones
supporting 5G and smart watches with GPS location tracking"
Java classes below are also given to be used in the implementation
stage:
public class AnaModel {// Model for data analysis
double[] aData; // Data for analysis
public double[] getData(){ // get and return analyzing data
//.. More details hidden, ignore these details
} public boolean anaData(){ // start analyzing data
//.. More details hidden, ignore these details
}
//.. More other details hidden, ignore these details
}
public class DView { // Class for viewing data
public void showData(double[] vD){ // showing data
//.. More details hidden, ignore these details
}
}
Your project team needs to further implement an Android activity
class in Java for analyzing
many runners, based on the Java RAM class above and the DView class
(code given in the given
case scenario section above, with some information comments).
Write this public Android activity class in Java, which:
o Has the class name RunAnaAct, and inherits from the class
AppCompatActivity
o Has two specific fields:
o The first one is a model field (an array of RAM type, named rDM)
representing models
for analyzing many runners.
o The second one is a view field (named rV of type DView) for
viewing runner data.
o Overrides the related callback method, when the activity is newly
created and launched, to
be the following:
o Create a proper object to assign to the first model field, an
array with size of your SID
for this field. Create and assign a new RAM object (use your
surname as the name and
your SID as the type of the object) ONLY to the first element in
this array.
o Overrides the related callback method, right before the activity
is being active and
interacting with user, to do the following:
o Create a proper object to assign to the second view field above,
and then show only the
first runner data of the model field (the first array element) with
this view field.