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

Which of the following makes a true statement - John newton damp proofing systems - Good life rv des moines bevington - The great gatsby first sentence - Why are so many familiar industries oligopolies - Robots fender hit me baby one more time - Which of the following statements is true about operating systems - How to write a radio script - Roth contractors corporation income statement - Week 10 term papaer - CHILDLESS//BABY{{+91-9829644411}} Problem Solution Specialist Molvi Ji - Managers who advocate job enrichment focus on creating jobs with - 59 ft lbs to nm - Discussion - The caux principles for ethical international business - Williams refrigeration spare parts - The barrio by robert ramirez pdf - Which line is an example of trochaic tetrameter apex - Amps per hour to watts - 200 Words - Where did chewbacca's voice sound originate - A small market orders copies of a certain magazine - Cambridge igcse english literature - Sizzla bad mind nah go stop we - Belt disc sander safety - Wk 3 500 - 3128 bergman street pittsburgh pa - Summery - Proprietary estoppel by encouragement - Sample soap note nurse practitioner - Health professional and medical salaries state award - PEAR REVIEW ARTICLE - Celta assignment focus on the learner example - In time cost trade off function analysis - Pretend you are consultant for Netflix. you are to conduct presentation to upper management - Paul klee around the fish - Short Paper - Nursing Informatics Assignment - English - Discussion - Focused exam abdominal pain shadow health - Bottom plate fixing to concrete slab - Conservation of energy at the skate park answers - 6 indicators of chemical change - How to sell csgo items for paypal - Analysis - On going home essay - Illuminate health consulting pty ltd - Aged care standards and accreditation agency - Unit IV Annotated Bibliography - National parks victoria map - Genetics - Asynchronous counter truth table - Examine china's projected economic activity on the below table - Airports on water mini ielts - Were late nineteenth century immigrants uprooted - Legal,Ethical & Social Environment - Introduction to sociology seagull 11th edition ebook - Inf 103 week 1 quiz - La otra conquista english subtitles - Advantages of a multicultural society and labor force - Cromer beach car park - Active Low Pass Filters - Systems theory in nursing practice - What is the role of technology leadership that incorporates with the Technology Acceptance Model (TAM)? - Notre dame prac office - Disaster recovery - The immune response is specific diverse and has memory - 4 dip switch combinations - QuickBooks Enterprise Support - Ask Accountings - 10/1 - Manova spss example - Quote unquote leeds beckett - The trident reader essays about success - Is velo masculine or feminine in french - Musculoskeletal system case study - Average household budget pie chart - PS490 Assignment 7 - Job application - Sensory profile sample report - Solid editing tools in autocad - Steve wylie murdoch university - LEADERSHIP STYLE - Difference between isometric and oblique projection - Alpha flight services mascot - Timeline - Module 1 cells as the basis of life answers - Double block and bleed p&id - Ansi smacna 008 2008 - Bank albilad annual report - Are slingshots legal in nsw - Describe the distribution of fold mountains - Nku pmhnp program reviews - JUSTIFICATIONS AS DEFENSES - Cardinal health competitive advantage - Classical THEORY CJT 101 - Www testingforschools com customer id - Is benzil polar or nonpolar - Clinical data management overview - Wd 40 aerosol msds