Skip to content

salazar2001/corecode-bootcamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core-code-start-from-scratch

Testing enviroment

Wednesday Exercises

====================================================================

How to make a Pizza - Algorithm

  1. Buy ingredients
  2. Prepare the base of the pizza
  3. Prepare the sauce
  4. Put the sauce in the base
  5. Put the Ingredients on the pizza. (Cheese, pepperoni)
  6. Put the pizza in the oven and cook
  7. Enjoy your pizza

====================================================================

How to convert Celsius degrees to Fahreinheit - Algorithm

  1. Get the value in Celsius degrees and assign it to the variable T.
  2. Multiply the variable T by the constant S1 which has the value of 1.8
  3. Assign the result to the value Result.
  4. Sum the Result with the constant S2 which has a value of 32 and assign it again to Result.
  5. Print the Result variable

===================================================================

Calculate the volume of a piramid

  1. Request the value of the base of the Pyramid and assign it to the variable B
  2. Request the value of the height of the Pyramid and assign it to the variable h
  3. Multiply the variable B by the variable h and by the constant S1 which has the value of 1/3
  4. Assign that value to the variable result.
  5. Print the variable result.

============================================================================

Calculate the volume of a cube - Algorithm

  1. Request the value of any edge and assign it to the variable S
  2. Power the variable S by 3 and assign its value to the variable result.
  3. Print the Variable Result

=============================================================================

Calculate the volume of a Sphere - Algorithm

  1. Request the radius and assign to the vairalble R
  2. Multiply the variable with the constant pi which is equal to 3.1416
  3. Multiply the result with the constant S1 which is equal to 4/3
  4. Assign the value to the variable result.
  5. Print the variable Result

Thursday Exercises

Make a flowchart to define if a number is even or odd. Attached in the repository documents.

========================================================================

Create a pseudocode for an algorithm that calculates the age of a person base of the date of birth

  1. Request date of birth;
  2. Request current date;
  3. Compare dates between each other;
  4. Count days from DOB to current date;
  5. Divide the quantity of days by 360;
  6. Print the result;

========================================================================

Find the treasure. Link to statement: https://github.com/corecodeio/devguide-fundamentals-2022-04/tree/main/src/technologies/2022/week01/challenges/e06/desc

My answer on this is: A and C

This because one of the instructions given is that all messages are lies, therefore, all of the messages were contradicting each other. since the first chest said: The middle chest has a treasure which was telling us that there was nothing in the second chest the second chest said that all chests had a treasure which was another lie and the third one said that just one chest had treasures, then, that reaffirmed my hyphotesis of the chest a and c being the ones with treasures

About

Testing enviroment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published