Order Number 45471455714
Type of Paper
Essay Writer Classification Level
Undergraduate
Style of Writing
MLA/APA/CHICAGO/
Sources and References 5
Number of Pages
4
Paper Instructions
CSCI 457 Assignment 2 – Hexadecimal Calculator Implement a hexadecimal calculator for iOS. Requirements:
• The calculator should support 4 basic arithmetic operations: + – * and /
• The calculator will operate on hexadecimal numbers, not decimal numbers
• The calculator only needs to operate on unsigned integers (i.e. UInt). You do not need to consider negative numbers or fractions.
• The calculator should support the 16-digit hexadecimal numbers (i.e. The range of the numbers is from 0 to FFFF FFFF FFFF FFFF). Prevent the user from entering a number that is greater than FFFF FFFF FFFF FFFF.
• The calculator should handle overflow and underflow gracefully. The app must not crash.
• The calculator should handle division-by-zero error gracefully. The app must not crash.
• The calculator should be able to support most of the devices and orientations. If it does not support the old devices earlier than iPhone 6, it is okay.
Hint:
• To convert a string to a hex number, use “radix: 16” as an argument. For example: var s:String? s = “1A” var intHex:UInt = 0 intHex = UInt(s!, radix: 16)! print(intHex) // shows 26 intHex = 90 s = String(intHex, radix: 16).uppercased() print(s!) // shows 5A
• It is recommended that you use a UI label instead of a text field, so that the user will not type directly by using a keyboard. You will need to provide a button for each digit.
• Strings may be concatenated by using + operator. E.g. var s1 = “1234”
var s2 = “5” print(s1 + s2) // shows 12345 You may want to do string concatenation in the action of each digit button.
• To prevent the user from entering a number exceeding the size of 16 digits, you may verify the length of the string associated with the UI label.
• To handle overflow and underflow, use &+, &-, and &* instead of +, -, and *.
• To support different devices and orientations, use stack view, scroll view, or both.
• Design your algorithm first! Think about the status of the calculator: when to take the first operand, when to take the second operand, when to append digits to the current number, and when to refresh the current number, etc.
The functionality of your hex calculator worth 60% of the credit, while the appearance of the user interface worth 40%. When you submit the assignment, please compress the entire project folder into a single zip file, and upload it to D2L. In addition, please provide 4 to 5 screenshots of your app in different devices and orientations. If your app doesn’t work on every device/orientation, please specify why. The screenshots of a sample program are shown below. Your UI does not have to be the same as the sample program. As long as it has a pleasing looking, it should be fine
Distinguished (100%)
Proficient (85%)
Basic (70%)
Below Expectations (50%)
Non-Performance (0%)
Thesis Statement Raises the strongest objection to the thesis presented in the assignment. The objection is strongly grounded in research and logical reasoning. Raises a plausible objection to the thesis presented in the assignment. The objection is mostly grounded in research and logical reasoning.
Raises an objection to the thesis presented in the assignment. The objection is somewhat grounded in research and logical reasoning. Attempts to raise an objection to the thesis presented in the assignment. The objection is minimally grounded in research and logical reasoning.
The objection to the thesis is either nonexistent or lacks the components described in the assignment instructions. Counter Argument Provides a strong, thorough rebuttal to the objection. The rebuttal effectively demonstrates that the thesis can withstand the objection and applies the principles of charity and accuracy.
Provides a rebuttal to the objection. The rebuttal mostly demonstrates that the thesis can withstand the objection and mostly applies the principles of charity and accuracy.
Provides a limited rebuttal to the objection. The rebuttal somewhat demonstrates that the thesis can withstand the objection and somewhat applies the principles of charity and accuracy.
Attempts to provide a rebuttal to the objection; however, the rebuttal minimally demonstrates that the thesis can withstand the objection and does not apply the principles of charity and accuracy.
The rebuttal is either nonexistent or lacks the components described in the assignment instructions. Conclusion Provides clear and concise closing remarks that comprehensively summarize the essay. The remarks consider the broader controversy and/or further research that could offer additional insight into the moral solution of the business problem.
Provides closing remarks that summarize the essay. The remarks mostly consider the broader controversy and/or further research that could offer additional insight into the moral solution of the business problem. The closing remarks are somewhat unclear.
Provides closing remarks that minimally summarizes the essay. The remarks minimally consider the broader controversy and/or further research that could offer additional insight into the moral solution of the business problems. The closing remarks are unclear and/or vague.
Attempts to provide closing remarks that summarize the essay; however, the remarks do not consider the broader controversy and/or further research that could offer additional insight into the moral solution of the business problem. The closing remarks are unclear and vague. The closing remarks are either nonexistent or lack the components described in the assignment instructions.
Written Communication: Context of and Purpose for Writing
Demonstrates methodical application of organization and presentation of content. The purpose of the writing is evident and easy to understand. Summaries, quotes, and/or paraphrases fit naturally into the sentences and paragraphs. Paper flows smoothly.
Demonstrates sufficient application of organization and presentation of content. The purpose of the writing is, for the most part, clear and easy to understand. There are some problems with the blending of summaries, paraphrases, and quotes. Paper flows somewhat smoothly. Demonstrates a limited understanding of organization and presentation of content in written work. The purpose of the writing is somewhat evident but may not be integrated throughout the assignment. There are many problems with the blending of summaries, paraphrases, and quotes. Paper does not flow smoothly in all sections.
Organization and presentation of content are extremely limited. The purpose of the writing is unclear. There is little or no blending of summaries, paraphrases, and quotes. Paper does not flow smoothly when read.
The assignment is either nonexistent or lacks the components described in the instructions.
Written Communication: Control of Syntax and Mechanics
– Displays meticulous comprehension and organization of syntax and mechanics, such as spelling and grammar. Written work contains no errors and is very easy to understand.
Displays comprehension and organization of syntax and mechanics, such as spelling and grammar. Written work contains only a few minor errors and is mostly easy to understand Displays basic comprehension of syntax and mechanics, such as spelling and grammar. Written work contains a few errors which may slightly distract the reader.
Fails to display basic comprehension of syntax or mechanics, such as spelling and grammar. Written work contains major errors which distract the reader.
The assignment is either nonexistent or lacks the components described in the instructions.
Written Communication: Required Formatting
Accurately uses required formatting consistently throughout the paper, title page, and reference page.
Exhibits required formatting throughout the paper. However, layout contains a few minor errors. Exhibits limited knowledge of required formatting throughout the paper. However, layout does not meet all requirements.
Fails to exhibit basic knowledge of required formatting. There are frequent errors, making the layout difficult to distinguish as required style.
The assignment is either nonexistent or lacks the components described in the instructions.
Written Communication: Word Requirement
The length of the paper is equivalent to the required number of words. The length of the paper is nearly equivalent to the required number of words.
The length of the paper is equivalent to at least three quarters of the required number of words. The length of the paper is equivalent to at least one half of the required number of words.
The assignment is either nonexistent or lacks the components described in the instructions.
Written Communication: Resource Requirement Uses more than the required number of scholarly sources, providing compelling evidence to support ideas. All sources on the reference page are used and cited correctly within the body of the assignment.
Uses the required number of scholarly sources to support ideas. All sources on the reference page are used and cited correctly within the body of the assignment.
Uses less than the required number of sources to support ideas. Some sources may not be scholarly. Most sources on the reference page are used within the body of the assignment. Citations may not be formatted correctly. Uses an inadequate number of sources that provide little or no support for ideas. Sources used may not be scholarly. Most sources on the reference page are not used within the body of the assignment. Citations are not formatted correctly.
The assignment is either nonexistent or lacks the components described in the instructions.