RE: SEC S20W02 - Basic Programming Course: Lesson #2 - Variables and Types of Data
!upvote 100
- Task 1: Excellent (2.5 pts)
Explicaste de forma clara y precisa lo que son las variables y cómo nos ayudan en la programación, me alegra mucho que hayas disfrutado la analogía que plantee sobre este tema y que lo hayas entendido a la perfección.
- Task 2: Excellent (2.5 pts)
Categorizaste de forma correcta todas las variables planteadas, me alegra que hayas investigado un poco sobre por qué el número de teléfono debería ser un carácter.
- Task 3: Excellent (2.5 pts)
Explicaste el código planteado y viste un ejemplo de cómo funcionaría, muy buen trabajo
- Task 4: Excellent (2.5 pts)
En un programa serio y funcional el precio del STEEM podríamos conseguirlo a través de un valor en el Blockchain o Exchange. en un caso así lo más óptimo sería dejar al usuario establecer el precio, ya que este es un valor cambiante y ponerlo de forma estática en el código no sería muy óptimo.
Cómo información adicional me gustaría mencionarte que puedes dar valores a las variables de forma directa cuando las estás declarando, por ejemplo:
Define steem_price=0.16 As Real;
Y te ahorras una línea de código, muy buen trabajo resolviendo el ejercicio
Description | Information |
---|---|
Grade | 10/10 |
Plagiarism Free | ✅ |
#steemexclusive | ✅ |
IA Free | ✅ |
the post has been upvoted successfully! Remaining bandwidth: 100%
In a serious and functional program, the price of STEEM could be obtained through a value in the Blockchain or Exchange.
--- > It crossed my mind, and I thought this is a super case, I hope one day we will come to talk about how to perform such data obtaining.
In such a case, the best option would be to let the user set the price, since this is a changing value and setting it statically in the code would not be very optimal.
---- > Yes, Professor, I now see why to let the user set the price is the best option in this scenario. I was just playing with possibilities, and your input has enriched my thought.
As additional information I would like to mention that you can give values to variables directly when you are declaring them, for example:
Define steem_price=0.16 As Real;
--- > Thanks, Professor.
So I guess the class followed me to the comment section. Once again, I thank you.