Friday, May 24, 2019

AM Class Photos

You can get the full size images by typing in the URLs in the captions. They are about 3.5 megabytes each.

http://mobileapps1819.svctestudents.org/materials/am1.jpg
http://mobileapps1819.svctestudents.org/materials/am2.jpg
http://mobileapps1819.svctestudents.org/materials/am3.jpg




Thursday, May 23, 2019

Letter of Competency (LOC)

There are 10 units/modules/categories where you will be rated on a scale of 1-4.

4 = can do this task independently
3 = can do this task with some help
2 = cannot do this task without more training
1 = cannot really do this task at all

Modules

1. Computer - everyone got 4

2. Design: Logo types, Apple Device Sizes, Lesson 3.9 Workflows

3. Web HTML JavaScript: Color Schemes, Keyboard shortcuts, Current Events web page, Popups, Sorting, Resistor Color Code, Portfolio

4. Math: Random color schemes, calculator, BMI calculator, Fortunes, MPG calculator, Tic Tac Toe, Multiplication Table, 4 Kids, Chinese Zodiac. (PM class: Water molecule, Benzene ring, encryption, Veen diagram, chocolate molecule, SVG apple, bank logo, particle logo, safari icon, google photos icon, tile grid, speedometer, basketball, gears, clock.)

5. English: College and career plans, App ideas, current events research, DNA food allergies app, Morse code keyboard, Finding your passion

6. Adobe Illustrator: Business card, gear, navigation icons, striped apple, Logo, Poster or Album cover

7: Research: same as 5: English

8. Basic App Coding: All Xcode apps except those listed under #9 (25+ assignments)

9. Advanced App Coding: Apple Pie, Personality Quiz, Emoji Dictionary, Saving Data, Snake, Final App

10. Career Readiness: Career readiness weeks 1-18 of semester 2

Career Readiness

I adjusted your overall career readiness score up or down based on these criteria listed on the letter of competency:

Teamwork - I adjusted your score downward if you left your teammate doing the bulk of the work on the final project. (I also adjusted your final project grade downward.)

Respect - I adjusted your score downward if you're always talking while I am talking. You know who you are.

Follows Instructions - I adjusted your score downward if I found contraband on your computer such as Spotify, games, or other downloads not allowed in the network agreement.

Attendance and Punctuality - I adjusted your score downward if you have been habitually absent or late.

Honesty - I adjusted your score downward if I found you cheating.




Back up your work

  1. Put all your work on your desktop into two folders:
    1. Fall 2018
    2. Spring 2019
  2. Your name should also be on your folder, for example:
    1. Mikey Alvarado Spring 2019
  3. Open a new Finder window
  4. In the left sidebar, look for "Shared"
  5. In the shared list, look for 10-100-103-24
    1. If you don't see it in the shared list, first select "show"
    2. Then select "All..."
  6. Open the folder 10-100-103-24
  7. In the upper right corner of the Finder window, click "Connect"
  8. Choose the "studentAM" account
  9. Put in your morning user name and password as you normally log in
  10. On the server, look for
    1. Public, then
    2. Drop Box
  11. Copy your folder(s) into the Drop Box
  12. If someone else already put a folder in there with the same name, you may need to change the name of your folder
    1. No one else in the class should have the same name as you

Sunday, May 19, 2019

Submitting your app to the Apple App Store

There are two ways you could submit your app. You could sign up for a paid developer account, which costs $99 (per year). Or, you could let me submit your app through SVCTE's account.

Disclaimer: The administrator who signed up the school for a paid developer account is no longer at the school, so I need to catch up with him over the Summer to make sure we are paid up! 😯

Submitting iOS Apps to the App Store

https://developer.apple.com/ios/submit/

Summary:
  • Build with Xcode 10.2 (which we don't even have in the classroom, so we'll have to install it on one of the computers for this purpose)
  • Make screen shots. I will upload them if you want to use the school's account.
  • Create a product page.
  • Beta test.
  • Submit the app for review.

The Product Page

https://developer.apple.com/app-store/product-page/

Summary:
  • Product name
  • Icon
  • Subtitle
  • App Previews (short video with no audio)
  • Screen shots
  • Description
  • Keywords
  • Primary and secondary category
 

Choosing a Category

https://developer.apple.com/app-store/categories/


Silicon Valley 4U Paid Internships

This information comes from Joshua Cheadle in the PM class. Joshua, thank you for sharing this with all of us.

Subject: Summer Internships for High School students

Hi,

We are Siliconvalley4U. We offer paid summer internships for High School students. The value we bring in is an opportunity to be a part of real time applications of the software coding languages, and be part of a team developing software solutions for real customers. For students who are non coders, we offer internships in project management, customer relations, developing collateral products, and using marketing tools. These will prove to be invaluable in boosting their academic profile and help them to gain admissions into the colleges of their choice.

Here is some more information about our Internship positions.

Our Programs and projects run through the summer and also through the academic year. We work with small business clients, develop software products for our clients. Attaching links to our job postings. Students can apply online and they will screened and hired.

Job Posting: Project Development, This is a paid Internship
https://www.indeed.com/viewjob?t=summer+intern+project+development&jk=a11365f1881ebb08&_ga=2.2703541.402593780.1553040599-380074496.1553040599

Job posting: Coding Trainers,This is a paid internship
https://www.indeed.com/viewjob?t=summer+intern+coding+trainer&jk=a5cbffe212d9db62&_ga=2.83469459.402593780.1553040599-380074496.1553040599

We also conduct Internship bootcamps which is a mentorship, these carry a fee. We will mentor the students and help them develop software products for our clients.
https://siliconvalley4u.getgalore.com/series/26799-coding-boot-camp-to-develop-products

Students are welcome to set up an appointment and come meet our team and decide on their options via this link.
https://siliconvalley4u.getgalore.com/memberships/370-free-consultation-for-internships/

