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

Film drama reflection - Ellie tomorrow when the war began - Homework market - Blue in great gatsby - Ross and rachel kiss - Jake bilsborrow go fund me - HEALTH BEHAVIOR CHANGE PROJECT/ APA PAPER - 0.55555 as a fraction - Managing information systems strategy and organisation pdf - ¿qué productos envía iquitos a otros lugares? - Eng Writing Assgn 2 - Use measuring instruments ammeter voltmeter wattmeter - If common stock is issued for an amount greater - Northern renaissance art vs italian renaissance art - Worcester boiler a21 fault - Formulating Quantitative and Qualitative Research Questions - In the statement, "diet determines one’s life expectancy," diet is the _____ variable. - King arthur's court crossword - Adcal d3 caplets vegetarian - Week 5 project leadership - Family guy satire examples - Discussion post - Purification of Bovine Brian Tubulins - Chiang and wainwright mathematical economics - MBA515 Week 7 Discussion 7 - Introduction to risk management and insurance dorfman pdf - Lewis dot diagram for cf4 - Square d vfd manual - Received customer purchase order no 37225 - What is the difference between mechanical digestion and chemical digestion - Context, Meaning, and Value - Sgts mess dress code - Hire a professional team of CV writers. - Comparing Research Reports - Who did paul o'sullivan play on murdoch mysteries - How to write the empirical formula of an ionic compound - Module 1 - Which of the following is a dfss methodology - Energy skate park basics - Cell homeostasis virtual lab answer pdf - Must be 3 pages exact or more. due by 24 hour - Gauging the extent to which marketing objectives have been achieved - Effects of social networking sites ppt - Using the financial statements for the snider corporation - Pantheistic worldview about human nature purpose and flourishing - Communication between cultures 9th edition pdf - Business ethics: case study 5 - Assignment - Hau lee supply chain uncertainty framework - Pink puffers and blue bloaters - Sadie the cleaning lady chords - Module 03 - Leadership Assessment Paper - Nursing - Ceres gardening case study solution - Adjectives to describe katniss everdeen - Experiment 1 newton's first law of motion - Nhsp online application form - Box hill tafe orientation day - Valencia atlas help desk - Radon testing certification illinois - Which of the following gives positive tollens test - Bickerley green nursing home - Deliverable 1 - Attracting the Eyes of Viewers - ETCM-Research-5 - Subcutaneous abdominal vein cow - Gcu end of course survey - DiscussionC 4 - Luisa Anxiety Diagnosis and Assessment - Selectively reflective and inconsistently fair describe which level of thinking - The norton introduction to literature portable 13th edition pdf - Affidavit of loss passport philippines - The manager of a car wash must decide - Reflection and Discussion Forum Week 9 - Vcaa chinese first language - Love vashikaran specialist In indORE +91"_"9928097710 Top And Best Tantrik Aghori Baba - Energy Crisis - Intro to business lesson plans for high school - Unearthed arcana 5e feats - Does flora proactiv have trans fats - Mci case study capital structure - Android hacking and penetration testing - Complete and incomplete combustion - Manly ferries to be phased out - Cultural Anthropology Final - What is a reasonable domain - Truth vs happiness in brave new world - Business law case study essay - MGMT314 Final Paper - When you re an addams - St david family practice - Business Intelligence: Week 1: Discussion 1 - Royal observatory moon sighting - Apocalypse of james password - Interview questions for residency - Hong kong productivity council - Philosophy - Reflection and refraction lab report answers - Titian sacred and profane love analysis - Risk based thinking ppt - Eddie mabo major achievements