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

Drivers theory test wa - Chain driven limited slip differential - Gpo box 5107 sydney nsw 2001 - Micro vs macro social work - Social realism in advertising - Peppinos oviedo florida restaurant impossible - Discussion essays guru only - Asperger Syndrome - Organizational Policies and Practices to Support Healthcare Issues - Arrow shooting greek god - Christian Faith And Life - Sadie and maud questions and answers - Marketing - Getting to know your textbook the practice of statistics answers - Classics of western philosophy steven cahn - Achievement and success american values - Individual programmatic assessment week five programmatic assessment - Soap Note x 3 (24 Hours) - Case question - Bmw valvetronic power supply - Herofication - Analysis on the Threats Defense Argument - Shadow health chest pain assessment - Parts of a sewing machine worksheet - 2 robyn court hampton park - Entrepreneur Finance - Ngai tahu family tree - The rocking horse winner mla citation - How to find pka of unknown acid - Is wayne williams still in jail - Read 2 articles and answer questions - Enron the smartest guys in the room worksheet answers - Heating curve of water - Neville the devil aboriginal - Calculate crash cost per day - Toyota weaknesses 2018 - Magic carpet airlines case analysis - Advantages and disadvantages of deficit spending - Assignment Week 7 - Fallon company uses flexible budgets to control its selling expenses - Need in 8 hours - Southwestern university's food service case study - Pyrex glass tf 55.4 c - What is a leadership credo - Conductors and insulators and semiconductors - Quartz crystal microbalance price - Leccion 8 prueba a answers - Week 3 Discussion - The delicious miss dahl dvd - Thursford christmas seating plan - Microeconomics true or false questions - Case Management Process Section 5: Terminating the Case - I need 1200 words total (3 pages 1.5 spacing) on an essay economics. - Peyton approved statement of retained earnings - Explain the evolution of cchit - Instituting policies and procedures that facilitate strategy execution - The table below contains some mean bond enthalpy data - Business Finance Homework - Assignment #5 The Hero's Journey - Insights Into Criminal Behavior - Api 650 latest edition - Research - HTML & css , etc. website creation - Order # 9573 - Emotional behavioral disorder powerpoint - Integrity doors & engineering - Essay question - Zahir jooma net worth - If a bank doubles the amount of its capital and roa stays constant, what will happen to roe? - External factor analysis summary efas - Computech corporation is expanding rapidly - How to find selling expense on traditional income statement - Magnetic field due to steady current - In metals the valence electrons are considered to be - Wavell the viceroy's journal - Common core state standards michigan - Access chapter 3 northwind traders - Papel de la psicologia en la sociedad actual - Practical Connection Assignment - Erecruit nsw health dates - The pathping utility sends 10 pings per hop by default - The servant who buried his talent - Financial accounting homework answers - 2 coments each one 150 words (CITATION AND REFERENCE) - What are two examples of hypothetical syllogism - Dominos kings bay sub base - Help with short web post - Formal report writing sample - Proving triangles congruent khan academy - How to use a dissecting microscope - Culturally relevant teaching definition - Quine truth by convention - Lean six sigma master black belt certification villanova - What does shay look like in uglies - Delta fig 55 ball valve - Practical Connection Assignment - 2 butene with bromine mechanism - 01.16 writing your narrative english 4 - Mount gambier city bus timetable - Discussion response CPO