rherndon47 / tiyassignments Goto Github PK
View Code? Open in Web Editor NEWLicense: Creative Commons Zero v1.0 Universal
License: Creative Commons Zero v1.0 Universal
Using your Jackpot app from yesterday, extend the functionality by adding a winning number view that allows the user to select the winning numbers for the lottery drawing. Also add a method or methods that search through your random tickets and determine which ones are winners.
A winning ticket is one that has at least three numbers that match the winning ticket.
Build a simple weather app that utilizes both the Google Maps API to convert a zip code provided by the user into a set of latitute and longitude coordinates, as well as the Dark Sky API to use those coordinates to find the local weather conditions for that location.
This is the API call to use to get coordinates from a zip code:
http://maps.googleapis.com/maps/api/geocode/json?address=santa+cruz&components=postal_code:12345&sensor=false
(Where 12345 is the zipcode. The address field has a city name in it, which is ignored by the API server for this request)
Here are some design layout ideas for the first two views:
Create a single view application that shows textfields for name, street address, city, state, zip code and phone number. After each field is filled out, validate the data in the field and only allow the user to move on if the data in the field is valid. Once all fields have been filled out, hide the onscreen keyboard.
Make a todo list application. Be sure to allow the user to enter a todo item description and also allow for items to be checked off. Todo item cells should also be deletable, but only if they are completed. Read this section of the UITableView Apple documentation to learn how to remove cells from a tableview.
Bonus points for allowing for the user to enter a due date for a given todo item.
UITableView Class Reference
Be sure to look at the paragraph near the top that starts "When sent a setEditing:animated: message..." for information about allowing for deletion of cells.
UITableView DataSource Protocol Reference
Also look at the section here that is called "Inserting or Deleting Rows"
Steps to Success
Storyboard Tasks
Code Tasks
*[x] Define IBAction for Add and Clear button and add methods
*[x] Connect IBActions to Storyboard
*[x] Add textField delegate to interface statement
*[x] Add code to add items
*[x] Add code to delete items
*[x] Add code to List items
*[x] Add code to clear items
*[ ] Add code to mark items as completed
Create a simple tableview-based app that lists items that are added by the user. The tableview should have a UIBarButtonItem
in the upper right of its navbar that displays a plus button. When tapped, the app should show a view modally that will ask for a string of text. Two buttons, save and cancel will allow the user to either close the modal view without creating a CoreData object or create a new CoreData object (be sure to save the managedObjectContext
before closing the modal view). On viewWillAppear:
in the base tableviewcontroller, be sure to fetch the latest list of item objects from CoreData and reload the tableview.
Build an iPhone app that allows the user to drop a pin on demand to mark where their car has been parked. Also allow the user to enter a short description or name for this location. Save this information using NSCoding to NSUserDefaults. When the app is relaunched, if a pin has been saved, the app will pull the pin in from NSUserDefaults and show it on the map. Include a separate marker denoting the user's current location.
Create a single view application that shows a calculator interface. It should have buttons for numbers 0 - 9 (plus a . button so you can add floating point numbers) as well as 7 operator buttons (addition, subtraction, multiplication, division, and equals, plus/minus, percent). It should also have a button to clear out the current transaction (clear). It will need a label to display the current value of the calculator. It should operate as you would expect from a normal calculator.
Extend the functionality of the Github Friends app made in class to support a detail view that shows the name of the user as the title of the view, the location and email of the user in the upper left corner of the view, and below that a list of repositories that belong to the user.
In the FriendDetailViewController:
Create a single view application that shows a table view as it's main interface to the user. Provide a Navigation Controller to handle eventual view transitions (we'll add these later) and also show a Navigation bar. Add an "add" button to the navigation bar that when tapped, will generate a quick pick lottery number and place it in a cell in the table view.
Quick pick is defined as a lottery number that is randomly generated. A lottery number is 6 integers that are within the range 1 through 52. Picking a number does not preclude it from being picked again for another of the 6 in the sequence.
Using the first version of In Due Time, add the following functionality:
Create a static library of the CalculatorBrain class you created and used in the Calculator homework assignment. If you don't yet have all your business logic in the brain class, be sure to move the logic and test it in the Calculator before you export the class for use in this library.
We will be using the brain class in hw 11.
Great job on the time circuits! We were able to get you here to 1955 so you can ensure your parents end up together. Now we need to get you back to the future, but I'm afraid I've fallen and hit my head on the toilet again (another late night clock adjustment). Unfortunately I can't remember the equations to ensure we get 1.21 gigawatts from the lightning bolt that will hit the clocktower. I'm sure you've got a reference for them in your pocket computer. We'll need to do these calculations quickly on the night of the storm, so could you build an app that will allow us to enter the values we have and then calculate the values we need? It must work quickly, as we won't get another chance to get this right. Your future depends on this!
- Doc Brown
Let's build a universal app for Doc so he can perform those crucial calculations on the fly. The main view will be a tableview with dynamically added cells, one for each value type. The + button will create a popover when tapped to allow the user to select the value type they want to add. Once two values are entered, the app should disable the + button and perform the necessary calculations to add the two remaining value types to the screen. The clear button will empty the table and prepare the app for a new transaction.
See this site for the list of equations as well as a web implementation of this app you can use for testing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.