Regards,
Sri Rajeev,
Sales and Client Relations
SiliconValley4U
1(408)431-6648
https://www.siliconvalley4u.com/paidinternships
https://www.siliconvalley4u.com/internships


Mission College Articulation Credit

You can receive Mission College articulation credit if you meet the following conditions:
  • You attend Mission College at least one semester and take (an)other class(es) there.
  • You must get at least a B in the Mobile App Design & Computer Coding course.
  • You must get a passing grade on the final app.
  • You must see a counselor to obtain the form.
Ms. Hunter will be making appointments May 20-24 to give you the form and help you fill it out.  You can make an appointment with her at the student services desk. She can help 2-3 students at the same time, so your appointment will probably be part of a small group.


Extra Credit - Film Festival

Film Festival
Tuesday May 21
6:00-8:00 pm

See films by our own Film & Video students, as well as animations by the Animation class. 

I will give you extra credit if I see you there. Don't ask me how much extra credit - if you ask, you're not really interested. I'll make it worth your while. The extra credit will go under the "career readiness" category but it doesn't really matter because it will raise your grade somehow.

Click on the flier to enlarge it.


Cyber Camp and Design Thinking Bootcamp

The flier has information how to contact and register. Click on the image to enlarge it.

Here is another one that will take place in Milpitas


Final Projects

The good news: most of you turned in working projects.

The bad news: most of you did not test and fix your projects in all six required orientations:
  1. Small iPhone (5s) - Portrait
  2. Small iPhone (5s) - Landscape
  3. Large iPhone (8+ or XR) - Portrait
  4. Large iPhone (8+ or XR) - Landscape
  5. Any iPad - Portrait
  6. Any iPad - Landscape

Friday, May 17, 2019

Design Contest Winners

Thank you to 103 visitors from Mechatronics, Cybersecurity, Veterinary Science, Medical Assisting, and Construction Technology who voted on our best posters, logos, and apps.

Click on the image to see a more detailed view.

Posters

First Place - Nick Nguyen, PM Class, Andrew Hill HS

Honorable Mention - Giselle Valencia-Garcia,
PM class, Lincoln HS

Honorable Mention - Tran Tran,
AM Class, Mt. Pleasant HS

Honorable Mention - Zeus Lopez,
AM Class, Wilson HS

Logos

First Place - David Warshawsky, AM class, Santa Clara HS

Second Place - Nick Nguyen,
PM class, Andrew Hill HS

Third Place - Catherine Ngo,
AM class, Evergreen HS

Apps


First Place - HVAC, Mikey Alvarado and Ken Rodriguez

Second Place - Anatomy, Giselle Valencia-Garcia and Nhat Tran

Timer code for Concentration game

This code is in the action method for when a button (card) gets touched. Your code may need to be a little different. 

        if buttonsTouched.count >= 2 {
            // same picture
            if pictures[buttonsTouched[0].tag] == pictures[buttonsTouched[1].tag] {
                let _ = Timer.scheduledTimer(
                    timeInterval: 2.0,
                    target: self,
                    selector: #selector(keepCards),
                    userInfo: nil,
                    repeats: false)
            }
            // not same picture
            else {
                let _ = Timer.scheduledTimer(
                    timeInterval: 2.0,
                    target: self,
                    selector: #selector(turnOver),
                    userInfo: nil,
                    repeats: false)
            }
        }


These are the selector functions that will get called. Your code may be a lot different.

    @objc func keepCards() {
        buttonsTouched[0].backgroundColor = flippedColor
        buttonsTouched[1].backgroundColor = flippedColor
//        buttonsTouched[0].setTitleColor(.white, for: .normal)
//        buttonsTouched[1].setTitleColor(.white, for: .normal)
        buttonsTouched = []
    }
   
    @objc func turnOver() {
        if seen.contains(pictures[buttonsTouched[0].tag]) {
            missed += 1
            missedLabel.text = "\(missed) missed"
        }
        for b in buttonsTouched {
            b.setTitle("\(b.tag+1)", for: .normal)
            seen.append(pictures[b.tag])
        }
        buttonsTouched = []
        print (seen)
    }

Wednesday, May 15, 2019

Table Views Part 2

Fruits and Vegetables Project

http://mobileapps1819.svctestudents.org/materials/TableViewFruit.zip


We did this project in the PM class but we did not have time in the AM class. This project shows how to pass information from a Table View cell selection to another view controller using a segue. This code passes the cell label text to the destination view controller. The code looks like this:


    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.

        let dest = segue.destination as? ViewController
        let cell = sender as? UITableViewCell

        // Pass the selected object to the new view controller.        
        dest?.newFruitText = (cell?.textLabel?.text)!
        dest?.newFruitImage = (cell?.textLabel?.text?.lowercased())!
    }

You may want to get the section and/or row number of the cell that got selected. You would want to do this if, for example, they clicked on the row 30 and you want to display president #30 or ant species #30 or HVAC symbol #30. This assumes you have a data file with presidents or ants or HVAC symbols (which you should have turned in for the data checkpoint).

Anyway, you can get the selected row using this somewhat roundabout way. Insert this into the above code where it says "pass the selected object" in place of or in addition to the code there.

        dest.presidentNumber = self.tableView.indexPathForSelectedRow.row;

You can also get the section number from the indexPathForSelectedRow if your table view has sections for different kinds of data.


Scroll View Tutorial

(only for those who need it)

http://mobileapps1819.svctestudents.org/materials/ScrollViewBanana.zip



Monday, May 13, 2019

App Icon

Your app will need to have an icon that will appear on the home screen. You will create your icon in Adobe Illustrator and export it to PNG in all the various required sizes. For the icon assignment, you will turn in your Adobe Illustrator file and all the various PNG files.

You can read some guidelines for icons in Lesson 6.1 of the textbook.

You can find some information about the required icon sizes here and here.

Final Project

