Convierte tus certificados en títulos universitarios en USA

Antes: $249

Currency
$209

Paga en 4 cuotas sin intereses

Paga en 4 cuotas sin intereses
Suscríbete

Termina en:

16 Días
11 Hrs
50 Min
4 Seg

Project: Create and read your code

5/13

Lectura

It’s time for you to practice what you have learned in this module!

...

Regístrate o inicia sesión para leer el resto del contenido.

Aportes 41

Preguntas 1

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

Create and Read your code

while(n <= 3){
    if(ages[n] >= 18){
        console.log("You're older")
    } else{
        console.log("You're a minor")
    }
    n++
}
  • Okey let’s begin, my example is about a while loop.
  • while, open parenthesis, N smaller equal 3, close parenthesis, open bracket, if, open parenthesis, ages, open square bracket, N, close square bracket, greater equal, eighteen, close parenthesis, open bracket, console dot log, open parenthesis, open double quotes, You’re older, close double quotes, close parenthesis, close bracket, else, open bracket, console dot log, open parenthesis, open double quotes, You’re a minor, close double quotes, close parenthesis, close bracket, n plus plus, close bracket.
  • I started with a Docstring between two slash and asterisk.

  • Then I create a class named ListNode and open a curly bracket.

  • Creating a function named constructor and between parentesis, I put two parameters separate by a comma and again open a curly bracket.

  • We define two variables with the ternary operator, if the value is undefined, we set a default value after de question mark, otherwise, we assign the value of the parameter, and close with a curly bracket and a semicolon.

  • Then I define a method called printListNode with a docstring, and this method don’t receive any parameters, I set the instance of the class in the current variable.

  • I make a loop with a while as long as the variable current isn’t null, then I print current value and update the current variable with his next value.

  • And finally, close the while loop, the printListNode method and the ListNode class, each one with a curly bracket and a semicolon.

def calcularPromedio(nota1,nota2,nota3):
promedio = (nota1+nota2+nota3)/3
return promedio

print(calcularPromedio(4.0, 4.5, 2.0))

