MD Web Technologies

Category -> Software

Categories: Java, Math Solutions, Software

The Problem: The sum of the numbers from 1 to n can be defined recursively as follows: The sum from 1 to 1 is 1. The sum from 1 to n is n more than the sum from 1 to n-1. Write a int-method named sum that accepts an int parameter, n, and recursively calculates and   .... Read More

Word game solution in Java

Posted November 4, 2019

Categories: Java, Software

Programming a word game is a common early challenge in most programming instruction. Here's a word game along with a solution which reads in content and produces output. There are many ways to tackle this problem, so feel free to share your thoughts. Word Game: Write a program that plays a word game with the user. The program should ask the user to enter the following:   .... Read More

Categories: Software, Software Development

Open Source Case Study: WordPress WordPress, an open source website solution, offers clients many advantages as the website platform. Here are six important features and benefits of utilizing WordPress: Open Source. Completely free for commercial or private use, with hundreds of volunteers contributing to evolution and improvement of the WordPress core. User Friendly  .... Read More

Using Python: Mortgage Amortization

Posted February 19, 2018

Categories: Financial Calculator, Python, Software, Software Development

Today's post offers another tool for financial calculations using Python. The program offered here takes three items as input; (1) the principal amount of the mortgage, (2) the annual interest rate, and (3) the term of the loan in years. The program outputs the monthly payments, detailing the amount paid for interest and principal each month of the mortgage for the entire term of the loan. At the end of the output, the user is offered totals for interest and principal paid over the term of  .... Read More

Using Python: Finding Divisors

Posted February 9, 2018

Categories: Math Solutions, Python, Software

Today's post is admittedly a more basic variety - using Python to find the divisors of numbers. Python has proven itself very adept in the rapidly growing world of data science. Students are finding their way into introductory Python programming more and more. The following program may help point one of them in the right direction. Of course, it remains for them to use that direction to develop their own original work. Enjoy the program and, of course, feel free to email me at martin@mdbytes.c  .... Read More

Gain on Sale: With Python

Posted December 28, 2017

Categories: Financial Calculator, Open Source, Python, Software

Our first post in our codex library is from my Python collection - one of my first Python efforts. The following Python program calculates the gain or loss on a stock purchase or sale. The program welcomes the user, explains the program, obtains inputs, makes calculations and produces output for the user. # Goal is to determine profit from stock transaction # Welcome user and state purpose print('WELCOME TO OUR STOCK PROFIT CALCULATOR!') print(' ') print('This program save you time and  .... Read More