Hellooooooo! I’m about to do the most enjoyable code of the semestrer. It’s enjoyable because we’ll copy and paste most part of the code from WSQ03.
Do you remember WSQ03? If not, here’s the post.
Let’s start.
First of all we need do define all the functions.
We need a function for each result. Don’t forget to indicate the type of object for each variable:
After that, we’ll copy and paste the WSQ03 code. You can buid it from the ground, it’s not complicated, but of course is easier to copy and paste.
Theeeeen we’ll edit the part that prints the result replacing the mathematical process by the corresponding function.
Check line 16, 18 and 20.
The final result would be something like this:
That’s all for today. Here’s my code,as always. Have a nice weekend! 😀
On to functions (WSQ08) by paogarcia2401 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.