Skip to content

c4882488/Exchange-Rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OOP Exchange Rate

Introduction

Designing an exchange rate conversion program using python OOP

Description

OOP design mode, create exchange rate conversion, set the exchange rate, set the exchange rate currency, update the exchange rate data, and display the history of the meeting

img1.jpg

Getting Started

  1. Download file

  2. install python packget

    pip install wgetpip install wget
    

Run main.py to enter the exchange rate conversion menu, enter 1~6 to use the functions

Screenshot 2022-01-29 161245.jpg

Enter 1 to start the exchange

img2.jpg

Enter 2, set your own exchange currency

img3.jpg

Enter 3 to set the displayed exchange rate

Enter 4 to delete the displayed exchange rate

img4.jpg

Enter 5 and update the exchange rate

img6.jpg

Enter 6 to display the exchange history

img5.jpg


Design Concept

Substrate type included(System)
  1. Variables

    • Exchange Rate Information(_Currency = [])

    • My Exchange Rate(MyCurrency = 'NTD')

    • Displayed exchange rates(MyShowCurrency = ['USD', 'HKD', 'MYR', 'CNY'])

    • Historical Exchange Rates(MyhistoryCurrency = [])

    • File Name(files = '[email protected]')

    • Now Time(nowDate = datetime.now())

  2. Functions

    • Set up exchange rate information(makeCurrency)

    • Set the output string length(makeString)

    • Exchange rate conversion(getExchangeRate)

Subcategory
  1. User Information(User)—Included functions

    • All available exchange rates(getAvailableCurrency)

    • My Exchange Rate(getMyCurrency)

    • All new display rates available(getCurrency)

    • Set my exchange rate(setMyCurrency)

    • New Display Rate(setShowCurrency)

    • Delete Show Rate(setDeleteShowCurrency)

  2. Historical Record(history)—Included functions

    • New Historical Records(historyCurrency)

    • Historical Records(gethistoryCurrency)

    • Manual update of data(updateCurrency)

Use of Resources

Bank Of Taiwan


中文

Releases

No releases published

Packages

No packages published

Languages