A new London-based challenger bank called Wolving is launching in a few short months: Python and Java Coding Assignment, Penn, Malaysia
University | University of Pennsylvania (Penn) |
Subject | Python and Java Coding |
The marking scheme for this task is on Canvas, make sure you check back regularly as you work through the assessment.
- Python
A new London-based challenger bank called Wolving is launching in a few short months. They are in the process of building their website and have asked you to develop a program for prospective customers to show them how their savings could grow over time.
Interest is usually paid every year; however, the bank has asked that you incorporate compound interest to highlight their unique offerings when compared to competitors.
The idea behind compound interest is that the interest you earn each year is added to your principal (starting amount) so that the balance doesn’t just grow, it grows at an increasing rate. This is one of the most useful concepts in finance.
It is the basis of everything from personal saving plans to long-term growth in the stock market and accounts for the effects of inflation. It is thought to have originated in the 17th century and can be thought of as ‘interest on interest’.
- Java
You will create a program that converts a decimal to HEX, OCT, and Binary. Your program should ask the user first what type of conversion they want to do. The conversions should be done in separate functions and should return a String.
1. Print the following menu:
- To convert a decimal to HEX, please type “1” and hit enter.
- To convert a decimal to OCT, please type “2” and hit enter.
- To convert a decimal to Binary, please type “3” and hit enter.
2. After the user has chosen an option, they should be then prompted to type in the decimal number. For this program, we will be using an 8-bit binary system, so you do not need to worry about any number greater than 127 and lower than -128. These should be the limits that you check at the beginning, if the decimal value does not fit in between those thresholds, print a sensible error message to the user (give them an explanation of why the error has occurred). Once an appropriate value has been inputted, your program should call one of three functions; convert to hex, convert to oct or convert to binary. To create your functions, you can use the following code below to help you make a start:
- String ToHex(int decimal number){//do the conversion
//return HEX value which has been derived from the
//decimal number – Remember, this needs to be a string}
- String ToOct(int decimal number){//do the conversion
//return Oct value which has been derived from the
//decimal number – Remember, this needs to be a string}
- String Tobin(int decimal number){//do the conversion
//return Binary value which has been derived from the
//decimal number – Remember, this needs to be a string}
Are You Searching Answer of this Question? Request Malaysian Writers to Write a plagiarism Free Copy for You.
Get Help By Expert
Looking for an affordable way to get a top-quality assignment on Python and Java Coding? Get expert help from malaysiaassignmenthelp.com. we have a panel of native writers who can provide your assignments according to your university guideline at an affordable price.
Recent Solved Questions
- BUSM50003: Explain your research philosophy and methodologies and In particular, comment on the research design: Big Data Research Paper, SU, Malaysia
- PFS 2143: Discuss from the journal and you can add other discussions from other sources to support your issues: Corporate Finance Assignment, UNISEL, Malaysia
- FIN30014: Russia’s failure to pay a slice of interest on one of its bonds will trigger $2.5bn of insurance-like contracts used to protect against: Financial Risk Management Case Study, SUT, Malaysia
- The owners of the company are eager to have a high-quality website and have asked you to provide them with information: Website development Report, NEC, Malaysia
- EBQ2054 Explain the methodological contribution that has been applied in the research with supporting arguments: Business Research Method Assignment, UM, Malaysia
- BMK311: Smart Home Technology was introduced in the early 2000s. Everyone in the world began talking about the Internet of Things: Product Management Assignment, WOU, Malaysia
- LAW 1020: Danny bought Levi’s jeans from Levi’s shop in Shah Alam, Selangor that specialized in selling goods of that description: Malaysian Legal System Course Work, IIUM, Malaysia
- Fast Energy Generation Prediction Using Automated Solar PV System Design Optimization: Dissertation, Malaysia
- Blockchain technology has gotten a lot of attention around the world because it has the potential to change how supply chains: Technical Planning Research Paper, UMS, Malaysia
- JUS101: Kursus keusahawanan bertujuan memberi pendedahan kepada pelajar mengenai bidang keusahawan dan: Teras Keusahawanan Assignment, USM, Malaysia