```js if(age < 18){ console.log("You can enter the nightclub") } else{ console.log("You're a minor, you can't enter") } ```if(age < 18){ \<u>console\</u>.log("You can enter the nightclub") } else{ \<u>console\</u>.log("You're a minor, you can't enter") }
public String evalNumber(int num) { final String msg = num > 10 ? "Number is greater than 10" : "Number is less than or equal to 10"; return msg; } I created a function that return a string whit a unique number as parameter this function eval if this number if greather, smaller or equals to number 10 inside of the function i declared a final string variable with the name msg, to save the result of the comparison using a ternary operation i had evaluated if the parameter number if greather than 10 if the case is positive then return the string "Number is greater than 10" otherwise return the string "Number is less than or equal to 10" at the end of the function return the respective message
Here is my recording fir for the logic <https://vocaroo.com/1aSB7COAbDiL> and now with a syntax <https://vocaroo.com/120Os54qcaM9> ```python def fibonacci(limit): a, b = 0, 1 while a< limit: yield a a, b = b, a + b for num in fibonacci(100): print(num) ```
```js const handleConvertTime = ({ time, formatToConvert }: { time: number; formatToConvert: "miliSeconds" | "minutes" | "hours" | "days"; }) => { if (formatToConvert === "miliSeconds") { return time / 1000; } if (formatToConvert === "minutes") { return time / 60; } if (formatToConvert === "hours") { return time / 3600; } if (formatToConvert === "days") { return time / 86400; } }; ```This useful function helps convert a given time in seconds into its equivalent in days, hours, minutes, or milliseconds. We can read it in the following way: If the `formatToConvert` is set to 'days,' the code on line 20 divides the given time in seconds by 86,400 (the number of seconds in a day). This calculation returns the number of days represented by the given seconds. You can apply the same reading logic to the other `if` statements as well.
![]()const handleConvertTime = ({ time, formatToConvert}: { time: number; formatToConvert: "miliSeconds" | "minutes" | "hours" | "days";}) => { if (formatToConvert === "miliSeconds") { return time / 1000; } if (formatToConvert === "minutes") { return time / 60; } if (formatToConvert === "hours") { return time / 3600; } if (formatToConvert === "days") { return time / 86400; }}; ```js const handleConvertTime = ({ time, formatToConvert }: { time: number; formatToConvert: "miliSeconds" | "minutes" | "hours" | "days"; }) => { if (formatToConvert === "miliSeconds") { return time / 1000; } if (formatToConvert === "minutes") { return time / 60; } if (formatToConvert === "hours") { return time / 3600; } if (formatToConvert === "days") { return time / 86400; } }; ```
```js files_found = [] # Directory exists? if not os.path.exists(dir_path): raise FileNotFoundError(f'The directory "{dir_path}" doesnt not found.') for file in os.listdir(dir_path): if file_includes in file: files_found.append(file) if return_first: break ```This is a fragment of a function in python that allows to find files, it could be read as: files underscore found, equals to, open square bracket, close square bracket. if not, o-s dot path dot exists, open parenthesis, dir uderscore path, close parenthesis, colon, raise file not found error, open parenthesis f (format string) , single quote , the directory, double quote, open curly bracket, dir underscore path, close curly brackets, double quotes, doesn't found, point , single quote, close pharenthesis, for file in o-s dot listdir, open parenthesis, dir underscore path, close parenthesis, colon, if file underscore includes, in file, colon, files underscore found, dot append, open parenthesis, file, close parenthesis, if return underscore first, colon, break
**<u>SCRIPT (python)</u>** name = input("Enter your name: ") age = input("Enter your age: ") greeting = f"Hello, {name}! You are {age} years old." print(greeting) print("Have a great day!") **DESCRIPTION:** The script starts by asking the user to enter their name. This is done using the input() function, and the response is stored in a variable called name. Next, it prompts the user to enter their age. Again, this is done using the input() function, and the response is stored in another variable named age. After, the script then constructs a greeting message. It combines the user's name and age using an f-string to format the message as: "Hello, \[name]! You are \[age] years old." This formatted string is stored in a variable called greeting. Next, it displays the personalized greeting message to the user using the print() function. Finally, it prints an additional message: "Have a great day!" to complete the interaction.
My code * I start by writing a function call **foo,** this function recieve two params, **param1** and **param2.** * Inside of the function I declared a variable **result** that have a conditional; this conditional checks if **param1** is less than **param1** , if it's correct, then sum **param1** with **param2;** if it's incorrect, then substract **param1** minus **param2** * After that I console the result and return the result * Finally I called the function with the params **2** and **8** **Greetings!** ```js function foo(param1,param2){ let result = param1 < param2 ? param1 + param2 : param1 - param2 console.log(result) return result } foo(2,8) ```
```js if(age < 18){ <u>console</u>.log("You can enter the nightclub") } else{ <u>console</u>.log("You're a minor, you can't enter") } ```if(age < 18){ \<u>console\</u>.log("You can enter the nightclub") } else{ \<u>console\</u>.log("You're a minor, you can't enter") }
if(age < 18){ <u>console</u>.log("You can enter the nightclub") } else{ <u>console</u>.log("You're a minor, you can't enter") }
if (rbRDL.Checked) { tipo = "R"; } else if (rbIndirect.Checked) { tipo = "I"; } My example is the next form: id open parenthesis rbRDL dot checked close parenthesis open brackets tipo equal double quotes I double quotes close brackets
let edad =  10; if (edad > 17){  console.log('Usuario mayor de edad'); } else if (edad>13){    console.log('Usuario necesita estar acompañado de su acudiente'); } else{ console.log('No puede ingresar'); } My code/example focuses on age range where if the child/youngster is above 13, they have to be accompanied by their parents/guardian; if they are above 17 they can pass through. However if they are below 13, they cannot enter even if they are accompanied. let, edad equal to 10, semicolon if, open parentheses, edad greater than 17, close parentheses, open curly brackets console dot log, open parentheses, open single quotes, Usuario mayor de edad, close single quotes, close parentheses, semicolon close curly brackets, else if, open parentheses, edad greater than 13, close parentheses, open curly brackets console dot log, open parentheses, open single quotes, Usuario necesita estar acompañado de su acudiente, close single quote, close parentheses, semicolon close curly brackets, else, open curly brackets console dot log, open parentheses, open single quotes, No puede ingresar, close single quotes, close parentheses, semicolon close curly brackets
## Create and Read your code ```txt fun isCapicua(number: Int){ val numberString = number.toString() if (numberString == numberString.reversed()) Log.e("Capicua", "The number $number is capicua") else Log.e("Capicua", "The number $number isn't capicua") } ```My sample is: Function isCapicua, open parenthesis, number of type Int, close parenthesis, open curly braces, declare variable numberString as number dot toString, open and close parenthesis, if, open parenthesis, numberString is equal to numberString dot reversed, open and close parenthesis, close parenthesis, Log dot e, open parenthesis, "Capicua", comma, "The number $number is capicua", close parenthesis, else, Log dot e, open parenthesis, "Capicua", comma, "The number $number isn't capicua", close parenthesis, close curly braces.
\<html> \<head> \<title> Mi primera pagina\</title> \<script> a=7 b=9 alert("El valor de a+b es " + a + b) \</script> \</head> \<body> \