For the final project, you will also need to insert the icons into your project. In the project navigator find Assets.xcassets then find Appicon. There are about 18-20 slots for icons, but some of them are the same size, so you need about 13-14 different sizes of icon. You must have icons in all the correct sizes and they must all be in the correct slot.


If the base size of the icon is 20pt, and the multiplier is 2x, then you need to put a 40px icon in that slot.

If the base size of the icon is 20pt, and the multiplier is 3x, then you need to put a 60px icon in that slot.

If the base size of the icon is 29pt, and the multiplier is 2x, then you need to put a 58px icon in that slot.

And so on ...


Final App Requirements

Your final app must fulfill all these requirements.
  1. The app must build and run, with no red errors and no crashes.
  2. The app must not have any dead-end navigation. No matter what screen I am on, I should be able to navigate back or to the home screen.
  3. All the navigation in the app must work. 
  4. The app must work on both iPad and iPhone unless you justify your decision. Not understanding stack views or constraints is not a justification.
  5. The app must work in both portrait and landscape mode unless you justify your decision. Not understanding stack views or constraints is not a justification.
  6. (You should test your app in six different configurations as described elsewhere on this blog.)
  7. If your app has images, all the images must be there.
  8. If your app has a database, it must be complete.
    1. Example: If your app is about presidents, it should have screens for all 45 presidents.
    2. Example: If your app is about HVAC, it should have all the HVAC symbols.
  9. The app must have an icon that satisfies the guidelines in Lesson 6.1.
  10. The information in the app must be correct.

Your final app does not need:
  1. A description for the app store. We will work on this during the last week of class.


Sunday, May 12, 2019

Week 17 Overview

You must turn in both app checkpoints on Monday and Wednesday or you will get no credit. There is no late credit on the checkpoints. I will hold the class both days until I have a project from each group.

You must turn in the final app on Friday at the end of the period or you will get no credit. I will hold the class until I have a project from each group. We will miss the bus if necessary. Be prepared.

ActivityAM ClassPM Class
Final Working App Checkpoint 1Monday May 13Monday May 13
App IconTuesday May 14Tuesday May 14
Final Working App Checkpoint 2Wed. May 15Wed. May 15
Open House-Thurs. May 16
Final working appFriday May 17Friday May 17

Week 18 Preview


Overtime Final working appMonday May 20Monday May 20
App Store writeupWed. May 22Wed. May 22
Last day of classFriday May 24Friday May 24

Tuesday, May 7, 2019

Extra Credit

Read this article and write a 1-2 page essay in response.

This young musician with cerebral palsy writes songs using his eyes

https://www.classicfm.com/music-news/musician-cerebral-palsy-writes-music-with-eyes/



Read this article and the include links and write a 1-2 page essay in response.

8 Cool Mobile Apps Created by High School Students

https://www.emergingedtech.com/2015/01/8-mobile-apps-created-by-high-school-students/



I am only interested in reading quality writing! Don't turn in something half baked and expect anything in return.
  • Your writing should indicate that you read the article from the first to the last word.
  • For the second article above, make sure to read about all the apps through their attached links.
  • Your writing should indicate that you are curious and interested in the topic, not that you threw something together to get a few extra points.
  • I will probably not have time to mark up your essays, so turn in your best quality work the first time. This means grammar, spelling, and punctuation. Did you know that word processing programs will point out your spelling and grammar errors? Who knew?
  • Write both essays for even more extra credit.
  • Turn them in printed out on paper, double spaced. Follow the instructions! 
  • Write these essays on your own time at home. You must devote your class time to finishing the final app and other Xcode projects.

Think about these issues ...
  • Could you write an app that serves this same target audience? What would it take?
  • How does that guy's music program work, anyway?
  • How does someone with cerebral palsy go to college, anyway?
  • What would it take to write that app about crime, parking, education? Be complete and specific. What extra little piece does it take to communicate with the police or the school system?

Storyboards

You must test your storyboard in six different configurations:
  • Small iPhone (e.g. 5, SE)
    • Landscape
    • Portrait
  • Large iPhone (e.g. 8+, XR)
    • Landscape
    • Portrait
  • iPad (any)
    • Landscape
    • Portrait

Monday, May 6, 2019

Final Project Checkpoints


ActivityAM ClassPM Class
To Do ListMonday May 6Friday May 3
Sketches (academic)Monday May 6Friday May 3
Storyboard checkpointTuesday May 7Monday May 6
Navigation checkpointWednesday May 8Tuesday May 7
Data checkpointThursday May 9Wednesday May 8
IconsFriday May 10Thursday May 9
App Store writeup (academic)Monday May 13Friday May 10
Class Presentation (academic)Tuesday May 14Monday May 13
Final working appFriday May 17Friday May 17
App Store submission?????

Other Activities

China students visitThursday May 9
China students visitFriday May 10
Awards Ceremony OrientationFriday May 10
China students visitMonday May 13
China students visitTuesday May 14

To Do List due Monday, May 6

  • A list of everything you need to do, in order if necessary, to finish your app, so you can make sure you don't forget everything
  • Include as much detail as possible and necessary to make sure you don't forget anything
  • Storyboards
  • Scenes
  • A list of all assets you'll need
    • Assets include any images you may need
      • Images may include photographs, which you'd need to take yourself (don't use any images found on Google)
      • Images may also include artwork you'd generate in Adobe Illustrator
      • Don't forget the icons
    • Assets also include any sounds your app might need
      • You need to record all your own sounds; you can edit them in Adobe Audition if needed
      • Don't use any sounds found on Google
  • Make a list of all widgets in your app, including buttons, switches, sliders, etc. and indicate which ones need Action functions and what those functions will do
  • No sketches necessary; that will be in the next step 



Wednesday, May 1, 2019

Strategy

AM Class

  • Each academic assignment is worth about 3% of your grade
  • Each technical assignment is worth about 0.75% of your grade
  • (except double credit assignments such as Personality Quiz)

