diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..501e9cb Binary files /dev/null and b/.DS_Store differ diff --git a/RamirezElizabeth/.DS_Store b/RamirezElizabeth/.DS_Store new file mode 100644 index 0000000..c2435ce Binary files /dev/null and b/RamirezElizabeth/.DS_Store differ diff --git "a/Test 1 ECC @ Laboratoria.playground/Pages/Introducci\303\263n.xcplaygroundpage/Contents.swift" "b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Introducci\303\263n.xcplaygroundpage/Contents.swift" similarity index 100% rename from "Test 1 ECC @ Laboratoria.playground/Pages/Introducci\303\263n.xcplaygroundpage/Contents.swift" rename to "RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Introducci\303\263n.xcplaygroundpage/Contents.swift" diff --git a/Test 1 ECC @ Laboratoria.playground/Pages/Swift.xcplaygroundpage/Contents.swift b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Swift.xcplaygroundpage/Contents.swift similarity index 84% rename from Test 1 ECC @ Laboratoria.playground/Pages/Swift.xcplaygroundpage/Contents.swift rename to RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Swift.xcplaygroundpage/Contents.swift index d251aa3..90981e4 100644 --- a/Test 1 ECC @ Laboratoria.playground/Pages/Swift.xcplaygroundpage/Contents.swift +++ b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Swift.xcplaygroundpage/Contents.swift @@ -8,14 +8,35 @@ import Foundation //: 1. Escribe un hola mundo en Swift //Respuesta: +print("hola mundo") + //: 2. Escribe un ejemplo de String Interpolation //Respuesta: + + +let two = "hola" +let one = "amigo" +let plus = "\(hola),\(amigo)" + +print​(​plus) + +​ + //: 3. Declara un arreglo constante de tipo Double con los siguientes elementos: 1.0, 5.0, 33.3, 45.5 //Respuesta: //: 4. Usando un ciclo for, itera sobre el arreglo de la pregunta 3 e imprime cada uno de los elementos del arreglo. //Respuesta: +var cero: Int = 0 + +for _ in 1...45 { + + cero += 1 + + print(cero) + +} //: 5. Declara la enumeración llamada Planet y como casos ocupa los siguientes: //: - Mercury @@ -23,10 +44,17 @@ import Foundation //: - Earth //: - Mars //Respuesta - +enum planets { + case mercury + case venus + case earth + case mars +} //: 6. Declara una constante llamada planet y asígnale un caso de la enumeración Planet (el caso que quieras) //Respuesta: +let planet = planets (.venus) + //: 7. Utiliza una sentencia switch para imprimir un mensaje dependiendo del valor de la constante planet de la pregunta 6. //Respuesta: @@ -37,6 +65,14 @@ let book = "Outliers" //Respuesta: +func booksA() -> Bool { + let books = true + return books +} + + + + //: 9. Finalmente, crea una estructura llamada ```Person``` que tenga como atributos: //: - name: String //: - books: [String] diff --git "a/Test 1 ECC @ Laboratoria.playground/Pages/Teor\303\255a.xcplaygroundpage/Contents.swift" "b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Teor\303\255a.xcplaygroundpage/Contents.swift" similarity index 85% rename from "Test 1 ECC @ Laboratoria.playground/Pages/Teor\303\255a.xcplaygroundpage/Contents.swift" rename to "RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Teor\303\255a.xcplaygroundpage/Contents.swift" index 87a8abf..97b7746 100644 --- "a/Test 1 ECC @ Laboratoria.playground/Pages/Teor\303\255a.xcplaygroundpage/Contents.swift" +++ "b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/Pages/Teor\303\255a.xcplaygroundpage/Contents.swift" @@ -6,24 +6,29 @@ //: 1¿Qué hace el archivo ViewController.swift? /* Respuesta: + enlaza la parte visual de la aplicacion con el codigo + */ //: 2. ¿Qué puedes hacer dentro del archivo Main.storyboard? /* Respuesta: + disenar la parte grafica de la aplicacion */ //: 3. ¿Cuál es la diferencia entre IBOutlet y IBAction? /* Respuesta: + IBOutlet es una variable y IBAction es una funcion */ //: 4. ¿Menciona al menos una ventaja al utilizar UIStackView? /* Respuesta: + simplificar los layouts */ @@ -34,6 +39,7 @@ Respuesta: //: d) Swift: 5.0 iOS: 13 /* Respuesta: + d) Swift: 5.0 iOS: 13 */ @@ -43,6 +49,7 @@ Respuesta: //: - c) Ninguna de las anteriores /* Respuesta: + b) Agregar constraints */ @@ -53,7 +60,7 @@ Respuesta: //: - d) Ctrl + Drag del botón a la vista B > Método de presentación: PresentModally /* Respuesta: - + c) Ctrl + Drag del botón a la vista B > Método de presentación: Show */ //: [Next](@next) diff --git a/Test 1 ECC @ Laboratoria.playground/contents.xcplayground b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/contents.xcplayground similarity index 72% rename from Test 1 ECC @ Laboratoria.playground/contents.xcplayground rename to RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/contents.xcplayground index d623166..20451a0 100644 --- a/Test 1 ECC @ Laboratoria.playground/contents.xcplayground +++ b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/contents.xcplayground @@ -1,5 +1,5 @@ - + diff --git a/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/contents.xcworkspacedata b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/contents.xcworkspacedata rename to RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/contents.xcworkspacedata diff --git a/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/appledevice23.xcuserdatad/UserInterfaceState.xcuserstate b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/appledevice23.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..1cd5e10 Binary files /dev/null and b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/appledevice23.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/nestorivanmo.xcuserdatad/UserInterfaceState.xcuserstate b/RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/nestorivanmo.xcuserdatad/UserInterfaceState.xcuserstate similarity index 100% rename from Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/nestorivanmo.xcuserdatad/UserInterfaceState.xcuserstate rename to RamirezElizabeth/Test 1 ECC @ Laboratoria.playground/playground.xcworkspace/xcuserdata/nestorivanmo.xcuserdatad/UserInterfaceState.xcuserstate