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

  Describe alternate paths or actions in bank-s account

Describe alternate paths or actions that could have been taken, and why those alternate actions would have been ethical or not.

  Understanding of computer hardware-compatible architecture

The purpose of this assignment is for you to test your understanding of computer hardware, compatible architecture, and system requirements.

  How volvo car corporation transforms data into knowledge

Use at least three (3) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources

  Network operating systems

Explain why network operating systems were phased out when distributed Operating systems gained popularity.

  How do you determine the type of malware

How do you determine the type of malware that is present on the computer or device and provide a rationale for doing so? In your opinion, do you think that the vulnerabilities can be minimized in the future

  Create a comprehensive security policy for the company

Demonstrate an understanding of existing and emerging information technologies and strategic impact on organizational operations and evaluate the issues and challenges associated with information technology integration.

  Implement for devices accessing the network via wireless

A client has asked you to provide details on the installation and configuration of a small business based wireless network. A plan of the client's business is provided below with the location of the phone line access point for the business.

  Transposition technique to encrypt a message

You have been hired by a local company to consult with its security staff on encryption techniques. The staff has not been formally trained, so you will be demonstrating the principles of encryption through some simple exercises.Use a 2-stage transpo..

  Write a program to print duplicates in a string and count

1. write a program to print duplicates in a string and their count.

  Generate a set of input test values

Generate a set of input test values.

  An economist for the vanda-laye corporation

You are an economist for the Vanda-Laye Corporation, which produces and distributes outdoor cooking supplies. The company has come under new ownership and management and will be undergoing changes in its product lines and operating structure.

  Wrtie an alter table statement that adds two new check

Wrtie an Alter Table statement that adds two new check constraints to the invoices table of the ap database.

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