PM Class

  • Each academic assignment is worth about 2% of your grade
  • Each technical assignment is worth about 0.5% of your grade
  • (except double credit assignments such as Personality Quiz)

Raising your grade

  • Completing the final project will not raise your grade if it is low. This will just keep your grade from going lower. The final project has a greater probability of lowering your grade if you don't finish it or if it is not ready for the app store.
  • The only way to raise your grade is to complete the assignments you never turned in.
  • You may also resubmit corrected writing assignments.

Apps and Teams

PM class teams:


HVACMikey and Kenneth
Logic GatesNick
AnatomyNhat and Giselle
RecyclingHan and Joshua
AntsJustin and Michael
Letter TracingEvan and Christian
Food PyramidRoberto and Phung



AM class ideas:

Mental health, fitness, nutrition, memory, ASL, HVAC, Welding, children apps, photo reminder, senior citizens, presidents, world clock, entomology, resistor color code, football plays, world map

Mental HealthAnthony, Zeus
Visual MemoryNghi, Tran
ASLCatherine, Josiah
Resistor Color CodeCarlos, David
HVACHuy, Neel
WeldingJosh, Ayush
NutritionAliyeh, Shirin
NutritionDat, Estuardo
NutritionJaiya, Sophia
ChildrenKarla, Xandria
ChildrenPaul, Brian
Text AdventureRandy, Timmy
PresidentsRayyan, Anjana
 
??Aryan
??Abraham



Tuesday, April 16, 2019

Revised iBooks

Link to a revised book that includes Chapter (3)A and more pages.

http://mobileapps1819.svctestudents.org/materials/1219117996.ibooks.zip

Universal App Icon Sizes

developer.apple.com/library/content/qa/qa1686/_index.html

Search for "Figure 3"

Compare against the AppIcon set in your version of Xcode


Creating and Exporting iOS Icons

  1. Create your icon in Adobe Illustrator.
    1. The icon should be square: 400x400, 1024x1024, etc. Same height and width.
  2. Use "Export for Web (Legacy)" to export each different size to PNG
  3. Sizes: 20, 40, 60, 80, 120, 180
    1. More sizes: 29, 58, 87
    2. More sizes: 76, 152, 167
    3. App store sizes: 512, 1024
  4. Drag the various icons into the Appicon Assets of your Xcode project


Monday, April 15, 2019

Final app ideas

Here are a bunch of app ideas at random. Some of them are apps we've created in past years.

Related to classes at SVCTE

  • HVAC dictionary of symbols
  • Welding dictionary of symbols
  • Electrical dictionary of symbols
  • Resistor Color Code app (enhanced beyond what we did in class together)
  • Metric conversion calculator and tutorial
  • Nutrition guides such as My Plate or Food Pyramid with lots of information

Educational apps for children

  • Colors, numbers, letters, shapes with voiceover
  • Word spelling game like Apple Pie with original graphics, words, and graded levels
  • Concentration game (matching squares)
  • 15-Puzzle game (look it up)

More ideas

  • World clock based on the clock app (show 4 different clocks in different time zones)
  • Entomology app (ants, etc.) - reference material
  • Recycling information - reference material
  • Finger painter with enhancements such as different size brushes and many more colors (for those who did the finger painter app)

 A few things to think about

  • Would this app work better as a web site instead of an app?
  • Don't use any photos or graphics that are copyrighted by others (i.e. draw everything yourself or take all your own photos)
  • Make it look professional with stack views and margins and color themes and uniform layouts
  • Is this app truly useful?


Thursday, April 11, 2019

Survey

Please complete this survey regarding SVCTE. This is an assignment and you will get credit for it.

https://www.svcte.us/2019exitsurvey

This link may give an error about security, but the survey is OK to use. You may have to put in your student password for the AM student or the PM student.


Thursday, April 4, 2019

Remaining Projects

We have 6 weeks left to complete all the following projects. This is just a sketch outline. The requirements may change.

AM Class

  1. Lesson 3.9 Workflows (drawing sketches, academic)
  2. Unit 3 Final Project: Personality Quiz
  3. Snake Game *
  4. App Icon Sizes 
    • Exporting app icons from Adobe Illustrator
  5. Clock
  6. Basketball
  7. Resistor Color Code
  8. See all the PM class lessons below ▶
  9. Final Project ▶

PM Class

  1. Popup window (on hold)
  2. Online Prototyping tutorial (InVision)
  3. Final Project ▶

Final Project

  1. Send me an email with your idea in one sentence (academic)
    • I will approve your idea before you continue
  2. Idea writeup (academic)
    • Target audience
    • Summary of screens 
    • Capabilities
    • Competition on the app store
  3. To do list (academic)
    • See the separate list below ▶
  4. Sketches (academic)
  5. Online Prototyping (InVision)
  6. Storyboard checkpoint
  7. Navigation checkpoint
  8. Data checkpoint
  9. Icons
  10. App Store writeup
  11. Class Presentation
  12. App Store submission?
 

To Do List

  • You need a list of everything you need to do, in order if necessary, to finish your app, so you can make sure you don't forget everything
  • Include as much detail as possible and necessary to make sure you don't forget anything
  • Storyboards
  • Scenes
  • A list of all assets you'll need
    • Assets include any images you may need
      • Images may include photographs, which you'd need to take yourself (don't use any images found on Google)
      • Images may also include artwork you'd generate in Adobe Illustrator
      • Don't forget the icons
    • Assets also include any sounds your app might need
      • You need to record all your own sounds; you can edit them in Adobe Audition if needed
      • Don't use any sounds found on Google
  • Make a list of all widgets in your app, including buttons, switches, sliders, etc. and indicate which ones need Action functions and what those functions will do
  • No sketches necessary; that will be in the next step

