Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

CSCI 457 Assignment 2 – Hexadecimal Calculator

29/10/2020 Client: happyw Deadline: 2 Day

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.



Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Writer Writer Name Offer Chat

Writers are writing their proposals. Just wait here to get the offers for your project...

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Soap for sinners chelsea market - Events in animal farm and what they represent - Richard taylor the meaning of life - Assignment - Raymarine st8002 installation manual - Shadow health focused exam cough - Ebay inc 2009 case study - Trading account format pdf - Did the witches manipulate macbeth - Case study - Barriers to Evidence Based by 2020 to Nursing Goal - Seesaw margery daw words - Westpac gallup assessment whirlpool - Force table lab conclusion - The american dream dead alive or on hold - Ieee 829 standard for test documentation - 180 willoughby road wamberal - Chapter 13 money and banking answers - Effective Compensation Plans - As4100 - Access - Case 6 national collegiate athletic association ethics and compliance program - WEEK 2 DISCUSSION - How to agree to job plan - 1/8 blyth street vermont - Jazz - Dau test and evaluation level 1 - The mutual impact of organizational culture and structure - The body shop history - Big two hearted river summary and analysis - Blue dream hotel via orti 7 c 35043 monselice - Why does montresor hate fortunato - Up in michigan hemingway pdf - Parts of a bunsen burner - Sample proposal database management system - West norwood better gym opening times - Human Resources Management - First four lines of maya angelou's inauguration poem - A builder has located a piece of property - Alternative Analysis Case study - Https securepro prod energy siemens com securepro - Weighted average process costing method calculate equivalent units - Fm mattsson mixer cartridge - Imperial eastman compression fittings - Rational numbers in fraction form - Two causes of the great depression - The english only movement by jake jamieson - Inspector goole final speech analysis - The Gay bar - Rank indicator in lte - Rhetorical critique response ( 600-700words) - Saint bridget college batangas - CC-4 - Introduction to problem solving and algorithm design - Changing ways of life - Letter of king leopold to missionaries - The tournament of today political cartoon - Drama discussion - Weaknesses of fenty beauty - Is fair and lovely effective - Manageral Accounting week 1 discussion - What is stance in writing - 2/3 journal - Week 5 di500 - Assignment - Behavior that violates significant social norms is called - Clergymen letter to mlk analysis - Discussion 2: The Role of the RN/APRN in Policy-Making - Prepare a context diagram for new century's information system - What is rusul in islam - What does corresponding terms mean - In a home laundry dryer a cylindrical - You should pack foods high in ________ to provide the most energy or kilocalories per gram of food. - Business model canvas format from osterwalder & pigneur 2010 - MK405 Unit 4 Discussion - Long reef surf club - English Homework - Discussion Post - Girl jamaica kincaid mla citation - Ox5 run 2015 results - Atgaaagcctatgcacca - Loch sport boat ramp - How to calculate average risk premium - An airplane propeller is m in length - Www whitehouseblackmarket store account associate registration jsp - Romeo and juliet storyboard act 3 - Gyprock wall sheet sizes - Enrique araneta and maritess revilla - Crime and Delinquency - Bitcoin-2 - The comparative balance sheet of yellow dog enterprises inc - Example of swot analysis for human resources department - What are the six dimensions of health and wellness - Cakes by mom and me west memphis arkansas - Twisted pair coaxial fiber optic - Comparison of twisted pair coaxial cable and optical fiber - S 3a identifying comma splices answers - Mary poppins short script for school play - Red seal mechanic test - Role performance model