Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Android Programming...........Using Android Studio. In this App, you are going t

ID: 3600416 • Letter: A

Question

Android Programming...........Using Android Studio.

In this App, you are going to write an app to present Warriors’ roster.

http://www.nba.com/warriors/roster/  


Warrior's Roster:

1.Jordon Bell, number: 2, position: forward.

2.Andre Iguodala, number: 9, position: guard-forward.

3.Draymond Green, number: 23, position: forward

4.Quinn Cook, number: 4, position: guard.

5.Stephen Curry, number: 30, position: guard.

6.Damian Jones, number: 15, poistion: center

Required:

1.You are required to use Fragments .

2. Once the app is open, it should present a list of Warrior rosters with PNames and Numbers. You don’t need to include everyone on the official roster. It is good if you have five to seven players in your app’s list.  

3. Once an item in the list is tapped, the view should be switched to details of the player.

4. The detail view of one player should present :

a. The player’s photo which can be downloaded from the link above.

b. Player’s number

c. Player’s name

d. Player’s position

5. The first item of the list view should be your name. Once it is tapped, the detail view should show your name and email address. Pictures are not needed for this view.

[*] If your program cannot start, that’s a zero.

[5%] item in list view and Detail view of your name and email address.

[30%] for correct User Interface Appearance. Once it starts, it should show the list view. Must use fragment to do the homework

[35%] for correct listeners that can open detail view

[30%] for Correctly detail information of all players (five to seven players)

Explanation / Answer

include "FlashDrive.h"
using namespace std;
using namespace cs52;

void main( )
{
cs52::FlashDrive drive1( 10, 0, false );
cs52::FlashDrive drive2( 20, 0, false );

drive1.plugIn( );
drive1.formatDrive( );
drive1.writeData( 5 );
drive1.pullOut( );

drive2.plugIn( );
drive2.formatDrive( );
drive2.writeData( 1 );
drive2.pullOut( );

cs52::FlashDrive combined = drive1 + drive2;
cout << "this drive's filled to " << combined.getUsed( ) << endl;

cs52::FlashDrive other = combined – drive1;
cout << "the other cup's filled to " << other.getUsed( ) << endl;

if (combined > other) {
cout << "looks like combined is bigger..." << endl;
}
else {
cout << "looks like other is bigger..." << endl;
}

if (drive2 > other) {
cout << "looks like drive2 is bigger..." << endl;
}
else {
cout << "looks like other is bigger..." << endl;
}

if (drive2 < drive1) {
cout << "looks like drive2 is smaller..." << endl;
}
else {
cout << "looks like drive1 is smaller..." << endl;
}
}