Week 7!!
The main goals of the week are to create this beautiful blog and to add 2 exercises and 2 explanations!! But for this first publication the explanations will be substituted by helping a friend with his/her own blog (Because I´m in the TOP LIST) :D
Problem "1"
Description: We will create a program that will give to us the square of a number. The file "Square" will have: as input -> a real number, and as output-> the square of the real number.
Working code: (visual example)
Example:
If we ask for the square number of 4, we will obtain 16. Because: 4x4=16.
Problem "2"
Description: In this case we are asked to create a program that will calculate the speed in which, for example, a car is moving. The speed is described as the distance (m or km) divided by the time (sec., min. or hours) in which we covered that distance. SPEED=KM/HR
The file "kmHr" will have: the inputs -> kilometers and hours, and an output -> the speed.
Working code: (visual example)
Example:
If the amount of km is 200 and the time used for covering the distance is 10 hours, the speed will be 20 km/hr. (200 km /10 hr = 20 km/hr)
This is all for the week, I hope you enjoy it! :3

