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

Uncle benny's face cream vitamin e - Molecular weight of zinc gluconate - Characters in oliver twist - Anime kaika discount code - Flow measuring apparatus lab report discussion - Assume Texas has a long-arm statute permitting the exercise of jurisdiction over all parties to contracts negotiated and/or executed in Texas. How should the court rule? - Rain bird t63 vs t70 - 5 8 as a decimal and percent - Persona 3 cursed card - Research feasibility study template - C06 Online Exam 5_08 SCORE 100 PERCENT - 3-4 paragraphs Cohesive response for Business - Energy Balance - Smurf village wonders chart - Aged care accreditation standards - Wrd 204: writing exercise 5 - Transformation process in operations management - Approaches to connecting public health and the healthcare system - Lack of education in animal farm - Ceremony questions and answers - Obstetric soap note - Jackson chameleon care sheet - Hourly rounding and fall prevention - Animal farm lesson plans - Computer ethics A2 - Doko ni ikimashita ka - Network identification code - Stata commands for graphs - The tires of a car make 65 revolutions - Ffn milk carton refill bottle - Churchill hospital phone number - Epidemiology SLP 3 - A study with questionable sponsorship or motives - Reflection and Discussion Forum Week 6 - Origins Reflection - Case project 5 1 - John napier contributions to mathematics - Upfront magazine islam in america answers - Poetic devices in fire and ice - Health Care Delivery 2 - Robin hood case analysis answers - Tina jones abdominal objective data - Bsbcus301 assessment answers - Check list for job safety analysis - Foundations of human development in the social environment paper - Creac legal writing example - Walking with the wind john lewis sparknoteswalking with the wind john lewis sparknotes - Cryptic christmas picture quiz - At price p1 the firm in figure 11.1 would produce - How to solve step functions - Australian gaap vs us gaap - 6/4 albi place randwick - Ib history paper 2 grade boundaries - Allianz oshc claim online - Ron brierley house point piper - A total asset turnover ratio of 3.5 indicates that - 5l bundaberg rum bottle - Bishop tufnell primary school - Chapter 1 introduction to statistics 1.1 exercises answers - Alpha boarding kennels macclesfieldispm 15 declaration form - Movie recommendation system source code python - Uniqlo mission and vision - Map grid of australia - Question_help - Psy 315 week 1 practice worksheet - Stats 101 cheat sheet - Difference between efflorescence and deliquescence - Corporate strategy for a diversified or multibusiness enterprise - Data Science And Big Data - Probability as a fraction - The ice hockey injury by phil stephens answers - The following comparative information is available for rose company for 2017. - Ambition in act 1 scene 5 macbeth - A sole proprietor has ________ liability quizlet - Triage assessment model crisis intervention - Birdsong by chimamanda ngozi adichie summary - Research Methods in Criminal Justice - Chapter 11. - Goal of operational security - Sqa secure website login - Are flies scavengers or decomposers - Apa citation for strengthsfinder 2.0 - Article Critique - A proper journal entry to record issuing raw materials to be used on a job would be: - Shpx railcar outage table - Module Peer Discussions - Realme is planning to launch realme NEO for the premium segment - priced at INR 35,000 - Research Critique Paper - Hot exhaust gases which enter a finned tube - Getting under the hood of an annual report - Thomas gordon active listening - Reflection 4 - DISCUSSION - Blacktown probation and parole - Apply moderate effect smartart style powerpoint - Equivalent units in ending inventory - John maclean gender - Hess's law virtual lab - Actfl opi sample questions - Barnes and noble annual revenue - How to improve plant utilization in capsim