An alien species use 14-based numbering system their ten


Objectives:

  • Practice string, loop, and modular design with functions.

An alien species use 14-based numbering system. Their ten digits, 0 through 9, are the same as our decimal system. They use A, J, Q and K to represent decimal 10, 11, 12 and 13, respectively. They hire you to write a program to do the summation of their two numbers.

The program should prompt users for two 14-based numbers and then display the summation of those two numbers. The output should also be 14-based. (They are unwilling to learn our decimal systems!) For example, if inputs are 17 and 96, the output should be AK.

User interface specifications:

  • Input
    • The program prompts users fortwo 14-based numbers.
  • Output
    • A14-based numberthat is the sum of the two input 14-based numbers.

Code specifications:

  • The first comment line contains the name of the script file you submitted for grade.
  • The header comment lines at the top of the file contain a brief description of the program. The description should be one or 2 lines long describing the purpose of the program.
  • Partition the task into smaller subtasks and implement each subtask with function(s). Each function must have comment lines describing its functionality, inputs, and outputs, as applicable.
  • Your program must have a "main" function to aggregate the decomposed subtasks as shown in the loan example in class. You also have to include comment lines in your "main" function to describe the logic or flow of your solution to the whole problem.
  • Finally, don't forget to use the following idiom to call your "main" function within your program. 

            if __name__ == "__main__":

                    main()

  • Usedescriptive variable names.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: An alien species use 14-based numbering system their ten
Reference No:- TGS01283664

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)