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

Mississippi spelling song matilda - Adversarial Collaboration - Iron man essay in english - Title - Good vision statement characteristics - Week 7: summary of healthcare concern presentation - Performance Appraisal - Computer chain of custody form - I have so much homework hyperbole - Big data analytics assignment - Jim sharps naturopathic doctor - Onboard maintenance system aircraft - Bishop challoner basingstoke term dates - Peripheral Vascular Disease Case Studies - Robyn tomorrow when the war began - Business law simulation - The fields company has two manufacturing departments - Ann marie di mambro - Harvard business school global supply chain management simulation answers - Journal Article Analysis - Poetry with similes and metaphors - Introduction To Criminology Course Help - The service a homeowner performs when she mows her yard is not included in gdp because - Pin oak soil ph - Instituting policies and procedures that facilitate strategy execution - Scale drawings and models homework answer key - Marketing Analysis - The atoms are combined in some way - What does macbeth say when he kills duncan - Paris through the window analysis - Explain nursing as a profession - Expert key management pk - Passion flower adaptations in the rainforest - Precipitation form crossword clue - Rc time constant units - Speed distance time fuel consumption - Does prospero free caliban - Glenn colquhoun bred in south auckland - 021 - A tree casts a shadow 24 feet long - How strong are the competitive forces confronting lululemon - Assessment Type: Individual Assignment and Video presentation Weighting: 20 % Total Marks: 20 - All the ever afters pdf - Andy mapple how did he die - Assignment 450 words - My program worksheet hcs 305 answers - Qlikview management console tutorial - 750 10 unc 2a - Oceanview marine company 22 18 - General survey nursing assessment example - Yogurt fermentation process ppt - A very slow motion of earth's axis that requires 26,000 years to complete is called ________. - Insurance and Exculpatory Contracts - Wolverton health centre kingston - Atkinson's flexible firm model - Investing and Streaming Dreams - Various ways to improve system development productivity - Topic for PowerPoint Presentation4 - Case study - How much is 16 million yen in us dollars - Influencing styles - Human resources management st clair college - Transgenerational model of family therapy - Intro to Cybersecurity and Technology - Journal Entry - Chick fil a target market - Rigid in outlook harsh crossword clue - I need an essay written in APA format for a psych 130 class - Discussion - Food chain and food web worksheets for grade 7 - ?? same-day +27833173182 ROMA - MASERU ABORTION CLINIC // PILLS,,,, - Holy spirit you are welcome in this place omnipotent father - Ground grid integrity testing - Test of language competence level 2 - Black copper oxide wash - State v akers case brief - Interpreting sleep study results - Meskerem net eritrean newes - Programmed and nonprogrammed decision making ppt - Ross martin arrived at the following tax information - Master of tax monash - Windows 10 signifies microsoft's shift in strategy - Bio 137 class - Data Analysis and Quality Improvement Initiative (1*3) - Women's danton faux leather pull on bootie universal thread - Bill of rights assessment - "A" WORK PLAGIARISM FREE - The life stages of an individual saver include which of the following: - Duro tuss chesty cough forte tablets dosage - Peripheral vascular disease case study - Allies security services marrickville - Book Review - Article Review- Corporate Finance - Concrete curing temperature celsius - Management representation letter template - Mdi multiple document interface - Essex hash house harriers - Rick altman film genre pdf - Subsystem of hrm - Uottawa health sciences courses