An alien species use 14-based numbering system.

Assignment Help Basic Computer Science
Reference no: EM13977261

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.

Reference no: EM13977261

Questions Cloud

What time need to strike the rod order to be in equilibrium : A 3 m rod is rotating with an oscillating angular momentum given by sin(2t). If a small rocket with oscillating linear momentum 10-cos(2t) is fired at t = 0, at what time will it need to strike the rod in order to be in equilibrium?
Write the commands to remove all the space character : Write the commands to remove all the space characters stored in the shell variable text. Be sure to assign the result back to text. First use tr to do it and then do the same thing with sed.
Why did the company report a foreign currency loss : What is the company's objective in reporting Normalized Net Income? Do you agree with the company's assessment that it has a 15 percent increase in first-quarter earnings pershare?
Which is an obstacle to economic growth : Which of the following is an obstacle to economic growth? According to the text, as compared to rich countries, most of the poor countries do not fare well because:
An alien species use 14-based numbering system. : 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 th..
What are expectations regarding strength of us economy : Create a 4 to 6-slide PowerPoint presentation including detailed speaker notes in which you include the following: What are expectations regarding the strength of the U.S. economy in the next 2 years? How do changes in the value of the U.S. dollar im..
What is the current in the wire : The terminals of a 0.400V watch battery are connected by a 90.0 m long gold wire with a diameter of 0.100 mm. What is the current in the wire?
Managing users and permissions : For this Critical Thinking Assignment, you will use the SQL Server instance named SQLSERVERCSU and the HandsOnOne database and tables that you created in previous Critical Thinking Assignments. The objective of this project is to practice creating a ..
How many places can you put lens to form well-focused image : A 3.0-cm -tall candle flame is 2.0 m from a wall. You happen to have a lens with a focal length of 18cm . How many places can you put the lens to form a well-focused image of the candle flame on the wall?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Function 2n3 - 18n is o(n3)

Argue why the following is true:Function 2n3 - 18n is O(n3) and also it is O(n4) but it is not O(n2log n).

  Explain the difference between frequency division multiplex

Explain the difference between frequency division multiplexing

  Information systems along with internet security necessary

Are Information systems along with Internet security necessary

  Write a program to determine the answers of the square root

How do you write a program to determine the answers of the square root of 30, the sine and cosine of 100, the value of the floor, ceiling, and round of 44.7, and the larger and the smaller of the character K and the integer 70? In Java code

  The caption element provides caption for image true or false

The caption element provides a caption for the image in a figure element. True or False

  Program to find the sum of all the multiples

Write a program to find the sum of all the multiples of 3 or 5 below N. for example: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

  See hidden file by looking at floppy using windows explorer

Would you see hidden file by just looking at the floppy using Windows Explorer? Why or Why not? What other tools could you use to retrieve evidence?

  Assembly program to compute division of two integer numbers

Write a program in assembly with the necessary comments that computes division of two integer numbers (Y by X) by consecutively subtracting X from Y.

  Effects of advertising presentation

Research the Internet to analyze how that product or service has been advertised. Prepare a 15- to 20-slide Microsoft® PowerPoint® presentation in which you investigate the role of advertising in a culture of consumerism. Be sure to discuss the follo..

  Calculate and display the total retail value of all products

It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the application should stop looping display the final results.

  Find standard deviations

A small bank that heretofore did not use a scorecard wanted to determine whether a score-card would be advantageous.  find standard deviations.

  Xyz invitation printing have decided to merge into company

ABC Invitation Design and XYZ Invitation Printing have decided to merge into one company, A2Z Invitations. ABC is a virtual company with a proprietary website that allows customers to do some preliminary work on invitations and then consult with a de..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd