Copyright © Arizona Board of Regents Page 1 of 3 MIS 301: Data Structures and Algorithms Programming Assignment #2 Learning Objectives • Demonstrate the use of if/else/elif statements • Demonstrate...

find assignment attached


Copyright © Arizona Board of Regents Page 1 of 3 MIS 301: Data Structures and Algorithms Programming Assignment #2 Learning Objectives • Demonstrate the use of if/else/elif statements • Demonstrate the use of functions and conditional algorithms • Demonstrate use of Strings • Demonstrate the use of indefinite loops • Demonstrate good program structure Due Date Midnight, Wednesday, October 6 Programming Assignment #2 D2L Dropbox Assignment Overview (10 points) Write a program that prompts for a number and displays it in pentadecimal equivalent (i.e., base 15). Consider the algorithm below: For decimal number x: 1. Divide x by 15 and get the corresponding quotient q and remainder r. From the following table, find the pentadecimal value n that corresponds to the remainder r. Remainder value (r) Pentadecimal value (n) 1-9 1-9 10 A 11 B 12 C 13 D 14 E . 2. Repeat step 1 until you get a quotient of zero. 3. Write out the pentadecimal values in the reverse order to get the pentadecimal equivalent of decimal number x. Copyright © Arizona Board of Regents Page 2 of 3 Example Input: X = 387 Iteration # Decimal Number (x) Quotient (q) Remainder (r) Temporary Result 1 387 25 12 C 2 25 1 10 AC 3 1 0 1 1AC Pentadecimal equivalent: 1AC Sample Output Please enter a base 10 (decimal) number to convert: 387 The pentadecimal equivalent of 387 is 1AC Grading Rubric Grading will be based on the criteria provided in the grading rubric below. a) Program doesn’t execute. (no credit for program) b) Failure to submit Word document. (no credit for program) c) Inconsistencies in content between the source code submitted in the Word document and the source code in the screen shots. (no credit for program) d) Late submission of Word document. (instructor’s discretion) e) Use of components outside of constructs not covered before Class 13. f) Failure to submit all three components of program submission: (1) source code, (2) screenshots of the source code, and (3) screenshots of execution results. (-2 points) g) Failure of program to produce correct output. (-2 to -4 points) h) Failure to provide significant documentation so program logic is easy to understand. (-1 point) i) Failure to follow naming conventions. (-1 point) Assignment Submission Instructions When your file is ready, submit it for grading to the appropriate assignment drop box as indicated below. • Navigate to the Content ->Programming Assignments->Programming Assignment #2 area of D2L. • Click on the Programming Assignment #2 assignment drop box title. • Click on the Add a File button. • Find the file you would like to upload. If you are using the most current version of your internet browser, you can drag and drop the file into the target area of the Add a File window. You can also use the Upload button to browse for and select the file you would like to add. • Once you have selected your file(s), click the Add button in the bottom, left corner of the window. • Click on the Submit button to complete the file submission. Copyright © Arizona Board of Regents Page 3 of 3 • Upon successful assignment submission, you will receive a confirmation email. For further details on submitting assignments, please refer to the https://help.d2l.arizona.edu/content/students- assignmentssubmit website. Please note: If you make a mistake (such as leaving out part of the assignment, send the wrong files, etc.) and the Assignment tool won’t let you submit, then you must contact the instructor and describe what happened. https://help.d2l.arizona.edu/content/students-assignmentssubmit https://help.d2l.arizona.edu/content/students-assignmentssubmit Learning Objectives Due Date Assignment Overview (10 points) Grading Rubric Assignment Submission Instructions
Dec 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here