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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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