Done

  1. Lesson 3.7 Tab Bar Controllers
  2. Lesson 3.8 Life Cycle
  3. Gestures tutorial
  4. Lesson 4.5 Table Views (Emoji Dictionary)
  5. Lesson 4.7 Saving Data (Emoji Dictionary part 2)
  6.  



Monday, April 1, 2019

Grades April 2

I will submit your grades on Tuesday, April 2 at 3:45 pm. You must complete the following lessons to get a good grade. (Other lessons will count in your final grade in May, but not in your progress grade in April.)

Remember, the assignments in red have a bigger impact on your grade. 

Morning class:

  • Lesson 2.7, UIKit, Screen Shots in Google Docs reporty
  • Find Your Passion
  • All Unit 1 Lessons
  • Unit 2 Lessons up to 2.9 (Controls)
  • Lesson 3.1 Optionals
  • Tic Tac Toe, 4 Kids

Afternoon Class:

  • DNA Report
  • Morse Code
  • App Journal 4-7
  • Find Your Passion
  • Random Circles, Heart, 4 Kids, Tic Tac Toe, Zoo, HTML Table of Device Sizes
  • All Unit 1 Lessons
  • All Unit 2 Lessons
  • Unit 3 Lessons up to 3.7 (Tab Bar)



Clock Hour Numbers

I will try to reduce this to the minimum you need to get this to work. This code may differ significantly from what you need to write for Xcode 10 / Swift 4.2. Hopefully Xcode will suggest some good fixes.

This first section is going to try to figure out exactly how high your numbers are.

    
    func drawHourNumbers (rect : CGRect) {

        let fontSize = baseWidth * 14
        let attributes : NSDictionary = [
            NSForegroundColorAttributeName : color,
            NSParagraphStyleAttributeName : NSMutableParagraphStyle(),
            NSObliquenessAttributeName : 0,
            NSFontAttributeName : UIFont(
                name : "HoeflerText-Regular", size: 18)!        
        ];

        var maxHeight : CGFloat = 0
        for i in 1...12 {
            let s = "\(i)"
            let h = s.size(attributes: attributes as? [String : Any]).height
            if h > maxHeight {
                maxHeight = h
            }
        }

This next section will draw the numbers taking into account the width and height of the string (i.e. it is going to help you center them using an offset).
        
        let attributes2 : NSDictionary = [
            NSForegroundColorAttributeName : color,
            NSParagraphStyleAttributeName : NSMutableParagraphStyle(),
            NSObliquenessAttributeName : 0,
            NSFontAttributeName : UIFont(
                name : font, 
                size: fontSize * fontSize / maxHeight)!
        ];

        for i in 1...12 {
            let loc = angle(fromHour: i)
            let s = "\(i)"
            let w = s.size(attributes: attributes2 as? [String : Any]).width
            let h = s.size(attributes: attributes2 as? [String : Any]).height
            s.draw(with: CGRect(x: loc.x-w/2, 
                                y: loc.y-(fontSize*0.55),
                                width: w, 
                                height: h),
                   options: .usesLineFragmentOrigin,
                   attributes: attributes2 as? [String : Any], context: nil)
        }
    }
 



Thursday, March 28, 2019

Schedule Reminders

SVCTE classes are in session the week of April 1–5. Your home school may be on break that week, but it is a state of California legal requirement that you be in class here that week. Your family may plan to go to Disneyland that week, but it is a state of California legal requirement that you be in class that week. Our spring break is later in April. See the schedule. I think our break is the week of April 22-26. You were informed of this before signing up for the class and you were given the opportunity to opt out of the class if you cannot meet the legal requirements of the course.

There is no PM class on Wednesday, April 3. PM class is in session every other day next week.

I will issue your grades on Tuesday, April 2 at 3:45 pm. This is your last opportunity to bring up your second progress grade. I will not accept any work after 3:45 on Tuesday, April 2 for any reason. Not in person, not on paper, not online, not in Google Docs, not through the upload form. 3:45 pm Tuesday. That's it.


Wednesday, March 20, 2019

UIKit Lesson

Lesson 2.7 calls for you to create a document in Pages. You could use Google Docs or Microsoft Word if you prefer. Share your work with me at mbrautigam@metroed.net. This assignment will get academic credit instead of technical credit, which will boost your grade if you do it well.

I suggest you do this assignment NOW even if you haven't finished Lesson 2.5 and Lesson 2.6. This academic assignment is worth about 8 percent of your grade right now. If you complete the assignment well (following all the directions), it could raise your grade by about 8 percent.


Tuesday, March 19, 2019

MAPin Career Pathways Day

Wednesday March 20

AM: 7:55–8:15 am
PM: 12:55–1:25 pm

Your assignment is to visit three employers and three colleges. They must punch your card. It is worth 12 points of career readiness on your grade. I will give you extra credit if you visit more than six booths. Make sure to put your name on your card before you turn it in to MAPin for the raffle drawing.

Colleges:

Academy of Art University*
Carrington College
CSU East Bay
Evergreen Valley College
Foothill College
Foothill College; EMT/Paramedic Program
Gavilan College**
Mission College
San Jose City College
West Valley College
West Valley College; Law Enforcement & AJ Program

Employers:

24 Hour Fitness*
Arrow Sign Company
Bittner Family Dental Group
City of San Jose-Dispatcher and Data Specialist
Independent Talent Acquisition
Metropolitan Transport Commission
PremierOne Credit Union
San Jose Marriot
San Jose Police Department*
Santa Clara Valley Water District**
SparkPoint*
Tesla**
U.S. Army
U.S. Marines
U.S. Navy

Other:

Language and Math Learning Center
PowerPathways Program
The Tutoring Center**

*AM only
**PM only

Monday, March 18, 2019

Find your passion?

Stanford Scientists Find That Finding Your Passion is Pretty Terrible Advice


This article from Inc. magazine says that there may be better alternatives than finding your passion when it comes to career advice. 

