From cdc4f32b14fa70256a67fbc169c26695431607f5 Mon Sep 17 00:00:00 2001 From: DCWCU13 <86099944+DCWCU13@users.noreply.github.com> Date: Thu, 24 Jun 2021 20:30:12 +0700 Subject: [PATCH] Update Morse.swift I have no clue how to effectively finish Option Challenge 3: Modify your code to make the first letter of each sentence capitalized when translating from Morse code to text. --- 6-dictionaries/Morse Decoder/Morse.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/6-dictionaries/Morse Decoder/Morse.swift b/6-dictionaries/Morse Decoder/Morse.swift index ce1c7de..38918db 100644 --- a/6-dictionaries/Morse Decoder/Morse.swift +++ b/6-dictionaries/Morse Decoder/Morse.swift @@ -41,7 +41,7 @@ var lettersToMorse: [String: String] = [ "?": "..--..", ",": "--..--" ] - +//Option Challenge 1 see above, ".", "!", "?". "," all have been added to the Morse code. // Encoding a Message @@ -123,3 +123,6 @@ for morseValue in morseCodeArray { } } print (decodedMessage) + + +//Option Challenge 2 add .lowercased() after the var String englishText on line 52.