An open API service indexing awesome lists of open source software.

https://github.com/binghuan/mycurrencyconverter

Coding quest from Pay Pay
https://github.com/binghuan/mycurrencyconverter

android app assignment kotlin paypay

Last synced: 2 months ago
JSON representation

Coding quest from Pay Pay

Awesome Lists containing this project

README

        




MyCurrencyConverter

/* From extension vscode.github */
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

.vscode-dark img[src$=\#gh-light-mode-only],
.vscode-light img[src$=\#gh-dark-mode-only] {
display: none;
}

/* From extension ms-toolsai.jupyter */
/* These classnames are inherited from bootstrap, but are present in most notebook renderers */

.alert {
width: auto;
padding: 1em;
margin-top: 1em;
margin-bottom: 1em;
}
.alert > *:last-child {
margin-bottom: 0;
}
#preview > .alert:last-child {
/* Prevent this being set to zero by the default notebook stylesheet */
padding-bottom: 1em;
}

.alert-success {
/* Note there is no suitable color available, so we just copy "info" */
background-color: var(--theme-info-background);
color: var(--theme-info-foreground);
}
.alert-info {
background-color: var(--theme-info-background);
color: var(--theme-info-foreground);
}
.alert-warning {
background-color: var(--theme-warning-background);
color: var(--theme-warning-foreground);
}
.alert-danger {
background-color: var(--theme-error-background);
color: var(--theme-error-foreground);
}


body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
font-size: 14px;
line-height: 1.6;
}


.task-list-item {
list-style-type: none;
}

.task-list-item-checkbox {
margin-left: -20px;
vertical-align: middle;
pointer-events: none;
}





MyCurrencyConverter


=================================


A currency conversion app that allow a user to view a given amount in a given currency converted into other currencies.

(It's a coding challenge from PayPal)
Here is the requirements for the home assignment.


Table of Contents



Features



  • The user is be able to select a currency from a list of currencies

  • The user is be able to enter the desired amount for the selected currency

  • A list showing the desired amount in the selected currency converted into amounts in each currency


File Structure



APIs



Conversion Method



Control Flow



Test Cases



  • ExampleInstrumentedTest.kt

  • OpenExchangeRateServiceTest.kt

  • ExchangeRateDaoTest.kt



Illustration



DEMO