Read this article and reflect on it. What is your passion? Why might following that passion not be good career advice? What might be a better strategy for you?

Write an article about one page double spaced (about two paragraphs) reflecting on this article. Give specific examples of how using your time to find your passion might not be productive. Or, if you disagree, give specific counterexamples. 

Think about your own career objective. Would you want to work in a large company like Google, Facebook, Apple, EA? Would finding your passion help you be successful at a company like that? Would you want to work at a small company like a startup company? Would finding your passion help you be successful there? Would you want to work at your family business? Would finding your passion help you there? Do you want to be an entrepreneur and work by yourself or create your own company? Would finding your passion help you there?

This assignment is due on Friday, March 22 at the beginning of class. Please do this assignment at home on your own time. Do not use class time to work on this unless you are all caught up with the other class assignments.





Monday, March 11, 2019

Monday March 11

Mr. Brautigam will not be in class today. You will have a substitute teacher. This teacher worked in industry for many years. He may tell you about his career and he may give you some tips for your future.

Today you should be working on lessons 2.7 and 2.8. You may be a little behind. That is ok. But try to catch up as much as you can.

If your substitute teacher tells you about his experience in the technology industry, your assignment is to write me a coherent paper in Google Docs that tells me some of the things he talked about, since I cannot be there to hear him in person. The usual rules for writing assignments apply. Look at previous writing assignments from the Spring semester for examples. This assignment is due on Thursday. Try to do the assignment at home so you don't fall behind on the Xcode lessons.


Friday, March 8, 2019

Course Materials for Xcode 10

The lessons materials posted on the curriculum page may or may not work with Xcode 10. If your computer has upgraded to Xcode 10, you may want to use these lesson materials instead. When you download a unit, you'll download all the lessons in that unit.




Thursday, March 7, 2019

Revised Schedule

AM Class


Weeks 7-8
Week 7Unit 1, Lessons 1–8 and final project
Week 8Unit 2, Lessons 1–6
Week 9
Monday March 11Lesson 2.7: UIKit
Lesson 2.8: Data
Tuesday March 12Lesson 2.9: Controls
Lesson 2.10: Auto Layout
Weds. March 13Unit 2 Project: Apple Pie
Thurs. March 14Lesson 3.1: Optionals
Friday March 15Lesson 3.2: Type Casting
Week 10
Monday March 18Lesson 3.3: Guard
Tuesday March 19Lesson 3.4: Scope
Weds. March 20Lesson 3.5: Enumerations
Thurs. March 21Lesson 3.6: Navigation Controllers
Friday March 22Lesson 3.7: Tab Bar Controllers
Week 11
Monday March 25Lesson 3.8: Life Cycle
Tuesday March 26Lesson 3.9: Workflows
Weds. March 27Unit 3 Project: Personality Quiz
Thurs. March 28Core Data

PM Class

Week 8
Thurs. March 7Unit 2 Project: Apple Pie
Friday March 8Lesson 3.1: Optionals
Lesson 3.2: Type Casting
Week 9
Monday March 11Lesson 3.2: Type Casting
Lesson 3.3: Guard
Tuesday March 12Lesson 3.4: Scope
Lesson 3.5: Enumerations
Weds. March 13Lesson 3.5: Enumerations
Lesson 3.6: Navigation Controllers
Thurs. March 14Lesson 3.7: Tab Bar
Lesson 3.8: Life Cycle
Friday March 15Lesson 3.8: Life Cycle
Lesson 3.9: Workflows
Week 10
Monday March 18Unit 3 Project: Personality Quiz
Tuesday March 19Core Data



Sunday, February 24, 2019

Difficult Pages and New Concepts

Unit 1, Lesson 4:
  • Page 4 has some intricate logic but you should be able to work it out.
  • Page 7 uses switch statements with ranges. This is a new concept. Explanation is in the book.
  • Page 8 introduces the ternary operator. This is new. Explanation is in the book.
  • Page 9 also uses the ternary operator.

Unit 1, Lesson 6 will introduce you to debugging, breakpoints, and the debug console.

Unit 1, Lesson 8 has two different simple apps you will make.

Unit 1, Guided Light App will have you write and change code and change the UI to the best possible.


Unit 2, Lesson 1, Page 5 - You need to pay careful attention to the instructions, especially regarding the use of case sensitivity.

Unit 2, Lesson 2, Page 4 - The pacing function may be difficult for you to formulate. You want to compare the fraction of the distance completed (current distance / total distance) with the fraction of the time used (current time / goal time). If the distance is farther along than the time, then you will beat the goal time.

Unit 2, Lesson 2, Page 6 - This has another pacing function. To calculate the pace, remember that

current distance        total distance
-------------- = ------------
current time             total time

Or, you could look at it this way:

current distance / total distance = current time / total time
current distance        current time
-------------- = ------------
total distance             total time

You want to calculate the total time based on the other three. (This would tell you, for example, how many minutes it will take you to run a mile.) Figure out the equation to determine the total time.

Unit 2, Lesson 3, Page 7 - I could not get the didSet functions to work without causing an infinite loop.

Unit 2, Lesson 3, Page 8 - Be aware, the willSet function behaves differently than the didSet function.

Unit 2, Lesson 4 introduces classes, which is an entirely new concept. Classes are similar to structures but they have some added capabilities, such as inheritance. Inheritance is an important concept for you to know if you plan to continue on in the future to Java or Android programming or AP Computer Science. We should probably do this lesson together instead of independently.

Unit 2, Lesson 6 introduces new uses of the for...in loop, such as indexes and key/value pairs. It also introduces while loops, which are an alternative to for...in loops.

Unit 2, Lesson 8 asks you to create two small apps and make them look nice, but you do not need to use constraints or auto layout, which will be in a future lesson.

Unit 2, Lesson 9 asks you to connect a tap gesture recognizer. The gesture recognizer exists only in the document outline, so you'll need to make sure it is open.






