December 2020

Write a program that reads a word from the user and then displays its phonetic spelling.

Write a program that reads a word from the user and then displays its phonetic spelling. [ad_1] A spelling alphabet is a set of words, each of which stands for one of the 26 letters in the alphabet. While many letters are easily misheard over a low quality or noisy communication channel, the words used […]

Write a program that reads a word from the user and then displays its phonetic spelling. Read More »

Write a main program that uses your recursive function to convert a non-negative integer entered by the user from decimal to binary.

Write a main program that uses your recursive function to convert a non-negative integer entered by the user from decimal to binary. [ad_1] In Exercise 82 you wrote a program that used a loop to convert a decimal number to its binary representation. In this exercise you will perform the same task using recursion. Write

Write a main program that uses your recursive function to convert a non-negative integer entered by the user from decimal to binary. Read More »

Write a program that implements Euclid’s algorithm and uses it to determine the greatest common divisor of two integers entered by the user.

Write a program that implements Euclid’s algorithm and uses it to determine the greatest common divisor of two integers entered by the user. [ad_1] Euclid was a Greek mathematician who lived approximately 2,300 years ago. His algorithm for computing the greatest common divisor of two positive integers, a and b, is both efficient and recursive.

Write a program that implements Euclid’s algorithm and uses it to determine the greatest common divisor of two integers entered by the user. Read More »

Create a Python program that reads one or more Python source files and identifies functions that are not immediately preceded by a comment.

Create a Python program that reads one or more Python source files and identifies functions that are not immediately preceded by a comment. [ad_1] When one writes a function, it is generally a good idea to include a comment that outlines the function’s purpose, its parameters and its return value. However, sometimes comments are forgotten,

Create a Python program that reads one or more Python source files and identifies functions that are not immediately preceded by a comment. Read More »