GithubHelp home page GithubHelp logo

final-assessment's Introduction

Final Assessment

This is designed to run with Android Studio with Unit Testing support enabled in Android Studio's Gradle settings.

Importing

Import the project into Android Studio by selecting Import Project and selecting the project's build.gradle. When prompted, you can pick the default gradle wrapper.

Running Tests

To run the test, open Android Studio's Build Variants pane and change the option Test Artifact to Unit Tests. You can then right click on Unit1AndroidAssessmentTests and run the tests.

Your run configuration should look like this:

Specs

1. Pace Calculator

Create a Fragment using the provided layout fragment_pace_calculator.xml. Implement the following logic for the pace calculator:

  • The user will input data for two of the three variables, distance, time, and pace. When the user presses "Calculate", the third variable will be calculated and filled in.
  • If the user specifies data for zero, one, or all of the variables, do nothing.
  • If the user specifies invalid data for any of the variables, do nothing.

2. Roster

Create a list of students using a custom list adapter and the list of students provided in ListActivity.java. Each list item should use the provided layout listitem_member.xml. Implement the following functionality:

  • The list should be sorted alphabetically.
  • The upper right button toggles between "Last, First" and "First Last" (e.g. "Ravenclaw, Rowena" and "Rowena Ravenclaw"). The sort should reflect the current name display, meaning it should be sorted by last name in "Last, First" mode and by first name in "First Last" mode.
  • The left button toggles the background color for each list item. When colors are shown, the background color should be the color specified for the student's house in colors.xml.
  • Each of these should be stored as a preference, so that they are saved between runs of the app.

3. Library System

  • Create a SQLite database to hold the data in the two JSON files in data/. (Hint: look at book id 14 for a list of all the fields for a book.)
  • Provide the implementations for the function stubs in LibraryActivity.java.
  • When the user provides the parameter in the input box (either a name or an ISBN) and presses a button, call the corresponding function and show the results in the TextView. The format is specified below.

final-assessment's People

Contributors

robertjli avatar aliyamerali avatar theaulait avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.