Everyone Can Code, Part 2: Schedule

The ECC 180 hour series will be mostly review of the 90 hour series for units 1 and 2. So we will expect to do the lessons at a pace of about one per hour. For the morning class, this means two lessons per day. For the afternoon class, we can do three lessons per day.

Some lessons have new or difficult concepts, and we will allow extra time for those lessons.

AM Schedule


Week 7
Monday Feb 25Developer Account
Lesson 1.2: Constants and Variables
Lesson 1.3: Operators
Tuesday Feb 26Lesson 1.4: Control Flow
Lesson 1.5: Xcode App
Wednesday Feb 27Lesson 1.6: Debugging
Thursday Feb 28Lesson 1.8: Interface Builder
Unit 1 App: Guided Light
Friday March 1Lesson 2.1: Strings
Lesson 2.2: Functions
Week 8
Monday March 4Lesson 2.3: Structures
Lesson 2.4: Classes
Tuesday March 5Lesson 2.4: Classes (continued)
Lesson 2.5: Collections
Wednesday March 6No class?
Thursday March 7Lesson 2.6: Loops
Lesson 2.7: UIKit
Friday March 8Lesson 2.7: UIKit
Lesson 2.8: Data
Week 9
Monday March 11Lesson 2.9: Controls
Lesson 2.10: Auto Layout
Tuesday March 12Unit 2 App: Apple Pie


PM Schedule


Week 7
Monday Feb 25Developer Account
Lesson 1.2: Constants and Variables
Lesson 1.3: Operators
Lesson 1.4: Control Flow
Tuesday Feb 26Lesson 1.5: Xcode App
Lesson 1.6: Debugging
Wednesday Feb 27Lesson 1.8: Interface Builder
Unit 1 App: Guided Light
Thursday Feb 28Lesson 2.1: Strings
Lesson 2.2: Functions
Lesson 2.3: Structures
Friday March 1Lesson 2.4: Classes
Lesson 2.5: Collections
Week 8
Monday March 4Lesson 2.6: Loops
Lesson 2.7: UIKit
Lesson 2.8: Data
Tuesday March 5Lesson 2.9: Controls
Lesson 2.10: Auto Layout
Wednesday March 6Unit 2 App: Apple Pie
Thursday March 7Lesson 3.1: Optionals
Lesson 3.2: Type Casting
Friday March 8Lesson 3.3: Guard
Lesson 3.4: Scope

Saturday, February 9, 2019

Grades at Progress Report One

Monday night, 9:55 pm

GradeAM ClassPM Class
A65
B94
C112
D20
F13
Median8181
Highest9899
Lowest5326

AM class: Median came up from 73 to 81.

PM class: Median came up from 73 to 81 as students turned in the App Journals.





Tuesday, February 5, 2019

Create a free developer account for Xcode

Please follow the steps of this quick tutorial today.


HVAC App?

This is a dictionary of symbols used in HVAC (Heating, ventilation, and air conditioning). We have an HVAC class at SVCTE. The class needs to learn all these symbols. Could you write an app that helps these students?

HVAC Symbols Information Sheet


Friday, February 1, 2019

App Journal (PM Class only)

PM Class Only

Write up App Journal for lessons 4, 5, 6, and 7.

Due on Monday, Feb. 4.

Share your app journal with me from Google Docs. DO NOT print it out.


Why Morse Code?

Morse code … has become an efficient tool for people that struggle with communication. Tania Finlayson struggled with communication for most of her life due to cerebral palsy. ~ Anthony

Recently Google added the ability to type in Morse code, which to most seems like more of a gimmick rather than a feature. However, to a person with cerebral palsy or others who have trouble keeping their hands steady, using Morse code must be more convenient to use since there are only two buttons to press. ~ Randy

This system may be effective for those with issues in either speaking or typing. Tania Finlayson, an assistive tech developer with cerebral palsy, is a major beneficiary of this app because it has allowed her to communicate. ~ Ayush

Morse code seems inefficient in the sense that a majority of the population do not understand it. 

Finlayson was born with cerebral palsy, which made it difficult for her to talk with others. ~ Catherine

Morse code allows people with speech disabilities to communicate faster than just using a standard keyboard. ~ Huy

The target audience for this app are people who are not able to talk. ~ Brian

Tania’s life was really hard because she has a head stick to point until she got two switches near her head that help her to communicate with other people. ~ Dat

The invention is important because it translates Morse code and speaks out the words aloud in English, giving the user a voice of their own. It allows people with limited mobility to operate a cell phone. ~ Jaiya

This app’s target audience is people who cannot speak and have poor motor skills. It removes communication as a burden for those with cerebral palsy or similar conditions. ~ David


Wednesday, January 23, 2019

Google Adds Morse Code Accessibility Feature to Gboard on iOS

Read the following article about a Morse Code app for iOS. It includes a link to a Google Blog post. Read that article also; it is a more complete version. Your response should demonstrate that you read both whole articles (not just the headline or first paragraph) and understand it.

https://www.macrumors.com/2018/07/12/google-adds-morse-code-to-gboard-on-ios/

In your response, consider answering these questions:

What is Morse Code?
Is Morse Code an efficient way to communicate?
Who is the target audience for this invention or app?
What do you think about this invention or app?
Why is this invention or app important?
What did you learn by reading this article?
What did you find particularly interesting in this article?
Any other issues you find interesting or appropriate.

Your assignment should be written in paragraphs, not bullet points, and the above questions should not appear anywhere in your response.

Rubrics for this assignment are posted here: 

http://mobileapps1819.svctestudents.org/lessons/m0/Writing_Rubrics.pdf

Write up this assignment however you like (Google Docs, MS Word, or ???) but you must print out the assignment (preferably at home) and turn in the printout. Do not share your work with me on Google Docs. If you share with me on Google Docs, I will reduce your grade. This assignment is due on Friday, Jan. 26.