primer intento de website\

\

Este es nuestro primer programa completo y profecional\

\</body> \</html>
```java public static int fibonacci(int n) { if (n <= 1) { return n; } else { return fibonacci(n - 1) + fibonacci(n - 2); } } ```The algorithm that I will describe is the Recursive Fibonacci. The algorithm I will describe is the Recursive Fibonacci. It starts with the access modifier 'public', followed by the 'static' keyword and 'int' which represents the data type of the return value. Next is the name of the function, which is 'fibonacci', followed by an open parenthesis, 'int' representing the data type of the function's parameter named 'n', and a close parenthesis. Then, there's an open curly bracket indicating the start of the function. After that, there is an 'if' statement with an open parenthesis, checking if the variable 'n' is less than or equal to one, followed by a close parenthesis. Then, there's an open curly bracket for the conditional block. Inside it, there's a 'return' statement returning the variable 'n', followed by a semicolon, and a close curly bracket. After the 'if' block, there's an 'else' statement followed by an open curly bracket. Inside the 'else' block, there's a 'return' statement calling the 'fibonacci' function recursively with the argument 'n - 1' added to 'fibonacci' called recursively with the argument 'n - 2', followed by a semicolon. Finally, there's a close curly bracket for the 'else' block and another close curly bracket for the function. Audio: <https://voca.ro/1bJanpTr8r1P>
`public static int fibonacci(int n) {` ` if (n <= 1) {` ` return n;` ` } else {` ` return fibonacci(n - 1) + fibonacci(n - 2);` ` }` `}`
`<style>` `section`{ `widt: 100%` `display: flex` `justify-content: center;` `}` `</style>` This code sets the width of all `<section>` elements to 100% and uses flexbox (`display: flex`) to center their contents horizontally (`justify-content: center`) \<style> OPEN ANGLE BRACKET / CLOSE ANGLE BRACKET section{ CURLY BRACKET width: 100% COLON display: flex COLON justify-content: center; HYPHENDASH / COLON / SEMICOLON }. CURLY BRACKET \</style> ANGLE BRACKET / DIVISION
![]()for num in range(1, 101): if num % 3 == 0 and num % 5 == 0: print("FizzBuzz") elif num % 3 == 0: print("Fizz") elif num % 5 == 0: print("Buzz") else: print(num) -I started using a for loop with a range in parentheses from 1 to 101. -For each iteration, I use an if-elif-else statement to check multiple conditions based on the value of 'num'. -I start with a Yes. If the remainder of num divided by 3 is zero and the remainder of num divided by 5 is zero, I print 'FizzBuzz' which I put in parentheses. The logical 'and' operator ensures that both conditions are true. -Then, I use an elif. If the above condition is false, but the remainder of num divided by 3 is zero, I print 'Fizz' placed in parentheses. -Next, I use another elif. If both conditions above are false, but the remainder of num divided by 5 is zero, I print 'Buzz' placed in parentheses. -And finally, if none of the conditions are met, I print the current value of num, placed in parentheses. This completes the program, using a for loop and conditional statements to determine the output of each number.
![](https://static.platzi.com/media/user_upload/image-5f55d45c-eb0d-4d78-b006-67493289b037.jpg) I start my code with an immediately-invoked function expression (IIFE) written in TypeScript. This pattern is often used to create a new scope for variables to avoid polluting the global scope. Then I declare a type with the name Sizes equal the diferrents types wrapping each one in singles quotes and separate them by pipes. Declare a function name createProductToJson, inside parentheses I specified which params and what type of params are they, finally I return an object
Create and Read your code. ```js animals = ['Zebra', 'Leon', 'Octopus', 'Hen', 'Chicken'] for animal in animals: print("The animal is: ", animal) ```First create a list called animals and asign to it 5 animal numbers, Now create a for loop to go througt animals list, then print the result adding a string "The animal is: " coma and the iterable from the list to see the result. \---------------------------------------------------------------------------------------------- Create a list called animals equals open square brackets open single quotes type an animal close single quoutes coma open single quotes and close them for 4 animals more then close square brackets then use for animal in animals column, new line indent type print open parenthesis opne double quotes type The animal is close double quotes coma and add animal iterable from for loop and colse parenthesis. run it and you'll see all the animals printed out.
`while(n <= 3){` ` if(ages[n] >= 18){` ` ``console``.log("You're older")` ` } else{` ` ``console``.log("You're a minor")` ` }` ` n++` `}` * Okey let’s begin, my example is about a while loop. * while, open parenthesis, N smaller equal 3, close parenthesis, open bracket, if, open parenthesis, ages, open square bracket, N, close square bracket, greater equal, eighteen, close parenthesis, open bracket, console dot log, open parenthesis, open double quotes, You’re older, close double quotes, close parenthesis, close bracket, else, open bracket, console dot log, open parenthesis, open double quotes, You’re a minor, close double quotes, close parenthesis, close bracket, n plus plus, close bracket.

let a, b;c
a=3; b=2;
c = a + b;
console.log("el resultado es: "+c);
declarative variables whit nambers: a,b,c.
initialize the variable a equal to 3, b equal to 2.
C it is equial to

If (input > = 0) { Classify = “positive” } Else { Classify = “negative” } If, open parenthesis, ‘input’, greater or equal than ‘Zero’, close parenthesis, open bracket, ‘classify’ equal ‘positive’ end bracket, ‘else’, open bracket, classify equal ‘negative’ end bracket.
let nombre = prompt('ingresa tu nombre')
//First I define the variable nombre, which will receive the user's name.


function saludo(name){
    let mensaje = 'Hola ' + name
    return mensaje;
}
//Then I create a function that receives the name variable as a parameter and returns it accompanied by a greeting message.

saludo(nombre)
//Finally I call the variable
\# Input a number user\_input = float(input("Enter a number: ")) \# Calculate the square square\_result = user\_input \*\* 2 \# Display the result print(f"The square of {user\_input} is: {square\_result}")
Here is my example : ```python """ Write a program that shows on console (with a print statement) numbers from 1 to 100 (both included and with a line break between each number), replacing the following: - Multiples of 3 with the word "fizz" - Multiples of 5 with the word "buzz" - Multiples of 3 and 5 with the word "fizzbuzz" """ for i in range(1, 101): multiple3 = i % 3 multiple5 = i % 5 if multiple3 == 0: i = "fizz" if multiple5 == 0: i = "buzz" if multiple3 == 0 and multiple5 == 0: i = "fizzbuzz" print(i) # for loop, int i in range, open paranthesis, 1 comma 101 , close parenthesis , colon # var multiple3, equals, open parenthesis, i mod 3, close parenthesis # var multiple5, equals, open parenthesis, i mod 5, close parenthesis # if var multiple3 doble equals zero , colon , i equals, open doble quotes , fizz , close doble quotes # if var multiple5 doble equals zero , colon , i equals, open doble quotes , buzz , close doble quotes # if var multiple3 doble equals zero and var multiple5 doble equals zero , colon , i equals, open doble quotes , fizzbuzz , close doble quotes # print statement , open parenthesis , int i, close parenthesis # Simplified version : # for loop int i in range of 1 to 101, starts loop # var multiple3 equals to i mod 3 # var multiple5 equals to i mod 5 # if var multiple3 equals to zero then int i equals to string fizz # if var multiple5 equals to zero then int i equals to string buzz # if var multiple3 and var multiple5 equals to zero then int i equals to string fizzbuzz # print int i ```""" Write a program that shows on console (with a print statement) numbers from 1 to 100 (both included and with a line break between each number), replacing the following: - Multiples of 3 with the word "fizz"- Multiples of 5 with the word "buzz"- Multiples of 3 and 5 with the word "fizzbuzz"    """ for i in range(1, 101):    multiple3 = i % 3    multiple5 = i % 5     if multiple3 == 0:        i = "fizz"    if multiple5 == 0:        i = "buzz"    if multiple3 == 0 and multiple5 == 0:        i = "fizzbuzz"    print(i) *# for loop, int i in range, open paranthesis, 1 comma 101 , close parenthesis , colon# var multiple3, equals, open parenthesis, i mod 3, close parenthesis# var multiple5, equals, open parenthesis, i mod 5, close parenthesis# if var multiple3 doble equals zero , colon , i equals, open doble quotes , fizz , close doble quotes# if var multiple5 doble equals zero , colon , i equals, open doble quotes , buzz , close doble quotes# if var multiple3 doble equals zero and var multiple5 doble equals zero , colon , i equals, open doble quotes , fizzbuzz , close doble quotes# print statement , open parenthesis , int i, close parenthesis* *# Simplified version :# for loop int i in range of 1 to 101, starts loop#   var multiple3 equals to i mod 3#   var multiple5 equals to i mod 5#   if var multiple3 equals to zero then int i equals to string fizz#   if var multiple5 equals to zero then int i equals to string buzz#   if var multiple3 and var multiple5 equals to zero then int i equals to string fizzbuzz#   print int i*
`name = input("Enter your name: ")` `print("Hello, " + name + "! Welcome to the world of coding.")` **Name equals input, open parenthesis, quote, enter your name, colon, quote, close parenthesis, newline, print, open parenthesis, quote, Hello, space, plus, space, name, plus, space, exclamation mark, space, Welcome to the world of coding, quote, close parenthesis**
![](https://static.platzi.com/media/user_upload/image-9d158526-7bb8-4569-b9d4-a8424b8dc2bd.jpg) Function fireAtack empty parentheses and open curly bracket Indent playerAtack equal to open quote fire close quote Indent alert open parens playerAtack close parens Indent Random enemy attack empty parentheses closing curly bracket
let fecha = new Date(); let day = fecha.getDay(); if (day === 0) fecha.setDate(fecha.getDate() + 1); console.log(fecha);
```js for (i = 0; i < numbers.length; i++) { console.log(numbers[I]); } ```for (i = 0; i < numbers.length; i++) { console.log(numbers\[I]); } For, open parentheses, variable (i) is equal to zero, semicolon, if variable (i) less than variable number dot length, semicolon, variable (i) plus plus, close parentheses, open bracket, in dent, console dot log, open parentheses , variable numbers open square brackets , variable (i), close square brackets, close parentheses, semicolon , end bracket.

const getProductsDetails = useCallback(() => {
getProductsTitle(title).then(({ products }) => {
console.log(products);
setProductsDetails(products);
});
}, [])

I used the next code :) ![](https://static.platzi.com/media/user_upload/Captura%20de%20Pantalla%202023-11-02%20a%20la%28s%29%209.01.11%20a.m.-ae30f53f-a1f6-43d0-ab8a-e6f39f686e61.jpg) I created a function for that when the user click on icon count the number of clicks and add them up. * first line: Then i wrote like dot addEventListener open parentesis and open double quotation marks i wrote click and close parentesis and doble quatation marks, after i wrote a arrow function with equal and the symbol greater than and comma and open curly brakets. * second line: Contain a constant named clicked igual true and finish with semicolon. * thirth line: I started with an if bewteen parentesis clicked and after open curly brakets. * fourth line: I wrote spanIcon dot innerHTML and equal and bewteen single quotation marks an icon and ends with semicolon * fifth line: I wrote spanBtn dot textContent and two plus symbols and ends with a semicolon. * sixth line: Close curly brakets and star else opening other curly brakets * seventh line: I wrote spanIcon dot innerHTML and equal and bewteen single quatation marks an icon and ends with semicolon * eighth line: I wrote spanIcon dot textContent and two minus symbols and ends with semicolon * nineth line: Symbol close curly brakets * tenth line: close curly brakets, close parentesis and close again curly brakets and ends with semicolon. I hope you understand my code, reading the symbology of my explanation. Good day everyone!! ![](<Captura de Pantalla 2023-11-02 a la(s) 9.01.11 a.m.>)![](<Captura de Pantalla 2023-11-02 a la(s) 9.01.11 a.m.>)
```js ```I used the next code :) ````js like.addEventListener("click", () => { let clicked = true; if(clicked){ spanIcon.innerHTML = ''; spanBtn.textContent++; }else{ spanIcon.innerHTML = ''; spanBtn.textContent--; } }); } ```like.addEventListener("click", () => { let clicked = true; if(clicked){ spanIcon.innerHTML = '\\'; spanBtn.textContent++; }else{ spanIcon.innerHTML = '\\'; spanBtn.textContent--; }}); } ````

Declaración de variables

name = "John"
age = 30
scores = [90, 85, 88, 92, 78]
is_student = True

Procesamiento de datos

average_score = sum(scores) / len(scores)
is_adult = age >= 18

Condicionales

if is_adult:
print(f"{name} is an adult with an average score of {average_score}.")
else:
if is_student:
print(f"{name} is a student with an average score of {average_score}.")
else:
print(f"{name} is not an adult, and not a student with an average score of {average_score}.")

Bucle

for score in scores:
if score >= 90:
print(f"High score: {score}")
else:
print(f"Normal score: {score}")

Diccionario

person_info = {
“name”: name,
“age”: age,
“is_student”: is_student,
“average_score”: average_score
}

Imprimir el diccionario

print(“Person’s Information:”)
for key, value in person_info.items():
print(f"{key}: {value}")

Descripción:

  • We declare variables like name, age, scores, and is_student to store different types of data.

  • We calculate the average_score by summing the scores and dividing by the number of scores.

  • We determine if is_adult is True if the age is greater than or equal to 18.

  • In the conditional statements, we check if is_adult is True and print a message accordingly. If not, we check if the person is a student or not based on the is_student variable.

  • We iterate through the scores using a loop, checking each score and printing whether it’s a high score or a normal score.

  • We use a dictionary named person_info to store information about the person, such as their name, age, student status, and average score.

  • Finally, we print the person’s information by looping through the dictionary and displaying key-value pairs.

```js // JavaScript example code var weather = prompt("How's the weather today?: A) Sunny B) Cloudy C) Rainy"); if (weather.toLowerCase() === "a") { var message = alert("It is sunny.") } else if (weather.toLowerCase() === "b") { var message = alert("It is cloudy.") } else if (weather.toLowerCase() === "c") { var message = alert("It is rainy.") } else { var message = alert("Wrong choise!") }; ```
int counter=0;
  do {
  int age=Integer.parseInt(JOptionPane.showInputDialog("Imput your age"));

    if (age>18){
         System.out.println("You are 18 older");
     }
     else{
          System.out.println("You are a minor, try again");
     }
     counter++;
     } while (counter<3);
        System.out.println("Thanks");
  • We start in class main named example; then, I defined a variable like counter that is type int and is equal cero.

  • I opened the loop do and opened curly brackets; inside that, I used a variable type int to show on screen a message with the method JOption pane.

  • I opened the conditional if and opened parenthesis to put inside the condition; I closed parenthesis and opened curly brackets, with the method “sysout” to show in console the message.

  • I did the same with the condition else. I opened curly brackets, and inside, I put there a sysout to show the message in console.

  • When the loop finish, It gonna addition once at the variable counter; so, when counter will be 3 ,the loop close and show in the console opening quotes: “thanks”, close quotes and finished the program

function calcularModa(lista){
const listaCount = {};

for (let i = 0; i < lista.length; i++) {
    const elemento = lista[i];

if  (listaCount[elemento]) {
    listaCount[elemento] += 1;
}else{
    listaCount[elemento] = 1;
    }
}
```js a=29 b=7 c=a-b 22 alert(“Gabriel and I are family’s friends and we’re 22 years away”) while(n >= 432) { if(dollars[n] <= 12) { console.log(“A soccer player buys a gold ball with 12 dollars”) } else{ console.log(“A music graduate saves 432 dollars on a CDT”) } ```Hello people in class, this is my code’s example: A equal twenty nine, B equal seven, C equal A minus B, twenty two, alert, open parentheses, open double quotes, Gabriel and I are family’s friends and we’re 22 years away, close double quotes, close parentheses, while, open parentheses, N greater equal four hundred and thirty two, close parentheses, open curly brackets, if, open parentheses, dollars, open square brackets, N, close square brackets, smaller equal twelve, close parentheses, open curly brackets, console dot log, open parentheses, open double quotes, A soccer player buys a gold ball with twelve dollars, close double quotes, close parentheses, close curly brackets, else, open curly brackets, console dot log, open parentheses, open double quotes, A music graduate saves four hundred and thirty two dollars on a CDT, close double quotes, close parentheses, close curly brackets. ***AUDIO:*** <https://voca.ro/170r8oe2ZA00>