Tuesday, January 15, 2019

Santa Clara student creates DNA test for food allergies

Read the following article and respond. Your response should demonstrate that you read the whole article (not just the headline or first paragraph) and understand it.

https://www.sfchronicle.com/health/article/Why-is-there-not-something-better-Teen-13525123.php

In your response, consider answering these questions:
  1. How did this person learn how to do this?
  2. What purpose does this invention or app serve?
  3. Who is the target audience for this invention or app?
  4. What do you think about this invention or app?
  5. Why is this invention or app important?
  6. What did you learn by reading this article?
  7. What did you find particularly interesting in this article?
Rubrics for this assignment are posted here: http://mobileapps1819.svctestudents.org/lessons/m0/Writing_Rubrics.pdf

Write up this assignment however you like (Google Docs, MS Word, or ???) but you must print out the assignment (preferably at home) and turn in the printout. Do not share your work with me on Google Docs. If you share with me on Google Docs, I will reduce your grade. This assignment is due on Thursday, Jan. 17.


Monday, January 7, 2019

Welcome to Mobile Apps Spring 2018

Focus

This semester, we will focus on learning Swift and Xcode with the objective of making iPhone and iPad apps.

Overview

  1. Basics: Constants, Variables, Data Types, Operators
  2. Control Flow (decisions)
  3. Xcode and Interface Builder
  4. Strings
  5. Functions
  6. Structures and Classes
  7. Collections and Loops
  8. Data
  9. Controls
  10. Auto Layout and Stack Views
  11. Segues and Navigation Controllers
  12. Tab Bar Controllers
  13. Model View Controller (MVC)
  14. Scroll Views and Table Views
  15. Saving Data

Grading

  • 1/3 = Career Readiness: Participation and professionalism.
  • 1/3 = Technical competence: Writing code and turning in a final app.
  • 1/3 = Academic preparation: App planning, research, and idea generation.

Tentative Schedule

WeekAM ClassPM Class
190-hour lessons 9-1690-hour lessons 1-8
290-hour lessons 17-20
180-hour lessons 1.1-1.3
90-hour lessons 9-20
3180-hour lessons 1.4-1.6180-hour lessons 1.1-1.5
4180-hour lessons 1.7-1.8; 2.1-2.2180-hour lessons 1.6-1.8
5180-hour lessons 2.3-2.5180-hour lessons 2.1-2.4
6180-hour lessons 2.6-2.9180-hour lessons 2.5-2.8
7180-hour lessons 2.10-2.11; 3.1180-hour lessons 2.9-2.11
8180-hour lessons 3.2-3.4180-hour lessons 3.1-3.4
9180-hour lessons 3.5-3.7180-hour lessons 3.5-3.7
10180-hour lessons Unit 4...180-hour lessons Unit 4...
11-12Additional TutorialsAdditional Tutorials
13-18Final App ProjectFinal App Project

And more ...

You will also write more in your App Journal. You will study apps written by other students. You will do more app tutorials than those above. And you will plan and create your own useful app from beginning to end.



Tuesday, January 1, 2019

Homework Policies

Sharing Google Docs

Share your Google Docs with me at this email address:

mbrautigam@metroed.net

Please do not use any email address that appears to be MetroED but is actually Gmail. That email address has been decommissioned.

Turning in multi-file projects using ZIP/compress

This applies to:
  • Web sites with multiple files 
  • Logos (multiple formats) 
  • Xcode projects 
  • Perhaps others ... 
You must put all the files together into a folder and zip them up, then upload them to the server.

Playgrounds must be zipped up but you do not need to put them into a folder first.

Resubmit Policy

Written Assignments

You can upgrade written assignments at any time by turning in a new printed copy with the old version (or versions) attached behind.

The reason for this is that we want you to have every opportunity to improve your English skills.

Web and Xcode Assignments

Don't bother turning in a technical assignment if you got 80% (usually 8 points) or more on it. I can revise your grade upward, but then I'll have to assess a late penalty.

The lesson is: turn in all your technical assignments on time.

SVG code template

Use this code to get started using SVG:

<svg width='600' height='400' viewBox='0 0 600 400'
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink= "http://www.w3.org/1999/xlink">

    <!-- the clipping paths and masks will go here -->

    <defs>
    </defs>

    <!-- the shapes and stuff will go here -->

    <rect x='0' y='0' width='600' height='400' fill='beige' />

</svg>

Radial gradients:

http://www.w3schools.com/svg/svg_grad_radial.asp

HTML Code Template

Here is a template for the minimal complete HTML page. If your page doesn't have all these elements, you should edit your page to include all of them. When you start a new page, you can copy and paste this code to get started.

<!DOCTYPE html>
<html>
<head>
    <!--
    YOUR NAME HERE, date, project name, class, etc.
    -->
    <meta charset='utf-8' />
    <title>My Web Page</title>
    <style type='text/css'>
    /* styles go here */

    </style>
</head>

<body>
    <h1>My Web Page</h1>
    <!-- page content will go here -->

    <script type='text/javascript'>
    // scripts will go here

    </script>
</body>
</html>

Add this line in the <head> section if you use responsive design:
    <meta name="viewport" content="width=device-width" /> 

Here is the code for a bullet list:

<ul>
    <li>Mission College
    <li>Ohlone College
    <li>West Valley College
    <li>Foothill College
</ul>

Here is the code for a table:

<table>
    <tr>
        <th>Key</th>
        <th>Command</th>
    </tr>
    <tr>
        <td>Cmd-Space</td>
        <td>Spotlight</td>
    </tr>
    <tr>
        <td>Cmd-S</td>
        <td>Save</td>
    </tr>
</table>

Here is an excellent tutorial on HTML tables (thank you to the student who linked this to your page):

http://www.w3schools.com/html/html_tables.asp

Spring 2018

Any posts beyond this point are from Spring 2018 and are here for informational purposes only.